build: move seama commands to image-commands.mk
authorMathias Kresin <dev@kresin.me>
Sat, 29 Dec 2018 19:06:56 +0000 (20:06 +0100)
committerMathias Kresin <dev@kresin.me>
Sun, 30 Dec 2018 19:08:13 +0000 (20:08 +0100)
Move it to image-commands.mk to get rid of duplicate recipes.

Signed-off-by: Mathias Kresin <dev@kresin.me>
include/image-commands.mk
target/linux/ar71xx/image/generic.mk
target/linux/ramips/image/Makefile

index 65fa36d2beb1c82a4fc757450f67a68185f3dc11..c5b64c751d9cc9ac20537807976f5d32fa0f18b4 100644 (file)
@@ -49,6 +49,18 @@ define Build/eva-image
        mv $@.new $@
 endef
 
+define Build/seama
+       $(STAGING_DIR_HOST)/bin/seama -i $@ \
+               -m "dev=/dev/mtdblock/$(SEAMA_MTDBLOCK)" -m "type=firmware"
+       mv $@.seama $@
+endef
+
+define Build/seama-seal
+       $(STAGING_DIR_HOST)/bin/seama -i $@ -s $@.seama \
+               -m "signature=$(SEAMA_SIGNATURE)"
+       mv $@.seama $@
+endef
+
 define Build/zyxel-ras-image
        let \
                newsize="$(subst k,* 1024,$(RAS_ROOTFS_SIZE))"; \
index 9f5e755cfe88b165ef7ed5080a7e64b2003a2ec8..30a8b3448342c917f7c60bf6b9a50dca3d2c6ff1 100644 (file)
@@ -67,17 +67,6 @@ define Build/relocate-kernel
        rm -rf $@.relocate
 endef
 
-define Build/seama
-       $(STAGING_DIR_HOST)/bin/seama -i $@ \
-               -m "dev=/dev/mtdblock/$(SEAMA_MTDBLOCK)" -m "type=firmware"
-       mv $@.seama $@
-endef
-
-define Build/seama-seal
-       $(STAGING_DIR_HOST)/bin/seama -i $@ -s $@.seama \
-               -m "signature=$(SEAMA_SIGNATURE)"
-endef
-
 define Build/teltonika-fw-fake-checksum
        # Teltonika U-Boot web based firmware upgrade/recovery routine compares
        # 16 bytes from md5sum1[16] field in TP-Link v1 header (offset: 76 bytes
index 3c30702ea73935901e9c62d1707029e92fa83f67..33c4f3132ffd394145aef15af3ef0dbe07441bda 100644 (file)
@@ -101,18 +101,6 @@ define Build/poray-header
        mv $@.new $@
 endef
 
-define Build/seama
-       $(STAGING_DIR_HOST)/bin/seama -i $@ \
-               -m "dev=/dev/mtdblock/$(SEAMA_MTDBLOCK)" -m "type=firmware"
-       mv $@.seama $@
-endef
-
-define Build/seama-seal
-       $(STAGING_DIR_HOST)/bin/seama -i $@ -s $@.seama \
-               -m "signature=$(SEAMA_SIGNATURE)"
-       mv $@.seama $@
-endef
-
 define Build/wrg-header
        mkwrgimg -i $@ -d "/dev/mtdblock/2" -s $(1) -o $@.new
        mv $@.new $@