From 402138d12dca1a24d2837145c8d31c9d35769b9d Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Wed, 3 Jul 2019 23:22:22 +0200 Subject: ramips: Derive DTS name from device name in Makefile This will automatically derive the DTS name as in ath79 and thus makes specifying DTS for every device obsolete. Signed-off-by: Adrian Schmutzler --- This patch only introduces the mechanism and is then followed by commits with renames and Makefile adjustments per subtarget. Eventually, those can be all squashed into a single commit or left as they are to enhance overview. --- target/linux/ramips/image/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'target/linux/ramips/image/Makefile') diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index 07251aebba..181c825873 100644 --- a/target/linux/ramips/image/Makefile +++ b/target/linux/ramips/image/Makefile @@ -23,8 +23,9 @@ KERNEL_DTB = kernel-bin | append-dtb | lzma define Device/Default PROFILES = Default KERNEL := $(KERNEL_DTB) | uImage lzma + MTK_SOC := DEVICE_DTS_DIR := ../dts - DEVICE_DTS = $$(DTS) + DEVICE_DTS = $$(MTK_SOC)_$(1) IMAGES := sysupgrade.bin IMAGE_SIZE := $(ralink_default_fw_size_8M) SUPPORTED_DEVICES := $(subst _,$(comma),$(1)) -- cgit v1.2.3