diff options
author | Jett Rink <jettrink@chromium.org> | 2018-05-02 15:41:51 -0600 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-05-04 03:01:58 -0700 |
commit | 52848179d20e1abd98ad5c3feab2ee319ddbffcc (patch) | |
tree | 713e23fadc45de201cfaf81c6e1a39e2aa2ec44f /Makefile | |
parent | a6e394276036e70610d7c5ef8c65273f3176f34f (diff) | |
download | chrome-ec-52848179d20e1abd98ad5c3feab2ee319ddbffcc.tar.gz |
octopus: move more implementation to baseboard
Move driver configuration to baseboard in preparation for phaser board
BRANCH=none
BUG=none
TEST=yorp still works
Change-Id: Ifeb434d2d4103160acd6eb9f784533d1ae0ae35a
Signed-off-by: Jett Rink <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1042729
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -125,12 +125,14 @@ CPPFLAGS_RW+=$(foreach t,$(_tsk_cfg_rw),-D$(t)) \ $(foreach t,$(_tsk_cfg_ro),-D$(t)_RO) CPPFLAGS+=$(foreach t,$(_tsk_cfg),-D$(t)) +# Get the CONFIG_ and VARIANT_ options that are defined for this target and make +# them into variables available to this build script _flag_cfg_ro:=$(shell $(CPP) $(CPPFLAGS) -P -dM -Ichip/$(CHIP) \ -I$(BASEDIR) -I$(BDIR) -DSECTION_IS_RO include/config.h | \ - grep -o "\#define CONFIG_[A-Z0-9_]*" | cut -c9- | sort) + grep -o "\#define \(CONFIG\|VARIANT\)_[A-Z0-9_]*" | cut -c9- | sort) _flag_cfg_rw:=$(_tsk_cfg_rw) $(shell $(CPP) $(CPPFLAGS) -P -dM -Ichip/$(CHIP) \ -I$(BASEDIR) -I$(BDIR) -DSECTION_IS_RW include/config.h | \ - grep -o "\#define CONFIG_[A-Z0-9_]*" | cut -c9- | sort) + grep -o "\#define \(CONFIG\|VARIANT\)_[A-Z0-9_]*" | cut -c9- | sort) _flag_cfg:= $(filter $(_flag_cfg_ro), $(_flag_cfg_rw)) _flag_cfg_ro:= $(filter-out $(_flag_cfg), $(_flag_cfg_ro)) |