[openwrt/openwrt] apm821xx: add alternative names for supported devices

LEDE Commits lede-commits at lists.infradead.org
Sat Feb 19 11:15:20 PST 2022


chunkeey pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/b45f3c435ad30d470d95861a0821384ac1608ec1

commit b45f3c435ad30d470d95861a0821384ac1608ec1
Author: Christian Lamparter <chunkeey at gmail.com>
AuthorDate: Sun Feb 13 13:29:23 2022 +0100

    apm821xx: add alternative names for supported devices
    
    with the introduction of the DEVICE_ALTX_VENDOR, DEVICE_ALTX_MODEL
    multiple/sibiling devices can seemingly supported by one device entry.
    
    Signed-off-by: Christian Lamparter <chunkeey at gmail.com>
---
 target/linux/apm821xx/image/nand.mk | 8 ++++++--
 target/linux/apm821xx/image/sata.mk | 4 +++-
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/target/linux/apm821xx/image/nand.mk b/target/linux/apm821xx/image/nand.mk
index fa3ad6de20..db3c9c0722 100644
--- a/target/linux/apm821xx/image/nand.mk
+++ b/target/linux/apm821xx/image/nand.mk
@@ -42,7 +42,9 @@ TARGET_DEVICES += meraki_mr24
 
 define Device/meraki_mx60
   DEVICE_VENDOR := Cisco Meraki
-  DEVICE_MODEL := MX60/MX60W
+  DEVICE_MODEL := MX60
+  DEVICE_ALT0_VENDOR := Cisco Meraki
+  DEVICE_ALT0_MODEL := MX60W
   DEVICE_PACKAGES := kmod-spi-gpio kmod-usb-ledtrig-usbport kmod-usb-dwc2 \
 		     kmod-usb-storage block-mount
   BLOCKSIZE := 128k
@@ -91,7 +93,9 @@ TARGET_DEVICES += netgear_wndap660
 
 define Device/netgear_wndr4700
   DEVICE_VENDOR := NETGEAR
-  DEVICE_MODEL := Centria N900 WNDR4700/WNDR4720
+  DEVICE_MODEL := Centria N900 WNDR4700
+  DEVICE_ALT0_VENDOR := NETGEAR
+  DEVICE_ALT0_MODEL := Centria N900 WNDR4720
   DEVICE_PACKAGES := badblocks block-mount e2fsprogs kmod-hwmon-drivetemp \
 	kmod-dm kmod-fs-ext4 kmod-fs-vfat kmod-usb-ledtrig-usbport \
 	kmod-md-mod kmod-nls-cp437 kmod-nls-iso8859-1 kmod-nls-iso8859-15 \
diff --git a/target/linux/apm821xx/image/sata.mk b/target/linux/apm821xx/image/sata.mk
index bcb612c22f..40bd2807c9 100644
--- a/target/linux/apm821xx/image/sata.mk
+++ b/target/linux/apm821xx/image/sata.mk
@@ -5,7 +5,9 @@ endef
 
 define Device/wd_mybooklive
   DEVICE_VENDOR := Western Digital
-  DEVICE_MODEL := My Book Live Series (Single + Duo)
+  DEVICE_MODEL := My Book Live
+  DEVICE_ALT0_VENDOR := Western Digital
+  DEVICE_ALT0_MODEL := My Book Live Duo
   DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport kmod-usb-storage kmod-fs-vfat wpad-basic-wolfssl
   SUPPORTED_DEVICES += mbl wd,mybooklive-duo
   BLOCKSIZE := 1k



More information about the lede-commits mailing list