summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Sukhomlinov <sukhomlinov@google.com>2021-06-03 11:47:36 -0700
committerCommit Bot <commit-bot@chromium.org>2021-06-03 22:15:39 +0000
commitfa9bfd03289ff40dec869eb3f16f74937bb91cbd (patch)
treed83be4adbe282539b31b31f3d1eb2fe999250395
parent47e7451821083879349df71d1c3a3d0f6c30979f (diff)
downloadchrome-ec-stabilize-14013.B-cr50_stab.tar.gz
cr50: move trng.c under CONFIG_DCRYPTO control in chip/g/build.mkstabilize-14013.B-cr50_stab
In preparation to dcrypto code refactoring as independent build unit for Cr50 U2F FIPS certifcation, need to enable disabling the use of crypto provided by chip/g/dcrypto and chip/g/trng.c. While use of chip/g/dcrypto is controlled by CONFIG_DCRYPTO, chip/g/trng.c is always linked in. Since all chip/g boards (cr50, cr52*, cr53*) enable CONFIG_DCRYPTO, and logically trng is cryptographic unit, move it under CONFIG_DCRYPTO control. BUG=b:134594373 TEST=make buildall -j Change-Id: I7be47abfe961c4a216a56e15c88254b60da10005 Signed-off-by: Vadim Sukhomlinov <sukhomlinov@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2937383 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--chip/g/build.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/g/build.mk b/chip/g/build.mk
index 75e3b87684..9ceeb0f80d 100644
--- a/chip/g/build.mk
+++ b/chip/g/build.mk
@@ -58,12 +58,12 @@ chip-$(CONFIG_DCRYPTO)+= dcrypto/sha512.o
endif
endif
chip-$(CONFIG_DCRYPTO)+= dcrypto/x509.o
+chip-$(CONFIG_DCRYPTO)+= trng.o
chip-$(CONFIG_SPI_CONTROLLER)+=spi_controller.o
chip-y+= jitter.o
chip-y+= pmu.o
-chip-y+= trng.o
chip-y+= runlevel.o
chip-$(CONFIG_CCD_ITE_PROGRAMMING)+= ite_flash.o
chip-$(CONFIG_CCD_ITE_PROGRAMMING)+= ite_sync.o