From: Ash Benz <ash.benz@bk.ru>
Date: Fri, 27 May 2016 14:26:38 +0000 (+0800)
Subject: include/image.mk: move build step tplink-safeloader to image.mk
X-Git-Tag: v17.01.0-rc1~2606
X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=7eb1a7e9560161a2e0cffcc3298557c5ec6c4099;p=openwrt%2Fstaging%2Fpepe2k.git

include/image.mk: move build step tplink-safeloader to image.mk

Move tplink-safeloader from target/linux/ar71xx/image/tp-link.mk to include/image.mk

Signed-off-by: Ash Benz <ash.benz@bk.ru>
---

diff --git a/include/image.mk b/include/image.mk
index fbb3a0147e..49315e5e2b 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -323,6 +323,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/tp-link.mk b/target/linux/ar71xx/image/tp-link.mk
index a3af519efe..145fa0f0cd 100644
--- a/target/linux/ar71xx/image/tp-link.mk
+++ b/target/linux/ar71xx/image/tp-link.mk
@@ -35,18 +35,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 Device/tplink
   TPLINK_HWREV := 0x1
   TPLINK_HEADER_VERSION := 1