build: move seama commands to image-commands.mk
Move it to image-commands.mk to get rid of duplicate recipes. Signed-off-by: Mathias Kresin <dev@kresin.me>
This commit is contained in:
		| @@ -49,6 +49,18 @@ define Build/eva-image | |||||||
| 	mv $@.new $@ | 	mv $@.new $@ | ||||||
| endef | 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 | define Build/zyxel-ras-image | ||||||
| 	let \ | 	let \ | ||||||
| 		newsize="$(subst k,* 1024,$(RAS_ROOTFS_SIZE))"; \ | 		newsize="$(subst k,* 1024,$(RAS_ROOTFS_SIZE))"; \ | ||||||
|   | |||||||
| @@ -67,17 +67,6 @@ define Build/relocate-kernel | |||||||
| 	rm -rf $@.relocate | 	rm -rf $@.relocate | ||||||
| endef | 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 | define Build/teltonika-fw-fake-checksum | ||||||
| 	# Teltonika U-Boot web based firmware upgrade/recovery routine compares | 	# Teltonika U-Boot web based firmware upgrade/recovery routine compares | ||||||
| 	# 16 bytes from md5sum1[16] field in TP-Link v1 header (offset: 76 bytes | 	# 16 bytes from md5sum1[16] field in TP-Link v1 header (offset: 76 bytes | ||||||
|   | |||||||
| @@ -101,18 +101,6 @@ define Build/poray-header | |||||||
| 	mv $@.new $@ | 	mv $@.new $@ | ||||||
| endef | 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 | define Build/wrg-header | ||||||
| 	mkwrgimg -i $@ -d "/dev/mtdblock/2" -s $(1) -o $@.new | 	mkwrgimg -i $@ -d "/dev/mtdblock/2" -s $(1) -o $@.new | ||||||
| 	mv $@.new $@ | 	mv $@.new $@ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Mathias Kresin
					Mathias Kresin