浏览代码

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 <[email protected]>
Mathias Kresin 6 年之前
父节点
当前提交
ffdce856e0
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 4 0
      include/image-commands.mk
  2. 0 4
      target/linux/ar71xx/image/generic.mk

+ 4 - 0
include/image-commands.mk

@@ -102,6 +102,10 @@ define Build/append-squashfs-fakeroot-be
 	cat [email protected] >> $@
 endef
 
+define Build/append-string
+	echo -n $(1) >> $@
+endef
+
 # append a fake/empty uImage header, to fool bootloaders rootfs integrity check
 # for example
 define Build/append-uImage-fakehdr

+ 0 - 4
target/linux/ar71xx/image/generic.mk

@@ -12,10 +12,6 @@ define Build/append-md5sum-bin
 		xargs echo -ne >> $@
 endef
 
-define Build/append-string
-	echo -n $(1) >> $@
-endef
-
 define Build/mkwrggimg
 	$(STAGING_DIR_HOST)/bin/mkwrggimg -b \
 		-i $@ -o [email protected] -d /dev/mtdblock/1 \