From e450b2db00498ac06b0cf54e40b47773d25ed92f Mon Sep 17 00:00:00 2001 From: Caio Marcelo de Oliveira Filho Date: Fri, 20 May 2016 11:54:53 -0300 Subject: [PATCH] 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 --- Makefile.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.inc b/Makefile.inc index 18115e5c020..b15b90a115e 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)