summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Sukhomlinov <sukhomlinov@google.com>2021-09-15 14:25:12 -0700
committerCommit Bot <commit-bot@chromium.org>2021-09-15 22:44:07 +0000
commitf22792d5839fea0d1a711a2210989274d0a9fb8f (patch)
tree036e088e78131207089790eff3c7b9bc13ef0b4b
parente84c0c2ee01a7a882f70b7430c5f11d6cb85a63c (diff)
downloadchrome-ec-f22792d5839fea0d1a711a2210989274d0a9fb8f.tar.gz
cr50: dcrypto/hkdf.c only used by CRYPTO_TEST=1 code, so don't link it
It seems now HDKF is only used by RSA key gen test from seed and by test/tpm_test/tpmtest.py, so link it only when CRYPTO_TEST=1 is used. This saves some space for prod build, as all functions of FIPS module are linked in as a whole. BUG=none TEST=make BOARD=cr50 Signed-off-by: Vadim Sukhomlinov <sukhomlinov@google.com> Change-Id: I7f925d4dabd8685efe5916933198d5560bdacd9f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3163309 Reviewed-by: Vadim Sukhomlinov <sukhomlinov@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> Tested-by: Vadim Sukhomlinov <sukhomlinov@chromium.org> Commit-Queue: Vadim Sukhomlinov <sukhomlinov@chromium.org>
-rw-r--r--board/cr50/build.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/cr50/build.mk b/board/cr50/build.mk
index 7e83e05405..61582ed26c 100644
--- a/board/cr50/build.mk
+++ b/board/cr50/build.mk
@@ -111,8 +111,9 @@ fips-${CONFIG_DCRYPTO_BOARD} += dcrypto/compare.o
fips-${CONFIG_DCRYPTO_BOARD} += dcrypto/dcrypto_runtime.o
ifneq ($(CRYPTO_TEST),)
fips-${CONFIG_DCRYPTO_BOARD} += dcrypto/gcm.o
-endif
fips-${CONFIG_DCRYPTO_BOARD} += dcrypto/hkdf.o
+endif
+
fips-${CONFIG_DCRYPTO_BOARD} += dcrypto/hmac_sw.o
fips-${CONFIG_DCRYPTO_BOARD} += dcrypto/hmac_drbg.o
fips-${CONFIG_DCRYPTO_BOARD} += dcrypto/key_ladder.o