Skip to content

Commit

Permalink
images: append to existing image with ubinize-image build cmd
Browse files Browse the repository at this point in the history
Let ubinize-image append the ubinized image to the existing image
instead of replacing it.

Fixes: 6c17d71 ("scripts: ubinize-image.sh: support static volumes, make size optional")
Signed-off-by: Daniel Golle <[email protected]>
  • Loading branch information
dangowrt committed Feb 16, 2024
1 parent 667d109 commit 1323314
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/image-commands.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1323314

Please sign in to comment.