diff mbox

[LEDE-DEV,v3,01/10] include/image.mk: move build step tplink-safeloader to image.mk

Message ID 1463166767-1049-1-git-send-email-ash.benz@bk.ru
State Accepted
Delegated to: Alexander Couzens
Headers show

Commit Message

Ash Benz May 13, 2016, 7:12 p.m. UTC
This patch is part of the Archer C2600 series, it moves tplink-safeloader from target/linux/ar71xx/image/Makefile to include/image.mk

Signed-off-by: Ash Benz <ash.benz@bk.ru>
---
 include/image.mk                   | 12 ++++++++++++
 target/linux/ar71xx/image/Makefile | 12 ------------
 2 files changed, 12 insertions(+), 12 deletions(-)
diff mbox

Patch

diff --git a/include/image.mk b/include/image.mk
index 67879b3..b67162d 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -326,6 +326,18 @@  define Build/netgear-dni
 	mv $@.new $@
 endef
 
+define Build/tplink-safeloader
+       -$(STAGING_DIR_HOST)/bin/tplink-safeloader \
+		-B $(TPLINK_BOARD_NAME) \
+		-V $(REVISION) \
+		-k $(word 1,$^) \
+		-r $@ \
+		-o $@.new \
+		-j \
+		$(wordlist 2,$(words $(1)),$(1)) \
+		$(if $(findstring sysupgrade,$(word 1,$(1))),-S) && mv $@.new $@ || rm -f $@
+endef
+
 define Build/fit
 	$(TOPDIR)/scripts/mkits.sh \
 		-D $(DEVICE_NAME) -o $@.its -k $@ \
diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile
index 4a9378c..19a3df5 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -74,18 +74,6 @@  define Build/mktplinkfw-initramfs
 	@mv $@.new $@
 endef
 
-define Build/tplink-safeloader
-       -$(STAGING_DIR_HOST)/bin/tplink-safeloader \
-		-B $(TPLINK_BOARD_NAME) \
-		-V $(REVISION) \
-		-k $(word 1,$^) \
-		-r $@ \
-		-o $@.new \
-		-j \
-		$(wordlist 2,$(words $(1)),$(1)) \
-		$(if $(findstring sysupgrade,$(word 1,$(1))),-S) && mv $@.new $@ || rm -f $@
-endef
-
 define Build/loader-common
 	rm -rf $@.src
 	$(MAKE) -C lzma-loader \