[OpenWrt-Devel] [PATCH 1/9] include/image.mk: Add TP-Link image safe-loader define

Darryl Sokoloski darryl at sokoloski.ca
Wed Apr 20 01:55:27 EDT 2016


Signed-off-by: Josh Bendavid <joshbendavid at gmail.com>
[darryl at sokoloski.ca: submitting patches on behalf of Josh Bendavid]
Signed-off-by: Darryl Sokoloski <darryl at sokoloski.ca>
---
 include/image.mk | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/include/image.mk b/include/image.mk
index 7c11aa1..5c0c4c7 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 OpenWrt.$(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.4.10
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list