From dc862be3019299cc280053d73474c7f838ce15a0 Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Tue, 21 Jan 2020 21:54:50 +0100 Subject: ramips: define SOC only once for uniform targets In ramips, all devices in mt7621, mt76x8 and rt288x subtarget have the same value set to the SOC variable for each device individually. This patch introduces a non-device-dependent variable DEFAULT_SOC, which is used if no specific SOC is set for a device, and thus reduces the number of redundant definitions drastically. Signed-off-by: Adrian Schmutzler --- target/linux/ramips/image/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'target/linux/ramips/image/Makefile') diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index b6f82c1151..1d865aa567 100644 --- a/target/linux/ramips/image/Makefile +++ b/target/linux/ramips/image/Makefile @@ -23,6 +23,7 @@ KERNEL_DTB = kernel-bin | append-dtb | lzma define Device/Default PROFILES = Default KERNEL := $(KERNEL_DTB) | uImage lzma + SOC := $(DEFAULT_SOC) DEVICE_DTS_DIR := ../dts DEVICE_DTS = $$(SOC)_$(1) IMAGES := sysupgrade.bin -- cgit v1.2.3