[source] ramips: image: simplify TP-Link Archer devices definitions

LEDE Commits lede-commits at lists.infradead.org
Thu Jun 29 02:19:25 PDT 2017


pepe2k pushed a commit to source.git, branch master:
https://git.lede-project.org/c55fadcacb8d47f08465e0e75c96fa5ddf649e16

commit c55fadcacb8d47f08465e0e75c96fa5ddf649e16
Author: Piotr Dymacz <pepe2k at gmail.com>
AuthorDate: Fri Jun 23 23:20:53 2017 +0200

    ramips: image: simplify TP-Link Archer devices definitions
    
    Signed-off-by: Piotr Dymacz <pepe2k at gmail.com>
---
 target/linux/ramips/image/mt7620.mk | 21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)

diff --git a/target/linux/ramips/image/mt7620.mk b/target/linux/ramips/image/mt7620.mk
index fd9f10a..d435e9f 100644
--- a/target/linux/ramips/image/mt7620.mk
+++ b/target/linux/ramips/image/mt7620.mk
@@ -25,39 +25,38 @@ define Device/ai-br100
 endef
 TARGET_DEVICES += ai-br100
 
-define Device/ArcherC20i
-  DTS := ArcherC20i
-  SUPPORTED_DEVICES := c20i
-  TPLINK_BOARD_ID := ArcherC20i
+define Device/Archer
   KERNEL := $(KERNEL_DTB)
   KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-v2-header
   IMAGE/factory.bin := tplink-v2-image
   IMAGE/sysupgrade.bin := tplink-v2-image -s | append-metadata
+endef
+
+define Device/ArcherC20i
+  $(Device/Archer)
+  DTS := ArcherC20i
+  SUPPORTED_DEVICES := c20i
+  TPLINK_BOARD_ID := ArcherC20i
   IMAGES += factory.bin
   DEVICE_TITLE := TP-Link ArcherC20i
 endef
 TARGET_DEVICES += ArcherC20i
 
 define Device/ArcherC50
+  $(Device/Archer)
   DTS := ArcherC50
   SUPPORTED_DEVICES := c50
   TPLINK_BOARD_ID := ArcherC50
-  KERNEL := $(KERNEL_DTB)
-  KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-v2-header
-  IMAGE/factory.bin := tplink-v2-image
-  IMAGE/sysupgrade.bin := tplink-v2-image -s | append-metadata
   IMAGES += factory.bin
   DEVICE_TITLE := TP-Link ArcherC50
 endef
 TARGET_DEVICES += ArcherC50
 
 define Device/ArcherMR200
+  $(Device/Archer)
   DTS := ArcherMR200
   SUPPORTED_DEVICES := mr200
   TPLINK_BOARD_ID := ArcherMR200
-  KERNEL := $(KERNEL_DTB)
-  KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-v2-header
-  IMAGE/sysupgrade.bin := tplink-v2-image -s | append-metadata
   DEVICE_PACKAGES := kmod-usb2 kmod-usb-net kmod-usb-net-rndis kmod-usb-serial kmod-usb-serial-option adb-enablemodem
   DEVICE_TITLE := TP-Link ArcherMR200
 endef



More information about the lede-commits mailing list