[LEDE-DEV] [PATCH v2 01/10] include/image.mk: Add TP-Link image safe-loader defintion
Ash Benz
ash.benz at bk.ru
Mon May 9 08:59:45 PDT 2016
Signed-off-by: Ash Benz <ash.benz at bk.ru>
---
include/image.mk | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/include/image.mk b/include/image.mk
index 9e342e0..aa12052 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -325,6 +325,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 $@ \
--
2.1.4
More information about the Lede-dev
mailing list