mvebu: use device-tree board detection
[openwrt/openwrt.git] / target / linux / mvebu / image / Makefile
index f432a37911983db3d12e4f5554cdb92f56322353..57e5a30491ee5eee15ebaf45684c27a7ce6f7b76 100644 (file)
@@ -76,7 +76,7 @@ define Device/Default
   IMAGES := sysupgrade.bin
   IMAGE/factory.img := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | pad-to $$$$(PAGESIZE)
   IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
-  SUPPORTED_DEVICES = $$(firstword $$(DEVICE_DTS))
+  SUPPORTED_DEVICES = $(subst _,$(comma),$(1))
   UBINIZE_OPTS := -E 5
   UBOOT :=
   BOOT_SCRIPT :=