arm-trusted-firmware/tools/fiptool
Masahiro Yamada ea39d557ae fiptool: revive replace_image() to keep the image order by update command
Commit e0f083a09b ("fiptool: Prepare ground for expanding the set
of images at runtime") introduced another side effect; the "update"
command now changes the image order in the FIP.

Let's say you have an FIP with BL2, BL31, BL32, BL33.  If you update
for example, BL32 with the "update" command, you will get a new FIP
with BL2, BL31, BL33, BL32, in this order.

It happens like this; remove_image() removes the old image from the
linked list, add_image() adds the new image at the tail of the list,
then images are packed in the new order.  Prior to that commit,
images were updated by replace_image(), but it was deleted by the
re-work.  Revive replace_image() that is re-implemented to work with
the linked list.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
2017-01-27 15:01:23 +09:00
..
Makefile fiptool: Add support for printing the sha256 digest with info command 2016-09-12 11:01:25 +01:00
fip_create.sh Replace fip_create with fiptool 2016-07-29 10:38:46 +01:00
fiptool.c fiptool: revive replace_image() to keep the image order by update command 2017-01-27 15:01:23 +09:00
fiptool.h fiptool: Prepare ground for expanding the set of images at runtime 2016-12-30 09:23:38 +00:00
tbbr_config.c fiptool: Remove unreferenced variable `toc_entries_len` 2016-12-30 09:23:38 +00:00
tbbr_config.h fiptool: Remove unreferenced variable `toc_entries_len` 2016-12-30 09:23:38 +00:00