build: use export to pass CFLAGS to zephyrmake
If CFLAGS have spaces, the existing zephyrmake leaks part of it as arguments for make. Instead of explicitly setting, just the export the CFLAGS to make it visible to the inner call to make. Change-Id: I7b083cbc19a49e8dede39333443c701567d214c0 Signed-off-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
This commit is contained in:
parent
60b18711f3
commit
e450b2db00
1 changed files with 3 additions and 1 deletions
|
@ -60,7 +60,9 @@ else
|
|||
S = -s
|
||||
endif
|
||||
|
||||
zephyrmake = @+$(MAKE) -C $(ZEPHYR_BASE) O=$(1) CFLAGS=$(CFLAGS) \
|
||||
export CFLAGS
|
||||
|
||||
zephyrmake = @+$(MAKE) -C $(ZEPHYR_BASE) O=$(1) \
|
||||
PROJECT=$(PROJECT_BASE) SOURCE_DIR=$(SOURCE_DIR) $(2)
|
||||
|
||||
BOARDCONFIG = $(O)/.board_$(BOARD)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue