diff options
author | Christian Lamparter <chunkeey@gmail.com> | 2017-12-17 15:00:01 +0100 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2017-12-21 01:05:16 +0100 |
commit | e90dc8d27221bf00daa7c49a986cc0bac6f2e070 (patch) | |
tree | f3b03ca8167cc341b800a5f87da55d08f52c2683 /target/linux/apm821xx/image | |
parent | 213ba77359191d6e3053119a8eb8f1e924aa2cb4 (diff) | |
download | upstream-e90dc8d27221bf00daa7c49a986cc0bac6f2e070.tar.gz upstream-e90dc8d27221bf00daa7c49a986cc0bac6f2e070.tar.bz2 upstream-e90dc8d27221bf00daa7c49a986cc0bac6f2e070.zip |
apm821xx: convert to device-tree board detection
This patch converts all apm821xx devices to the device-tree
board-detection method. All instances of the legacy
boardnames (mbl,mr24,...) are converted to "vendor,device"
identifier.
The custom board-detection code in apm821xx.sh is removed as
it no longer serves any purpose.
Signed-off-by: Mathias Kresin <dev@kresin.me>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Diffstat (limited to 'target/linux/apm821xx/image')
-rw-r--r-- | target/linux/apm821xx/image/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/target/linux/apm821xx/image/Makefile b/target/linux/apm821xx/image/Makefile index 60f9fcda89..c012906eaf 100644 --- a/target/linux/apm821xx/image/Makefile +++ b/target/linux/apm821xx/image/Makefile @@ -14,7 +14,7 @@ define Device/Default KERNEL_ENTRY := 0x00000000 KERNEL_LOADADDR := 0x00000000 DEVICE_DTS_DIR := ../dts - SUPPORTED_DEVICES = $$(BOARD_NAME) + SUPPORTED_DEVICES = $(subst _,$(comma),$(1)) endef define Build/dtb @@ -84,6 +84,7 @@ define Device/meraki_mr24 MerakiNAND IMAGE/sysupgrade.tar := sysupgrade-tar | append-metadata UBINIZE_OPTS := -E 5 + SUPPORTED_DEVICES += mr24 endef TARGET_DEVICES += meraki_mr24 @@ -109,6 +110,7 @@ define Device/meraki_mx60 MerakiNAND IMAGE/sysupgrade.tar := sysupgrade-tar | append-metadata UBINIZE_OPTS := -E 5 + SUPPORTED_DEVICES += mx60 endef TARGET_DEVICES += meraki_mx60 @@ -176,6 +178,7 @@ define Device/netgear_wndr4700 NETGEAR_BOARD_ID := WNDR4700 NETGEAR_HW_ID := 29763875+128+256 UBINIZE_OPTS := -E 5 + SUPPORTED_DEVICES += wndr4700 endef TARGET_DEVICES += netgear_wndr4700 @@ -227,7 +230,7 @@ define Device/wd_mybooklive $(Device/MyBookLiveDefault) DEVICE_TITLE := Western Digital My Book Live DEVICE_DTS := wd-mybooklive - SUPPORTED_DEVICES := mbl + SUPPORTED_DEVICES += mbl endef TARGET_DEVICES += wd_mybooklive @@ -237,7 +240,7 @@ $(Device/MyBookLiveDefault) DEVICE_TITLE := Western Digital My Book Live Duo DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport kmod-usb-storage kmod-fs-vfat wpad-mini DEVICE_DTS := wd-mybooklive-duo - SUPPORTED_DEVICES := mbl + SUPPORTED_DEVICES += mbl endef TARGET_DEVICES += wd_mybooklive-duo |