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 <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2015-11-02 20:55:47 -05:00
commit 3816104619

View file

@ -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))/