diff options
author | Paul Selkirk <paul@psgd.org> | 2020-02-18 19:41:41 -0500 |
---|---|---|
committer | Paul Selkirk <paul@psgd.org> | 2020-02-18 19:48:27 -0500 |
commit | 16c9fbd9bc9ad432260fda7558415aedf64844d7 (patch) | |
tree | 5012add3bc12777f238b7ee09e571db27c57a0b3 /projects/cli-test/Makefile | |
parent | e203f797dddfcd03419e7ac336a86a6186fce0c1 (diff) |
timing tests for RSA signingmodexpng
Diffstat (limited to 'projects/cli-test/Makefile')
-rw-r--r-- | projects/cli-test/Makefile | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/projects/cli-test/Makefile b/projects/cli-test/Makefile index e01b243..5bb3fb1 100644 --- a/projects/cli-test/Makefile +++ b/projects/cli-test/Makefile @@ -1,5 +1,6 @@ -TEST = cli-test +PROJ = cli-test +# objs in addition to $(PROJ).o OBJS = \ mgmt-cli.o \ mgmt-dfu.o \ @@ -7,17 +8,21 @@ OBJS = \ mgmt-keystore.o \ mgmt-masterkey.o \ mgmt-misc.o \ - mgmt-show.o \ - mgmt-test.o \ - test-fmc.o \ - test-mkmif.o \ - test_sdram.o + mgmt-show.o CFLAGS += -I$(LIBCLI_SRC) -I$(LIBHAL_SRC) +CFLAGS += -I$(LIBTFM_BLD) +CFLAGS += -Wno-missing-field-initializers + +ifdef DO_TIMING +CFLAGS += -DDO_TIMING +OBJS += mgmt-timing.o $(TOPLEVEL)/stm-dwt.o +LDFLAGS += -lm +endif LIBS += $(LIBCLI_BLD)/libcli.a $(LIBHAL_BLD)/libhal.a $(LIBTFM_BLD)/libtfm.a -all: $(TEST:=.elf) +all: $(PROJ:=.elf) %.elf: %.o $(BOARD_OBJS) $(OBJS) $(LIBS) $(CC) $(CFLAGS) $^ -o $@ -T$(LDSCRIPT) -g -Wl,-Map=$*.map |