summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Hesling <hesling@chromium.org>2019-12-04 20:28:38 -0800
committerCommit Bot <commit-bot@chromium.org>2019-12-11 00:04:15 +0000
commit69b96e5f58e6db0eaadcf7d96148f33704e24c90 (patch)
treebcc9d202aabe4083a102aa435bcc0387c61ba144
parent42146139144fc2debf9ede8d31148f9cbfd2a19f (diff)
downloadchrome-ec-69b96e5f58e6db0eaadcf7d96148f33704e24c90.tar.gz
rollback: Conditionally include cryptoc
This include is not needed and not available when CONFIG_ROLLBACK_SECRET_SIZE is not defined. BRANCH=none BUG=none TEST=make buildall -j TEST=# undefine CONFIG_ROLLBACK_SECRET_SIZE in nocturne_fp board.h make BOARD=nocturne_fp # This will not compile without this fix # With this fix, no compilation errors are output Change-Id: I651f4e254189f34228f1aa2f2a2ff21808ab5d5c Signed-off-by: Craig Hesling <hesling@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1952291 Reviewed-by: Jett Rink <jettrink@chromium.org>
-rw-r--r--common/rollback.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/rollback.c b/common/rollback.c
index ea508f2b0b..2b13787e58 100644
--- a/common/rollback.c
+++ b/common/rollback.c
@@ -7,7 +7,9 @@
#include "common.h"
#include "console.h"
+#ifdef CONFIG_LIBCRYPTOC
#include "cryptoc/util.h"
+#endif
#include "flash.h"
#include "hooks.h"
#include "host_command.h"