mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 15:32:33 +00:00
apm821xx: derive DEVICE_DTS from device name
The DEVICE_DTS variable always matches the device definition name, just with "_" replaced by "-". Thus, create a DEVICE_DTS definition in Device/Default and drop all the individual statements. If necessary in the future, local DEVICE_DTS will still overwrite that default. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
parent
a2fee73e27
commit
eff0a0e39e
@ -87,6 +87,7 @@ define Device/Default
|
||||
KERNEL_ENTRY := 0x00000000
|
||||
KERNEL_LOADADDR := 0x00000000
|
||||
DEVICE_DTS_DIR := ../dts
|
||||
DEVICE_DTS = $(subst _,-,$(1))
|
||||
SUPPORTED_DEVICES = $(subst _,$(comma),$(1))
|
||||
endef
|
||||
|
||||
|
@ -29,7 +29,6 @@ define Device/meraki_mr24
|
||||
DEVICE_MODEL := MR24
|
||||
DEVICE_PACKAGES := kmod-spi-gpio -swconfig
|
||||
BOARD_NAME := mr24
|
||||
DEVICE_DTS := meraki-mr24
|
||||
IMAGES := sysupgrade.bin
|
||||
DTB_SIZE := 64512
|
||||
IMAGE_SIZE := 8191k
|
||||
@ -47,7 +46,6 @@ define Device/meraki_mx60
|
||||
DEVICE_PACKAGES := kmod-spi-gpio kmod-usb-ledtrig-usbport kmod-usb-dwc2 \
|
||||
kmod-usb-storage block-mount
|
||||
BOARD_NAME := mx60
|
||||
DEVICE_DTS := meraki-mx60
|
||||
BLOCKSIZE := 63k
|
||||
IMAGES := sysupgrade.bin
|
||||
DTB_SIZE := 64512
|
||||
@ -80,14 +78,12 @@ endef
|
||||
define Device/netgear_wndap620
|
||||
$(Device/netgear_wndap6x0)
|
||||
DEVICE_MODEL := WNDAP620 (Premium Wireless-N)
|
||||
DEVICE_DTS := netgear-wndap620
|
||||
endef
|
||||
TARGET_DEVICES += netgear_wndap620
|
||||
|
||||
define Device/netgear_wndap660
|
||||
$(Device/netgear_wndap6x0)
|
||||
DEVICE_MODEL := WNDAP660 (Dual Radio Dual Band Wireless-N)
|
||||
DEVICE_DTS := netgear-wndap660
|
||||
endef
|
||||
TARGET_DEVICES += netgear_wndap660
|
||||
|
||||
@ -100,7 +96,6 @@ define Device/netgear_wndr4700
|
||||
kmod-nls-utf8 kmod-usb3 kmod-usb-dwc2 kmod-usb-storage \
|
||||
partx-utils
|
||||
BOARD_NAME := wndr4700
|
||||
DEVICE_DTS := netgear-wndr4700
|
||||
PAGESIZE := 2048
|
||||
SUBPAGESIZE := 512
|
||||
BLOCKSIZE := 128k
|
||||
|
@ -7,7 +7,6 @@ define Device/wd_mybooklive
|
||||
DEVICE_VENDOR := Western Digital
|
||||
DEVICE_MODEL := My Book Live Series (Single + Duo)
|
||||
DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport kmod-usb-storage kmod-fs-vfat wpad-basic
|
||||
DEVICE_DTS := wd-mybooklive
|
||||
SUPPORTED_DEVICES += mbl wd,mybooklive-duo
|
||||
BLOCKSIZE := 1k
|
||||
DTB_SIZE := 16384
|
||||
|
Loading…
Reference in New Issue
Block a user