Use ccflags-y and asflags-y instead of EXTRA_CFLAGS

According to section 3.7 of Documentation/kbuild/makefiles.txt, using
EXTRA_CFLAGS in Makefiles is "still supported but their usage is
deprecated." However, using make EXTRA_CFLAGS="-DSOMETHING" results in
EXTRA_CFLAGS from Makefiles being overwritten, obviously breaking the
build.  This patch converts to them to the newer ccflags-y which also
fixes the problem.

Change-Id: I6309439599d4c9cc184f9ecd941bde841982ef07
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2015-06-03 22:17:57 -04:00
commit bbe84f8ae5
61 changed files with 116 additions and 116 deletions

View file

@ -1,8 +1,8 @@
EXTRA_CFLAGS += -I$(srctree)/kernel/nanokernel/include
EXTRA_CFLAGS += -I$(srctree)/kernel/microkernel/include
EXTRA_CFLAGS += -I$(srctree)/target/src/bsp/arm
ccflags-y += -I$(srctree)/kernel/nanokernel/include
ccflags-y += -I$(srctree)/kernel/microkernel/include
ccflags-y += -I$(srctree)/target/src/bsp/arm
EXTRA_AFLAGS := ${EXTRA_CFLAGS}
asflags-y := ${ccflags-y}
obj-y = atomic.o exc_exit.o ffs.o irq_init.o \
nano_fiber_abort.o swap.o basepri.o \