summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2018-12-05 13:51:06 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-12-06 22:06:26 -0800
commita45e42da1a5c16a94d4d02531802f87061b8891c (patch)
tree7b7697d05a32e987ef99437a78b26a1aa91df8e0 /test
parent74a598dd11bdfb03001e8ab8e62757beb8622583 (diff)
downloadchrome-ec-a45e42da1a5c16a94d4d02531802f87061b8891c.tar.gz
cr50: provide DCRYPTO_ladder_is_enabled() for test and fuzz builds
This function is called from common/nvmem.c, it should be available when compiling for tests, the stub could be filled up later when new tests are added. BRANCH=cr50, cr50-mp BUG=b:119221935 TEST=make buildall -j still succeeds. Change-Id: I082292818c7f2b10336c9a7c49e0a9195e25a12b Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1363816 Reviewed-by: Allen Webb <allenwebb@google.com>
Diffstat (limited to 'test')
-rw-r--r--test/nvmem.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/nvmem.c b/test/nvmem.c
index d09bf8752a..8ce978d750 100644
--- a/test/nvmem.c
+++ b/test/nvmem.c
@@ -696,6 +696,11 @@ static void run_test_setup(void)
test_reset();
}
+int DCRYPTO_ladder_is_enabled(void)
+{
+ return 1;
+}
+
void run_test(void)
{
run_test_setup();