build: set platform name without quotes and reuse everywhere

Avoid having to remove quotes wherever the platform name is used
by exporting the variable only once.

Change-Id: I4cb51901e4ac19d70d0310fe6bbacd157f586661
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2015-11-26 16:45:36 -05:00
commit 1e3dca51bb
12 changed files with 17 additions and 20 deletions

View file

@ -1,7 +1,7 @@
subdir-ccflags-y +=-I$(srctree)/include/drivers
subdir-ccflags-y +=-I$(srctree)/drivers
subdir-ccflags-y +=-I$(srctree)/arch/arm/platforms/$(subst $(DQUOTE),,$(CONFIG_PLATFORM))
subdir-ccflags-y +=-I$(srctree)/arch/arm/platforms/$(PLATFORM_NAME)
subdir-asflags-y := ${subdir-ccflags-y}
obj-y += core/
obj-y += platforms/$(subst $(DQUOTE),,$(CONFIG_PLATFORM))/
obj-y += platforms/$(PLATFORM_NAME)/