aboutsummaryrefslogtreecommitdiff
path: root/projects/hsm/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'projects/hsm/Makefile')
-rw-r--r--projects/hsm/Makefile21
1 files changed, 16 insertions, 5 deletions
diff --git a/projects/hsm/Makefile b/projects/hsm/Makefile
index 55e021f..06cfcc2 100644
--- a/projects/hsm/Makefile
+++ b/projects/hsm/Makefile
@@ -1,7 +1,14 @@
PROJ = hsm
# objs in addition to $(PROJ).o
-OBJS = crc32.o mgmt-cli.o mgmt-dfu.c mgmt-fpga.c mgmt-misc.c mgmt-show.c
+OBJS = crc32.o \
+ mgmt-cli.o \
+ mgmt-dfu.c \
+ mgmt-fpga.c \
+ mgmt-keystore.c \
+ mgmt-masterkey.c \
+ mgmt-misc.c \
+ mgmt-show.c
BOARD_OBJS = \
$(TOPLEVEL)/stm-init.o \
@@ -19,13 +26,17 @@ BOARD_OBJS = \
$(BOARD_DIR)/stm32f4xx_hal_msp.o \
$(BOARD_DIR)/stm32f4xx_it_rtos.o
-CFLAGS += -I$(LIBHAL_DIR)
-CFLAGS += -I$(LIBCLI_DIR)
+ifndef CRYPTECH_ROOT
+ CRYPTECH_ROOT := $(abspath ../../../..)
+endif
+
+CFLAGS += -I$(LIBHAL_SRC)
+CFLAGS += -I$(LIBCLI_SRC)
CFLAGS += -I$(RTOS_DIR)/rtos -I$(RTOS_DIR)/rtx/TARGET_CORTEX_M
-LIBS += $(LIBHAL_DIR)/libhal.a $(LIBTFM_DIR)/libtfm.a
+LIBS += $(LIBHAL_BLD)/libhal.a $(LIBTFM_BLD)/libtfm.a
+LIBS += $(LIBCLI_BLD)/libcli.a
LIBS += $(RTOS_DIR)/librtos.a
-LIBS += $(LIBCLI_DIR)/libcli.a
all: $(PROJ:=.elf)