mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 07:46:48 +00:00
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 <daniel@makrotopia.org>
This commit is contained in:
parent
667d109d0f
commit
1323314087
@ -157,11 +157,13 @@ define Build/ubinize-image
|
|||||||
$(if $(UBOOTENV_IN_UBI),--uboot-env) \
|
$(if $(UBOOTENV_IN_UBI),--uboot-env) \
|
||||||
$(foreach part,$(UBINIZE_PARTS),--part $(part)) \
|
$(foreach part,$(UBINIZE_PARTS),--part $(part)) \
|
||||||
--part $(word 1,$(1))="$(BIN_DIR)/$(DEVICE_IMG_PREFIX)-$(word 2,$(1))" \
|
--part $(word 1,$(1))="$(BIN_DIR)/$(DEVICE_IMG_PREFIX)-$(word 2,$(1))" \
|
||||||
$@ \
|
$@.tmp \
|
||||||
-p $(BLOCKSIZE:%k=%KiB) -m $(PAGESIZE) \
|
-p $(BLOCKSIZE:%k=%KiB) -m $(PAGESIZE) \
|
||||||
$(if $(SUBPAGESIZE),-s $(SUBPAGESIZE)) \
|
$(if $(SUBPAGESIZE),-s $(SUBPAGESIZE)) \
|
||||||
$(if $(VID_HDR_OFFSET),-O $(VID_HDR_OFFSET)) \
|
$(if $(VID_HDR_OFFSET),-O $(VID_HDR_OFFSET)) \
|
||||||
$(UBINIZE_OPTS)
|
$(UBINIZE_OPTS)
|
||||||
|
cat $@.tmp >> $@
|
||||||
|
rm $@.tmp
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/ubinize-kernel
|
define Build/ubinize-kernel
|
||||||
|
Loading…
Reference in New Issue
Block a user