apm821xx: derive DEVICE_DTS from device name
[openwrt/staging/rmilecki.git] / target / linux / apm821xx / image / Makefile
index 1b7c466a44d359a38e330e6f119fb07674e285ad..2331947e332e5447aec9becf779bfd7f7c7b6975 100644 (file)
@@ -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