ramips: move seama build recipe to Makefile

The identical build step is defined twice. Move it to the parent
Makefile to use only one version.

Signed-off-by: Mathias Kresin <dev@kresin.me>
This commit is contained in:
Mathias Kresin 2016-09-03 09:43:31 +02:00
parent 74da44cfc2
commit 0f3600ccee
3 changed files with 9 additions and 18 deletions

View file

@ -83,6 +83,15 @@ define Build/senao-header
mv $@.new $@ mv $@.new $@
endef endef
define Build/seama
$(STAGING_DIR_HOST)/bin/seama -i $@ $(1)
mv $@.seama $@
endef
define Build/seama-seal
$(call Build/seama,-s $@.seama $(1))
endef
# #
# The real magic happens inside these templates # The real magic happens inside these templates
# #

View file

@ -37,15 +37,6 @@ define Build/elecom-header
$(STAGING_DIR_HOST)/bin/tar -cf $@ -C $(KDIR) v_0.0.0.bin v_0.0.0.md5 $(STAGING_DIR_HOST)/bin/tar -cf $@ -C $(KDIR) v_0.0.0.bin v_0.0.0.md5
endef endef
define Build/seama
$(STAGING_DIR_HOST)/bin/seama -i $@ $(1)
mv $@.seama $@
endef
define Build/seama-seal
$(call Build/seama,-s $@.seama $(1))
endef
define Device/ArcherC20i define Device/ArcherC20i
DTS := ArcherC20i DTS := ArcherC20i
KERNEL := $(KERNEL_DTB) KERNEL := $(KERNEL_DTB)

View file

@ -2,15 +2,6 @@
# MT7621 Profiles # MT7621 Profiles
# #
define Build/seama
$(STAGING_DIR_HOST)/bin/seama -i $@ $(1)
mv $@.seama $@
endef
define Build/seama-seal
$(call Build/seama,-s $@.seama $(1))
endef
define Build/ubnt-erx-factory-image define Build/ubnt-erx-factory-image
if [ -e $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE) -a "$$(stat -c%s $@)" -lt "$(KERNEL_SIZE)" ]; then \ if [ -e $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE) -a "$$(stat -c%s $@)" -lt "$(KERNEL_SIZE)" ]; then \
echo '21001:6' > $(1).compat; \ echo '21001:6' > $(1).compat; \