diff options
-rw-r--r-- | board/cr50/build.mk | 1 | ||||
-rw-r--r-- | common/build.mk | 15 | ||||
-rw-r--r-- | include/config.h | 3 |
3 files changed, 19 insertions, 0 deletions
diff --git a/board/cr50/build.mk b/board/cr50/build.mk index 8d7fe50b4e..a62a43bd1e 100644 --- a/board/cr50/build.mk +++ b/board/cr50/build.mk @@ -185,6 +185,7 @@ board-y += tpm2/virtual_nvmem.o board-y += tpm_nvmem_ops.o board-y += wp.o board-$(CONFIG_PINWEAVER)+=pinweaver_tpm_imports.o +board-$(CONFIG_PLATFORM_PINWEAVER)+=pinweaver_tpm_imports.o TPM2_MODULE := linkedtpm2.cp.o board-y += $(TPM2_MODULE) diff --git a/common/build.mk b/common/build.mk index da97209f3a..8f445c4815 100644 --- a/common/build.mk +++ b/common/build.mk @@ -219,6 +219,21 @@ $(out)/rma_key_from_blob.h: board/$(BOARD)/$(BLOB_FILE) util/bin2h.sh endif +# Build platform/pinweaver. +ifeq ($(CONFIG_PLATFORM_PINWEAVER),y) +PINWEAVERLIB := $(realpath ../pinweaver) +CPPFLAGS += -I$(PINWEAVERLIB) -I$(PINWEAVERLIB)/eal/cr50 +CPPFLAGS += -D BIOMETRICS_DEV=false + +common-y += pinweaver.o +common-y += pinweaver_eal.o + +$(out)/RW/common/pinweaver_eal.o: $(PINWEAVERLIB)/eal/cr50/pinweaver_eal.c + $(call quiet,c_to_o,CC ) +$(out)/RW/common/pinweaver.o: $(PINWEAVERLIB)/pinweaver.c + $(call quiet,c_to_o,CC ) +endif + # Build and link against libcryptoc. ifeq ($(CONFIG_LIBCRYPTOC),y) CRYPTOCLIB := $(realpath ../../third_party/cryptoc) diff --git a/include/config.h b/include/config.h index 86f06b4c6c..c45ca82b00 100644 --- a/include/config.h +++ b/include/config.h @@ -2635,7 +2635,10 @@ * A feature which exchanges a low entropy secret with rate limits for a high * entropy secret. This enables a set of vendor specific commands for Cr50. */ +/* Use Cr50 pinweaver */ #undef CONFIG_PINWEAVER +/* Use platform/pinweaver */ +#undef CONFIG_PLATFORM_PINWEAVER /*****************************************************************************/ /* PMU config */ |