From 16c9fbd9bc9ad432260fda7558415aedf64844d7 Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Tue, 18 Feb 2020 19:41:41 -0500 Subject: timing tests for RSA signing --- projects/hsm/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'projects/hsm/Makefile') 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) -- cgit v1.2.3 From 4b30c58d7062079ad14a990b552a7e8837345f07 Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Wed, 26 Feb 2020 11:08:15 -0500 Subject: Some timing tests overflow the meagre 16K CLI task stack, so bump it up for that case. --- projects/hsm/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'projects/hsm/Makefile') diff --git a/projects/hsm/Makefile b/projects/hsm/Makefile index 5e6c4bb..a2b7c0d 100644 --- a/projects/hsm/Makefile +++ b/projects/hsm/Makefile @@ -37,6 +37,7 @@ endif ifdef DO_TIMING CFLAGS += -DDO_TIMING CFLAGS += -I../cli-test +CFLAGS += -DCLI_STACK_SIZE=65536 OBJS += ../cli-test/mgmt-timing.o $(TOPLEVEL)/stm-dwt.o LDFLAGS += -lm endif -- cgit v1.2.3