Skip to contentSkip to conversation

ARM: dts: exynos: Only build DTS files for subarches which are enabled

PATCH New Ian Campbell 1 participant 1 message Sep 14, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: exynos: Only build DTS files for subarches which are enabled

Currently we build all Exynos dtb files if CONFIG_ARCH_EXYNOS is enabled, even if the corresponding CONFIG_ARCH_EXYNOS[345] subarch is not enabled, meaning we may build dtbs for things which can't actually run in a particular configuration.

Switch instead to using the subarch option, based purely on the filename which I assume matches. Note that there doesn't apear to be any Exynos3 board files right now (or I have somehow missed them).

Cc Russell King <[email protected]>
Cc Kukjin Kim <[email protected]>
Cc linux-arm-kernel at lists.infradead.org
Cc linux-samsung-soc at vger.kernel.org
---
 arch/arm/boot/dts/Makefile |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/Makefile +2 -2
index adb5ed9..1538378 100644
@@ -62,7 +62,7 @@ dtb-$(CONFIG_ARCH_BERLIN) += \
 dtb-$(CONFIG_ARCH_DAVINCI) += da850-enbw-cmc.dtb \
 	da850-evm.dtb
 dtb-$(CONFIG_ARCH_EFM32) += efm32gg-dk3750.dtb
-dtb-$(CONFIG_ARCH_EXYNOS) += exynos4210-origen.dtb \
+dtb-$(CONFIG_ARCH_EXYNOS4) += exynos4210-origen.dtb \
 	exynos4210-smdkv310.dtb \
 	exynos4210-trats.dtb \
 	exynos4210-universal_c210.dtb \
@@ -71,7 +71,7 @@ dtb-$(CONFIG_ARCH_EXYNOS) += exynos4210-origen.dtb \
 	exynos4412-smdk4412.dtb \
 	exynos4412-tiny4412.dtb \
 	exynos4412-trats2.dtb \
-	exynos5250-arndale.dtb \
+dtb-$(CONFIG_ARCH_EXYNOS5) += exynos5250-arndale.dtb \
 	exynos5250-smdk5250.dtb \
 	exynos5250-snow.dtb \
 	exynos5260-xyref5260.dtb \
Signature · 1 line
1.7.10.4