aboutsummaryrefslogtreecommitdiff
path: root/projects/hsm/Makefile
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2020-02-18 19:41:41 -0500
committerPaul Selkirk <paul@psgd.org>2020-02-18 19:48:27 -0500
commit16c9fbd9bc9ad432260fda7558415aedf64844d7 (patch)
tree5012add3bc12777f238b7ee09e571db27c57a0b3 /projects/hsm/Makefile
parente203f797dddfcd03419e7ac336a86a6186fce0c1 (diff)
timing tests for RSA signingmodexpng
Diffstat (limited to 'projects/hsm/Makefile')
-rw-r--r--projects/hsm/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/projects/hsm/Makefile b/projects/hsm/Makefile
index 37c552d..5e6c4bb 100644
--- a/projects/hsm/Makefile
+++ b/projects/hsm/Makefile
@@ -16,6 +16,8 @@ CFLAGS += -DNUM_RPC_TASK=4
CFLAGS += -I$(LIBHAL_SRC)
CFLAGS += -I$(LIBCLI_SRC)
+CFLAGS += -I$(LIBTFM_BLD)
+CFLAGS += -Wno-missing-field-initializers
LIBS += $(LIBHAL_BLD)/libhal.a $(LIBTFM_BLD)/libtfm.a
LIBS += $(LIBCLI_BLD)/libcli.a
@@ -32,6 +34,13 @@ ifdef DO_TASK_METRICS
CFLAGS += -DDO_TASK_METRICS
endif
+ifdef DO_TIMING
+CFLAGS += -DDO_TIMING
+CFLAGS += -I../cli-test
+OBJS += ../cli-test/mgmt-timing.o $(TOPLEVEL)/stm-dwt.o
+LDFLAGS += -lm
+endif
+
all: $(PROJ:=.elf)
%.elf: %.o $(BOARD_OBJS) $(OBJS) $(LIBS)