aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAsh Benz <ash.benz@bk.ru>2016-05-27 22:26:38 +0800
committerJohn Crispin <john@phrozen.org>2016-05-27 15:50:17 +0200
commit7eb1a7e9560161a2e0cffcc3298557c5ec6c4099 (patch)
tree19906705509f98fb3f9e9c33c6bfe31e5980e9fa /include
parent0c920e3281b281ee3395cbb890121894391aa1d2 (diff)
downloadupstream-7eb1a7e9560161a2e0cffcc3298557c5ec6c4099.tar.gz
upstream-7eb1a7e9560161a2e0cffcc3298557c5ec6c4099.tar.bz2
upstream-7eb1a7e9560161a2e0cffcc3298557c5ec6c4099.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/image.mk12
1 files changed, 12 insertions, 0 deletions
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 $@ \