Skip to content
Snippets Groups Projects
Commit d46b5482 authored by Heiko Stuebner's avatar Heiko Stuebner Committed by Kever Yang
Browse files

rockchip: make_fit_atf.py: fix .its generation for a single atf image


The commit 619f002d ("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: 619f002d ("rockchip: make_fit_atf.py: fix loadables property set error")
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
Reviewed-by: default avatarKever <Yang&lt;kever.yang@rock-chips.com>
parent 03f98b75
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment