summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRong Chang <rongchang@google.com>2012-02-06 14:31:03 -0800
committerRong Chang <rongchang@google.com>2012-02-06 14:45:20 -0800
commit57c581891d30fd7160505e82355cc9c9a4232bd3 (patch)
tree8e20fd7357cc9a4092b0e304e7e05a1ed75e9931 /Makefile
parent6409913523b047ca7b1dd39bb51edf11f3eefdaa (diff)
downloadchrome-ec-57c581891d30fd7160505e82355cc9c9a4232bd3.tar.gz
Add board configuration flags in board.h
Current makefile takes CONFIG_* flags from $(CHIP)/config.h . This CL adds $(BOARD)/board.h and a sample charger config flag. Signed-off-by: Rong Chang <rongchang@google.com> BUG=chrome-os-partner:7917 TEST=build bds,link board and check warning and error messages. Change-Id: I1f13d24da6b18c014f40f941ef7245487e5ccc81
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3c7bb6819e..076f7433cc 100644
--- a/Makefile
+++ b/Makefile
@@ -21,7 +21,8 @@ include board/$(BOARD)/build.mk
_tsk_lst:=$(shell echo "CONFIG_TASK_LIST" | $(CPP) -P -Iboard/$(BOARD) -Itest \
-D"TASK(n, r, d)=n" -imacros $(PROJECT).tasklist)
_tsk_cfg:=$(foreach t,$(_tsk_lst),CONFIG_TASK_$(t))
-_flag_cfg:=$(shell $(CPP) -P -dN chip/$(CHIP)/config.h | grep -o "CONFIG_.*")
+_flag_cfg:=$(shell $(CPP) -P -dN chip/$(CHIP)/config.h | grep -o "CONFIG_.*") \
+ $(shell $(CPP) -P -dN board/$(BOARD)/board.h | grep -o "CONFIG_.*")
$(foreach c,$(_tsk_cfg) $(_flag_cfg),$(eval $(c)=y))
CPPFLAGS+=$(foreach t,$(_tsk_cfg),-D$(t))