summaryrefslogtreecommitdiff
path: root/Makefile.inc
diff options
context:
space:
mode:
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>2016-05-20 11:54:53 -0300
committerAnas Nashif <nashif@linux.intel.com>2016-05-23 17:44:47 +0000
commite450b2db00498ac06b0cf54e40b47773d25ed92f (patch)
treef4d462af016d8b68504b49489f1829a61d3d7cb0 /Makefile.inc
parent60b18711f3562729af62fae74bd915396bf656a6 (diff)
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>
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.inc b/Makefile.inc
index 18115e5c0..b15b90a11 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -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)