arm: remove repeating cflags in Makefiles
Do not repeat the same flags for every added platform. Define the common flags on the architecture level instead. Change-Id: I0e501d6a909892dd682b106fb2a5072434a39563 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
3816104619
commit
b533cdc302
3 changed files with 5 additions and 14 deletions
|
@ -1,2 +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-asflags-y := ${subdir-ccflags-y}
|
||||||
|
|
||||||
obj-y += core/
|
obj-y += core/
|
||||||
obj-y += platforms/$(subst $(DQUOTE),,$(CONFIG_PLATFORM))/
|
obj-y += platforms/$(subst $(DQUOTE),,$(CONFIG_PLATFORM))/
|
||||||
|
|
|
@ -1,10 +1,3 @@
|
||||||
ccflags-y +=-I$(srctree)/include/drivers
|
|
||||||
ccflags-y +=-I$(srctree)/drivers
|
|
||||||
ccflags-y +=-I$(srctree)/arch/arm/platforms/fsl_frdm_k64f
|
|
||||||
|
|
||||||
asflags-y := ${ccflags-y}
|
|
||||||
|
|
||||||
|
|
||||||
obj-y += platform_config.o
|
obj-y += platform_config.o
|
||||||
obj-y += system.o
|
obj-y += system.o
|
||||||
obj-y += nmi_on_reset.o
|
obj-y += nmi_on_reset.o
|
||||||
|
|
|
@ -1,10 +1,3 @@
|
||||||
ccflags-y +=-I$(srctree)/include/drivers
|
|
||||||
ccflags-y +=-I$(srctree)/drivers
|
|
||||||
ccflags-y +=-I$(srctree)/arch/arm/platforms/ti_lm3s6965
|
|
||||||
|
|
||||||
asflags-y := ${ccflags-y}
|
|
||||||
|
|
||||||
|
|
||||||
obj-y += platform_config.o
|
obj-y += platform_config.o
|
||||||
obj-y += system.o
|
obj-y += system.o
|
||||||
obj-y += nmi_on_reset.o
|
obj-y += nmi_on_reset.o
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue