include/image.mk: move build step tplink-safeloader to image.mk
authorAsh Benz <ash.benz@bk.ru>
Fri, 27 May 2016 14:26:38 +0000 (22:26 +0800)
committerJohn Crispin <john@phrozen.org>
Fri, 27 May 2016 13:50:17 +0000 (15:50 +0200)
Move tplink-safeloader from target/linux/ar71xx/image/tp-link.mk to include/image.mk

Signed-off-by: Ash Benz <ash.benz@bk.ru>
include/image.mk
target/linux/ar71xx/image/tp-link.mk

index fbb3a0147ef6648d3792b8de32eb4cbdcce27e51..49315e5e2b9dcddb2a1cc5fa8bd6d096c66784b5 100644 (file)
@@ -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 $@ \
index a3af519efe33c4bfd0f6e95e2858738ef245f352..145fa0f0cdd524a3e46cc4d5f5a5a93abbd86860 100644 (file)
@@ -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