From: Mathias Kresin Date: Sat, 16 Dec 2017 23:30:21 +0000 (+0100) Subject: ramips: sync image filename with boardname X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6545c71d2c7c766e9caadd379192d39a94c949ad;p=openwrt%2Fstaging%2Frmilecki.git ramips: sync image filename with boardname Use _ as image name for board using the devicetree compat string as boardname. Replace the underline of the device define, to keep the SUPPORTED_DEVICES in sync with a devicetree compat string based boardname. Override the default SUPPORTED_DEVICES for board which are having an userspace boardname with an underline. Signed-off-by: Mathias Kresin --- diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index c70761b250f..ea7ce0bc902 100644 --- a/target/linux/ramips/image/Makefile +++ b/target/linux/ramips/image/Makefile @@ -39,7 +39,7 @@ define Device/Default DEVICE_DTS_DIR := ../dts IMAGES := sysupgrade.bin IMAGE_SIZE := $(ralink_default_fw_size_8M) - SUPPORTED_DEVICES = $(1) + SUPPORTED_DEVICES := $(subst _,$(comma),$(1)) sysupgrade_bin := append-kernel | append-rootfs | pad-rootfs IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE) endef diff --git a/target/linux/ramips/image/mt7620.mk b/target/linux/ramips/image/mt7620.mk index a55cc8214be..229ccf845cd 100644 --- a/target/linux/ramips/image/mt7620.mk +++ b/target/linux/ramips/image/mt7620.mk @@ -252,6 +252,7 @@ define Device/kng_rc IMAGES += factory.bin IMAGE/factory.bin := $$(sysupgrade_bin) | pad-to 64k | check-size $$$$(IMAGE_SIZE) | \ zyimage -d 8997 -v "ZyXEL Keenetic Viva" + SUPPORTED_DEVICES := kng_rc endef TARGET_DEVICES += kng_rc @@ -262,6 +263,7 @@ define Device/kn_rc IMAGES += factory.bin IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | pad-to 64k | check-size $$$$(IMAGE_SIZE) | \ zyimage -d 4882 -v "ZyXEL Keenetic Omni" + SUPPORTED_DEVICES := kn_rc endef TARGET_DEVICES += kn_rc @@ -272,6 +274,7 @@ define Device/kn_rf IMAGES += factory.bin IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | pad-to 64k | check-size $$$$(IMAGE_SIZE) | \ zyimage -d 2102034 -v "ZyXEL Keenetic Omni II" + SUPPORTED_DEVICES := kn_rf endef TARGET_DEVICES += kn_rf @@ -313,18 +316,21 @@ TARGET_DEVICES += mt7620a define Device/mt7620a_mt7530 DTS := MT7620a_MT7530 DEVICE_TITLE := MediaTek MT7620a + MT7530 EVB + SUPPORTED_DEVICES := mt7620a_mt7530 endef TARGET_DEVICES += mt7620a_mt7530 define Device/mt7620a_mt7610e DTS := MT7620a_MT7610e DEVICE_TITLE := MediaTek MT7620a + MT7610e EVB + SUPPORTED_DEVICES := mt7620a_mt7610e endef TARGET_DEVICES += mt7620a_mt7610e define Device/mt7620a_v22sg DTS := MT7620a_V22SG DEVICE_TITLE := MediaTek MT7620a V22SG + SUPPORTED_DEVICES := mt7620a_v22sg endef TARGET_DEVICES += mt7620a_v22sg diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk index b55f696a86f..ca1e3661b1d 100644 --- a/target/linux/ramips/image/mt7621.mk +++ b/target/linux/ramips/image/mt7621.mk @@ -329,16 +329,15 @@ define Device/zbt-we1326 endef TARGET_DEVICES += zbt-we1326 -define Device/zbt-we3526 +define Device/zbtlink_zbt-we3526 DTS := ZBT-WE3526 IMAGE_SIZE := $(ralink_default_fw_size_16M) - SUPPORTED_DEVICES := zbtlink,zbt-we3526 DEVICE_TITLE := ZBT WE3526 DEVICE_PACKAGES := \ kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \ kmod-usb3 kmod-usb-ledtrig-usbport wpad-mini endef -TARGET_DEVICES += zbt-we3526 +TARGET_DEVICES += zbtlink_zbt-we3526 define Device/zbt-wg2626 DTS := ZBT-WG2626