summaryrefslogtreecommitdiff
path: root/Makefile.toolchain
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2012-05-24 17:34:51 +0800
committerVic Yang <victoryang@chromium.org>2012-05-24 23:06:28 +0800
commitb8a2a4b575bf584dd51346f78a6e0385cc368320 (patch)
treed326bb399843fa1c0d1dc161463cb8970e830f47 /Makefile.toolchain
parenteb7765c0c41986e225506447de0d9f722c66e32b (diff)
downloadchrome-ec-b8a2a4b575bf584dd51346f78a6e0385cc368320.tar.gz
Add a way to pass in define flag when 'make'
In order to pass in different config from ebuild and enable easier debugging/testing, let's add a way to pass in define flags to make. BUG=chrome-os-partner:9936 TEST='V=1 EXTRA_CFLAGS=-DFACTORY_MODE make' and see '-DFACTORY_MODE'. Change-Id: I18dc5a3dc61bda1e63e96081def3f077ba431938
Diffstat (limited to 'Makefile.toolchain')
-rw-r--r--Makefile.toolchain2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.toolchain b/Makefile.toolchain
index 537d9a2b82..49912e090d 100644
--- a/Makefile.toolchain
+++ b/Makefile.toolchain
@@ -28,7 +28,7 @@ CFLAGS_INCLUDE=$(foreach i,$(includes),-I$(i) )
CFLAGS_DEFINE=-DOUTDIR=$(out) -DCHIP=$(CHIP) -DTASKFILE=$(PROJECT).tasklist \
-DBOARD=$(BOARD) -DBOARD_$(BOARD) -DCORE=$(CORE) -DCHIP_$(CHIP) \
-DCHIP_VARIANT=$(CHIP_VARIANT) -DCHIP_VARIANT_$(CHIP_VARIANT)
-CPPFLAGS=$(CFLAGS_DEFINE) $(CFLAGS_INCLUDE)
+CPPFLAGS=$(CFLAGS_DEFINE) $(CFLAGS_INCLUDE) $(EXTRA_CFLAGS)
CFLAGS=$(CPPFLAGS) $(CFLAGS_CPU) $(CFLAGS_DEBUG) $(CFLAGS_WARN) $(CFLAGS_y)
BUILD_CFLAGS=$(CPPFLAGS) -O3 $(CFLAGS_DEBUG) $(CFLAGS_WARN)
HOST_CFLAGS=$(CPPFLAGS) -O3 $(CFLAGS_DEBUG) $(CFLAGS_WARN)