summaryrefslogtreecommitdiff
path: root/common/build.mk
diff options
context:
space:
mode:
Diffstat (limited to 'common/build.mk')
-rw-r--r--common/build.mk15
1 files changed, 15 insertions, 0 deletions
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)