build: move append-string to image-commands.mk
Move it to image-commands.mk so that it can used by other targets. Signed-off-by: Mathias Kresin <dev@kresin.me>
This commit is contained in:
parent
6263a9baa3
commit
ffdce856e0
|
@ -102,6 +102,10 @@ define Build/append-squashfs-fakeroot-be
|
||||||
cat $@.fakesquashfs >> $@
|
cat $@.fakesquashfs >> $@
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Build/append-string
|
||||||
|
echo -n $(1) >> $@
|
||||||
|
endef
|
||||||
|
|
||||||
# append a fake/empty uImage header, to fool bootloaders rootfs integrity check
|
# append a fake/empty uImage header, to fool bootloaders rootfs integrity check
|
||||||
# for example
|
# for example
|
||||||
define Build/append-uImage-fakehdr
|
define Build/append-uImage-fakehdr
|
||||||
|
|
|
@ -12,10 +12,6 @@ define Build/append-md5sum-bin
|
||||||
xargs echo -ne >> $@
|
xargs echo -ne >> $@
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/append-string
|
|
||||||
echo -n $(1) >> $@
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Build/mkwrggimg
|
define Build/mkwrggimg
|
||||||
$(STAGING_DIR_HOST)/bin/mkwrggimg -b \
|
$(STAGING_DIR_HOST)/bin/mkwrggimg -b \
|
||||||
-i $@ -o $@.imghdr -d /dev/mtdblock/1 \
|
-i $@ -o $@.imghdr -d /dev/mtdblock/1 \
|
||||||
|
|
Loading…
Reference in New Issue