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, 1 Feb 2024 22:31:58 +0000 (22:31 +0000)
commit487ac737d56bdf560f5e48f6d50945e30d712803
tree3b9d315789717b33ef3b8096e293a556fdb6367e
parente5581cc0404613bcfe52d2adbda8175cd7825fd5
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