From 381610461995ec91a104a5d0758221cd64d4247e Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Mon, 2 Nov 2015 20:55:47 -0500 Subject: [PATCH] arm: only build configured platform Use CONFIG_PLATFORM to only build the selected platform. This will enable support for drop-in platforms. Makefile will not need to be changed for every new platforms. Change-Id: I22778e8242422e487e941143df3e521b33f2b0a8 Signed-off-by: Anas Nashif --- arch/arm/Kbuild | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm/Kbuild b/arch/arm/Kbuild index 8f12275bac1..2f267e3378b 100644 --- a/arch/arm/Kbuild +++ b/arch/arm/Kbuild @@ -1,4 +1,2 @@ -obj-y = core/ - -obj-$(CONFIG_PLATFORM_FSL_FRDM_K64F) += platforms/fsl_frdm_k64f/ -obj-$(CONFIG_PLATFORM_TI_LM3S6965) += platforms/ti_lm3s6965/ +obj-y += core/ +obj-y += platforms/$(subst $(DQUOTE),,$(CONFIG_PLATFORM))/