From 99df98442e1101607e3e6c902d5d957e72cea1d6 Mon Sep 17 00:00:00 2001 From: INAGAKI Hiroshi Date: Wed, 12 Dec 2018 21:12:27 +0900 Subject: [PATCH] build: move xor-image into image-commands I moved xor-image into image-commands.mk to use it in ath79 target. It required for NEC WG800HP. Signed-off-by: INAGAKI Hiroshi --- include/image-commands.mk | 5 +++++ target/linux/brcm63xx/image/Makefile | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/image-commands.mk b/include/image-commands.mk index 5e24c5e3aac..65fa36d2beb 100644 --- a/include/image-commands.mk +++ b/include/image-commands.mk @@ -242,6 +242,11 @@ define Build/pad-offset mv $@.new $@ endef +define Build/xor-image + $(STAGING_DIR_HOST)/bin/xorimage -i $@ -o $@.xor $(1) + mv $@.xor $@ +endef + define Build/check-size @[ $$(($(subst k,* 1024,$(subst m, * 1024k,$(1))))) -ge "$$(stat -c%s $@)" ] || { \ echo "WARNING: Image file $@ is too big" >&2; \ diff --git a/target/linux/brcm63xx/image/Makefile b/target/linux/brcm63xx/image/Makefile index 21fc69e24ef..1cf64bd8e70 100644 --- a/target/linux/brcm63xx/image/Makefile +++ b/target/linux/brcm63xx/image/Makefile @@ -132,11 +132,6 @@ define Build/spw303v-bin mv $@.spw303v $@ endef -define Build/xor-image - $(STAGING_DIR_HOST)/bin/xorimage -i $@ -o $@.xor - mv $@.xor $@ -endef - define Build/zyxel-bin $(STAGING_DIR_HOST)/bin/zyxbcm -i $@ -o $@.zyxel mv $@.zyxel $@