From 132331408793d8fe9a613e825ac8b56878a2d2a8 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Fri, 16 Feb 2024 13:55:12 +0000 Subject: [PATCH] images: append to existing image with ubinize-image build cmd Let ubinize-image append the ubinized image to the existing image instead of replacing it. Fixes: 6c17d71973 ("scripts: ubinize-image.sh: support static volumes, make size optional") Signed-off-by: Daniel Golle --- include/image-commands.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/image-commands.mk b/include/image-commands.mk index 8caeb1871c..79a64f4bc1 100644 --- a/include/image-commands.mk +++ b/include/image-commands.mk @@ -157,11 +157,13 @@ define Build/ubinize-image $(if $(UBOOTENV_IN_UBI),--uboot-env) \ $(foreach part,$(UBINIZE_PARTS),--part $(part)) \ --part $(word 1,$(1))="$(BIN_DIR)/$(DEVICE_IMG_PREFIX)-$(word 2,$(1))" \ - $@ \ + $@.tmp \ -p $(BLOCKSIZE:%k=%KiB) -m $(PAGESIZE) \ $(if $(SUBPAGESIZE),-s $(SUBPAGESIZE)) \ $(if $(VID_HDR_OFFSET),-O $(VID_HDR_OFFSET)) \ $(UBINIZE_OPTS) + cat $@.tmp >> $@ + rm $@.tmp endef define Build/ubinize-kernel -- 2.30.2