summaryrefslogtreecommitdiff
path: root/common/build.mk
diff options
context:
space:
mode:
authorAbe Levkoy <alevkoy@chromium.org>2021-01-15 12:09:13 -0700
committerCommit Bot <commit-bot@chromium.org>2021-01-22 00:01:49 +0000
commitea4a53732db48588bb77f853e574d52b0b70a528 (patch)
tree7f4bd7d89bb77b117d96e7f908d9ff2cfb6cb331 /common/build.mk
parentcc65a4bc8a1a39cd884878e3d57e1325493895b7 (diff)
downloadchrome-ec-ea4a53732db48588bb77f853e574d52b0b70a528.tar.gz
charge_manager: Create mock
Allow tests to use a mock charge_manager. Do not build the real charge manager when this is used. BUG=b:173023378,b:169385081,b:172709198,b:173028832,b:173028791 BUG=b:173141941,b:173142113 TEST=make buildall BRANCH=none Signed-off-by: Abe Levkoy <alevkoy@chromium.org> Change-Id: I49caccafd024515833880d7251092b77623d4a71 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2639584 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'common/build.mk')
-rw-r--r--common/build.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/build.mk b/common/build.mk
index 1acc35347b..c4ee00836c 100644
--- a/common/build.mk
+++ b/common/build.mk
@@ -48,7 +48,9 @@ common-$(CONFIG_BODY_DETECTION)+=body_detection.o
common-$(CONFIG_CAPSENSE)+=capsense.o
common-$(CONFIG_CEC)+=cec.o
common-$(CONFIG_CROS_BOARD_INFO)+=cbi.o
+ifeq ($(HAS_MOCK_CHARGE_MANAGER),)
common-$(CONFIG_CHARGE_MANAGER)+=charge_manager.o
+endif
common-$(CONFIG_CHARGE_RAMP_HW)+=charge_ramp.o
common-$(CONFIG_CHARGE_RAMP_SW)+=charge_ramp.o charge_ramp_sw.o
common-$(CONFIG_CMD_CHARGEN) += chargen.o