summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-07-15 16:17:32 -0700
committerChromeBot <chrome-bot@google.com>2013-07-16 12:06:31 -0700
commit0c73fdae773be0d42c969e4171b0504fcf06b97a (patch)
tree120e5c72cc095911d5761f2004b959176bcc974c /Makefile
parent873e4425c5e27be3019b0ca47251e6fb94715bd3 (diff)
downloadchrome-ec-0c73fdae773be0d42c969e4171b0504fcf06b97a.tar.gz
Make a top-level config.h file to include sub-configs
This file will soon contain the exhaustive list of all CONFIG defines and their descriptions. Chip-level configs are renamed to config_chip.h to avoid naming conflicts. BUG=chrome-os-partner:18343 BRANCH=none TEST=build all platforms Change-Id: I9e94146f5b4c016894bd3ae3d371c4b9f3f69afe Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/62122 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 2 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 93b7b43028..50e057d699 100644
--- a/Makefile
+++ b/Makefile
@@ -35,10 +35,8 @@ else
endif
_tsk_cfg:=$(foreach t,$(_tsk_lst) ,HAS_TASK_$(t))
CPPFLAGS+=$(foreach t,$(_tsk_cfg),-D$(t))
-_flag_cfg:=$(shell $(CPP) $(CPPFLAGS) -P -dN chip/$(CHIP)/config.h | \
- grep -o "CONFIG_.*") \
- $(shell $(CPP) $(CPPFLAGS) -P -dN board/$(BOARD)/board.h | \
- grep -o "CONFIG_.*")
+_flag_cfg:=$(shell $(CPP) $(CPPFLAGS) -P -dN -Ichip/$(CHIP) -Iboard/$(BOARD) \
+ include/config.h | grep -o "CONFIG_.*")
$(foreach c,$(_tsk_cfg) $(_flag_cfg),$(eval $(c)=y))
$(eval BOARD_$(BOARD)=y)