scripts: ubinize-image.sh: support static volumes, make size optional
authorDaniel Golle <daniel@makrotopia.org>
Thu, 1 Feb 2024 05:03:56 +0000 (05:03 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 15 Feb 2024 19:30:08 +0000 (19:30 +0000)
commit6c17d719734c223e7e33e0a890b33610da54a0ae
tree474f4980f6e056d6e1c48a7c5ef3bf994d22bcf6
parentada3b2190a86fe329d0e45b6a03dbd37e3911611
scripts: ubinize-image.sh: support static volumes, make size optional

In order to support devices having TF-A FIP image or UBI-aware U-Boot
SPL we need to include a static volume for the bootloader.

Introduce support for adding additional static volumes by prefixing
the filename with ':', eg.

UBINIZE_PARTS := fip:=$(STAGING_DIR_IMAGE)/u-boot.fip

Also add support for rootfs-in-uImage.FIT setups which don't require a
rootfs partition and make the (3rd) size parameter in UBINIZE_PARTS
optional (see example above without declared size).

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
include/image-commands.mk
scripts/ubinize-image.sh