summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorNamyoon Woo <namyoon@google.com>2020-03-07 21:34:18 -0800
committerCommit Bot <commit-bot@chromium.org>2020-03-11 20:55:41 +0000
commit744a123033a043f7b10b7937ed7814fa1505d3fd (patch)
treece70fdf2b7197b8c80e9c4c120e5db1a249a1bb9 /common
parentb3a99aa3f7d4c9c34363a4bc905fd07e22bb27b8 (diff)
downloadchrome-ec-744a123033a043f7b10b7937ed7814fa1505d3fd.tar.gz
introducing an unittest of EC-EFS
This patch adds a test case for EC-EFS functions. BUG=b:150650877 BRANCH=cr50 TEST=make run-ec_comm make runhosttests make buildall -j Signed-off-by: Namyoon Woo <namyoon@chromium.org> Change-Id: I90cdc3aa73cf8946da4cf094de5ca0adfaaa0a7c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2096338 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/ec_efs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/ec_efs.c b/common/ec_efs.c
index b61ed87888..9cc4061882 100644
--- a/common/ec_efs.c
+++ b/common/ec_efs.c
@@ -280,3 +280,10 @@ void ec_efs_print_status(void)
HEX_BUF(ec_efs_ctx.hash, SHA256_DIGEST_SIZE));
#endif
}
+
+#ifdef BOARD_HOST
+uint8_t ec_efs_get_boot_mode(void)
+{
+ return ec_efs_ctx.boot_mode;
+}
+#endif