mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-09 12:15:21 +00:00
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>
6 lines
168 B
Makefile
6 lines
168 B
Makefile
ccflags-y +=-I$(srctree)/include/drivers
|
|
ccflags-y +=-I$(srctree)/arch/$(ARCH)
|
|
ccflags-y +=-I$(srctree)/arch/$(ARCH)/$(strip $(CONFIG_BSP_DIR))
|
|
|
|
obj-y = uart_console.o
|