u-boot/arch/arm/mach-rockchip
Heiko Stuebner d46b548290 rockchip: make_fit_atf.py: fix .its generation for a single atf image
The commit 619f002db8 ("rockchip: make_fit_atf.py: fix loadables property
set error") fixed the double-loading of the primary atf-image, but didn't
take into account that there may be rare atf images with only that main
section present.

Right now this will result in a broken its due to the loadables section not
getting closed correctly, so fix that by adapting the guards around the loop.

The guards now protect against 0 segments when the bl31 binary doesn't
contain any section and 1 segment when only a core atf section is present.

Fixes: 619f002db8 ("rockchip: make_fit_atf.py: fix loadables property set error")
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Kever Yang<kever.yang@rock-chips.com>
2019-09-28 22:26:32 +08:00
..
rk322x rockchip: rk322x: move SoC setting into arch_cpu_init() 2019-07-29 10:26:41 +08:00
rk3036 rockchip: rk3036: move dram_init() into soc file 2019-07-29 10:26:41 +08:00
rk3128 rockchip: sdram_common: add common dram_init_banksize 2019-07-29 10:26:28 +08:00
rk3188 rockchip: rk3188: Move SoC one time setting into arch_cpu_init() 2019-07-29 10:26:41 +08:00
rk3288 rockchip: rk3288: vyasa: Drop ROCKCHIP_BROM_HELPER selection 2019-09-19 09:35:31 +08:00
rk3328 rockchip: Kconfig: enable TPL support for rk3328 2019-08-05 21:16:52 +08:00
rk3368 rockchip: sdram_common: add common dram_init_banksize 2019-07-29 10:26:28 +08:00
rk3399 rockchip: sdram_common: add common dram_init_banksize 2019-07-29 10:26:28 +08:00
rv1108 rockchip: rv1108: Migrate to use common board file 2019-07-29 10:27:48 +08:00
board.c rockchip: rk3399: derive ethaddr from cpuid 2019-08-23 18:15:31 +08:00
boot_mode.c rockchip: use 'arch-rockchip' as header file path 2019-05-01 00:00:05 +02:00
bootrom.c rockchip: use 'arch-rockchip' as header file path 2019-05-01 00:00:05 +02:00
fit_spl_optee.its rockchip: fit_spl_optee: rockchip: fix warning unit_address_vs_reg 2019-07-29 10:25:27 +08:00
Kconfig rockchip: Kconfig: enable TPL support for rk3328 2019-08-05 21:16:52 +08:00
make_fit_atf.py rockchip: make_fit_atf.py: fix .its generation for a single atf image 2019-09-28 22:26:32 +08:00
Makefile rockchip: clean makefile for misc.c 2019-09-11 16:16:12 +08:00
misc.c rockchip: misc: read the correct number of bytes from the efuse 2019-09-28 22:26:32 +08:00
rk3036-board-spl.c rockchip: rk3036: use ARM arch timer instead of rk_timer 2019-07-20 23:59:44 +08:00
sdram_common.c rockchip: sdram_common: add common dram_init_banksize 2019-07-29 10:26:28 +08:00
spl-boot-order.c rockchip: spi-boot-order: Trival fix to newline missing 2019-09-19 09:35:31 +08:00
spl.c rockchip: add common spl board file 2019-07-29 10:25:27 +08:00
tpl.c rockchip: TPL banner should depend on CONFIG_TPL_BANNER_PRINT 2019-07-22 21:52:59 +08:00
u-boot-tpl-v8.lds rockchip: add u-boot-tpl-v8.lds 2019-05-08 17:34:12 +08:00
u-boot-tpl.lds rockchip: rk322x: add tpl support 2019-05-08 17:34:12 +08:00