summaryrefslogtreecommitdiff
path: root/common/build.mk
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2019-04-05 10:42:50 -0700
committerCommit Bot <commit-bot@chromium.org>2019-07-02 23:28:41 +0000
commitc7f66d9adc31395fd0fa336ab6050c4953b98b35 (patch)
tree4a90a806eb4c51fbbac54b5a52990c3edbd2d7ad /common/build.mk
parent4509620f1e7873ee239b558675a47c69f614a732 (diff)
downloadchrome-ec-c7f66d9adc31395fd0fa336ab6050c4953b98b35.tar.gz
add chargen command to allow EC and AP to flood the console
The chargen command sends continuous stream of characters to the console (UART console in case of EC). The stream follows a pattern where the value of each next character is the value of the previous character + 1, while staying in the ASCII range of 0..9A..Za..Z This allows to create tests which validate console output by verifying that no characters in the received sequence were lost. BRANCH=none BUG=b:38448364 TEST=Enabled the command for bobba EC board, and verified that the chargen works on both EC and AP on an Octopus device Change-Id: I9701bb493b0454de4cb4baa4784ab645b33a415f Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1554198 Reviewed-by: Namyoon Woo <namyoon@chromium.org>
Diffstat (limited to 'common/build.mk')
-rw-r--r--common/build.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/build.mk b/common/build.mk
index 4a3ff23abf..d0231feaf6 100644
--- a/common/build.mk
+++ b/common/build.mk
@@ -41,6 +41,7 @@ common-$(CONFIG_CROS_BOARD_INFO)+=cbi.o
common-$(CONFIG_CHARGE_MANAGER)+=charge_manager.o
common-$(CONFIG_CHARGE_RAMP_HW)+=charge_ramp.o
common-$(CONFIG_CHARGE_RAMP_SW)+=charge_ramp.o charge_ramp_sw.o
+common-$(CONFIG_CHARGEN) += chargen.o
common-$(CONFIG_CHARGER)+=charger.o
common-$(CONFIG_CHARGER_PROFILE_OVERRIDE_COMMON)+=charger_profile_override.o
common-$(CONFIG_CHARGER_V2)+=charge_state_v2.o