0035-ar71xx-add-uImageArcher-to-tp-link.mk.patch 1.0 KB

1234567891011121314151617181920212223242526272829
  1. From: Andreas Ziegler <github@andreas-ziegler.de>
  2. Date: Sun, 6 Aug 2017 16:27:53 +0200
  3. Subject: ar71xx: add uImageArcher to tp-link.mk
  4. backport from e39dc8d823c86559eedbbdcee5f5c14b827fed0f
  5. ar71xx: add support to TP-Link Archer C59v1 and C60v1
  6. Based-on-patch-by: Henryk Heisig <hyniu@o2.pl>
  7. Signed-off-by: Andreas Ziegler <github@andreas-ziegler.de>
  8. diff --git a/target/linux/ar71xx/image/tp-link.mk b/target/linux/ar71xx/image/tp-link.mk
  9. index b76ed02ca394fc1a8b15218d64b5dc722552bbfd..9cd6c6372ac8f7e509a0a2422616097c1c19edf6 100644
  10. --- a/target/linux/ar71xx/image/tp-link.mk
  11. +++ b/target/linux/ar71xx/image/tp-link.mk
  12. @@ -45,6 +45,14 @@ define Build/mktplinkfw-kernel
  13. @mv $@.new $@
  14. endef
  15. +define Build/uImageArcher
  16. + mkimage -A $(LINUX_KARCH) \
  17. + -O linux -T kernel \
  18. + -C $(1) -a $(KERNEL_LOADADDR) -e $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \
  19. + -n '$(call toupper,$(LINUX_KARCH)) LEDE Linux-$(LINUX_VERSION)' -d $@ $@.new
  20. + @mv $@.new $@
  21. +endef
  22. +
  23. define Device/tplink
  24. TPLINK_HWREV := 0x1
  25. TPLINK_HEADER_VERSION := 1