summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYicheng Li <yichengli@chromium.org>2019-08-21 17:18:06 -0700
committerCommit Bot <commit-bot@chromium.org>2019-08-23 18:52:49 +0000
commit5ce0aa26c41ea0d6f0c22deaa2233ca4552797f0 (patch)
tree881e92111fc417bf2b0d1267155c76311959fbae /include
parenta06dc0b52c6415eabc3a5d46357894bbe6416a17 (diff)
downloadchrome-ec-5ce0aa26c41ea0d6f0c22deaa2233ca4552797f0.tar.gz
common: Add CONFIG_LIBCRYPTOC to enable third_party/cryptoc
Boards that have CONFIG_LIBCRYPTOC will be able to use functions in third_party/cryptoc. Functions in third_party/cryptoc that are not called will not be linked because of linker optimization. This can be verified by checking the "smap" file in the build directory for a given target (e.g. build/nocturne_fp/RW/ec.RW.smap), which contains a list of all symbols in the target. Configure CONFIG_LIBCRYPTOC in nocturne_fp and hatch_fp. This config replaces CONFIG_ALWAYS_MEMSET. BRANCH=nocturne BUG=chromium:968809,chromium:989594,b:130238794 TEST=make -j buildall Change-Id: Ia40da9fb429f9d03623bc92e25f6670e5cdbd983 Signed-off-by: Yicheng Li <yichengli@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1764835 Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/config.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/config.h b/include/config.h
index c168381834..a31ba2ba81 100644
--- a/include/config.h
+++ b/include/config.h
@@ -328,11 +328,8 @@
/* Define which ALS sensor is used for dimming the lightbar when dark */
#undef CONFIG_ALS_LIGHTBAR_DIMMING
-/*
- * Support always_memset() defined in third_party/cryptoc, which will not be
- * optimized out by compiler.
- */
-#undef CONFIG_ALWAYS_MEMSET
+/* Link against third_party/cryptoc. */
+#undef CONFIG_LIBCRYPTOC
/* Support AP hang detection host command and state machine */
#undef CONFIG_AP_HANG_DETECT