summaryrefslogtreecommitdiff
path: root/chip/g/config_chip.h
diff options
context:
space:
mode:
authorYicheng Li <yichengli@chromium.org>2019-12-03 15:27:16 -0800
committerCommit Bot <commit-bot@chromium.org>2019-12-05 23:45:54 +0000
commita018043265ecb3466863ff9020ab25d552105c61 (patch)
tree46b30b807379b7bf0cff9ce8d07a38b1e5a680ad /chip/g/config_chip.h
parentcd5d2f4fb0a3166b8874ad2793b6afae8736b91c (diff)
downloadchrome-ec-a018043265ecb3466863ff9020ab25d552105c61.tar.gz
chip/host: Avoid concurrent recipes of libcryptoc.a
CONFIG_DCRYPTO compiles and links thirdparty/libcryptoc for cr50. CONFIG_LIBCRYPTOC does similar things for other boards that configures it, including host. This resulted in cr50_fuzz having concurrent recipes for libcryptoc, as it has both configs. This change separates CONFIG_DCRYPTO from the responsibility of building and linking libcryptoc. Libcryptoc is now solely handles by CONFIG_LIBCRYPTOC. BRANCH=none BUG=b:144811298 TEST=make -j buildall > /dev/null Observed no more "warning: overriding recipe for target 'build/host/cr50_fuzz/cryptoc/libcryptoc.a' " Change-Id: I2186cbead773629456da254df5f82b96e9646fc2 Signed-off-by: Yicheng Li <yichengli@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1949554 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'chip/g/config_chip.h')
-rw-r--r--chip/g/config_chip.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chip/g/config_chip.h b/chip/g/config_chip.h
index f7ef934c0d..7c60567dfc 100644
--- a/chip/g/config_chip.h
+++ b/chip/g/config_chip.h
@@ -159,4 +159,7 @@
#define CONFIG_FLASH_LOG_BASE \
(CONFIG_PROGRAM_MEMORY_BASE + CHIP_RO_B_MEM_OFF + CONFIG_RO_SIZE - \
CONFIG_FLASH_LOG_SPACE)
+
+/* Use software crypto (libcryptoc). */
+#define CONFIG_LIBCRYPTOC
#endif /* __CROS_EC_CONFIG_CHIP_H */