[LEDE-DEV] [PATCH 01/10] include/image.mk: Add TP-Link image safe-loader defintion

Ash Benz ash.benz at bk.ru
Sat May 7 08:41:10 PDT 2016


Signed-off-by: Ash Benz <ash.benz at bk.ru>
---
 include/image.mk | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/include/image.mk b/include/image.mk
index 9e342e0..4ec6387 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -325,6 +325,17 @@ define Build/netgear-dni
 	mv $@.new $@
 endef
 
+define Build/tplink-safe
+	$(STAGING_DIR_HOST)/bin/tplink-safeloader \
+		-B $(TPLINK_BOARD_ID) -V LEDE.$(REVISION) \
+		-k $(word 1,$^) \
+		-r $(word 2,$^) \
+		-j \
+		$(if $(findstring sysupgrade,$1),-S) \
+		-o $@.new
+	mv $@.new $@
+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