From fa9bfd03289ff40dec869eb3f16f74937bb91cbd Mon Sep 17 00:00:00 2001 From: Vadim Sukhomlinov Date: Thu, 3 Jun 2021 11:47:36 -0700 Subject: cr50: move trng.c under CONFIG_DCRYPTO control in chip/g/build.mk 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 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2937383 Reviewed-by: Vadim Sukhomlinov Reviewed-by: Vadim Bendebury Tested-by: Vadim Sukhomlinov Commit-Queue: Vadim Sukhomlinov --- chip/g/build.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1