]> git.baikalelectronics.ru Git - uboot.git/commit
rockchip: make_fit_atf.py: fix .its generation for a single atf image
authorHeiko Stuebner <heiko@sntech.de>
Thu, 26 Sep 2019 19:15:15 +0000 (21:15 +0200)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 28 Sep 2019 14:26:32 +0000 (22:26 +0800)
commitc3f86af41661ad55bb9a1a92815b27ad9d627fa8
tree32b49b314ae62da28303f787219a476ff6193b5a
parent4f4f1b26263f41bb33b4eb2c326c67727c7d97b4
rockchip: make_fit_atf.py: fix .its generation for a single atf image

The commit efdf10eee8fb ("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: efdf10eee8fb ("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>
arch/arm/mach-rockchip/make_fit_atf.py