Skip to content

Commit 4dd932e

Browse files
committed
fixes for new wolfHSM
1 parent aa3ae28 commit 4dd932e

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

arch.mk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,8 +1212,7 @@ ifeq ($(ARCH), AURIX_TC3)
12121212
ifeq ($(WOLFHSM_SERVER),1)
12131213
USE_GCC_HEADLESS=0
12141214

1215-
CFLAGS += -I$(WOLFHSM_INFINEON_TC3XX)/port/server \
1216-
-I$(WOLFHSM_INFINEON_TC3XX)/port/server/config
1215+
CFLAGS += -I$(WOLFHSM_INFINEON_TC3XX)/port/server
12171216

12181217
OBJS += $(WOLFHSM_INFINEON_TC3XX)/port/server/port_halflash_df1.o \
12191218
$(WOLFHSM_INFINEON_TC3XX)/port/server/io.o \
@@ -1292,8 +1291,9 @@ ifeq ($(ARCH), AURIX_TC3)
12921291

12931292
ifeq ($(WOLFHSM_CLIENT),1)
12941293
CFLAGS += -I$(WOLFHSM_INFINEON_TC3XX)/port/client
1295-
# All source files in port/client but listed as *.o files
1296-
OBJS += $(patsubst %.c,%.o,$(wildcard $(WOLFHSM_INFINEON_TC3XX)/port/client/*.c))
1294+
OBJS += $(WOLFHSM_INFINEON_TC3XX)/port/client/hsm_ipc.o \
1295+
$(WOLFHSM_INFINEON_TC3XX)/port/client/io.o \
1296+
$(WOLFHSM_INFINEON_TC3XX)/port/client/tchsm_hh_host.o
12971297
endif
12981298

12991299
endif # !AURIX_TC3_HSM

hal/aurix_tc3xx.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@
8989
/* wolfHSM client context and configuration */
9090
#if defined(WOLFBOOT_ENABLE_WOLFHSM_CLIENT)
9191

92-
static int _cancelCb(uint16_t cancelSeq);
9392
static int _connectCb(void* context, whCommConnected connect);
9493

9594
/* Client configuration/contexts */
@@ -702,13 +701,6 @@ void ext_flash_unlock(void)
702701

703702
#ifdef WOLFBOOT_ENABLE_WOLFHSM_CLIENT
704703

705-
static int _cancelCb(uint16_t cancelSeq)
706-
{
707-
HSM_SHM_CORE0_CANCEL_SEQ = cancelSeq;
708-
(void)tchsmHhHost2Hsm_Notify(TCHSM_HOST2HSM_NOTIFY_CANCEL);
709-
return 0;
710-
}
711-
712704
static int _connectCb(void* context, whCommConnected connect)
713705
{
714706
int ret;
@@ -756,7 +748,6 @@ int hal_hsm_init_connect(void)
756748

757749
whClientConfig c_conf[1] = {{
758750
.comm = cc_conf,
759-
.cancelCb = _cancelCb,
760751
}};
761752

762753
rc = hsm_ipc_init();

options.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,9 @@ ifeq ($(WOLFHSM_CLIENT),1)
895895
$(WOLFBOOT_LIB_WOLFHSM)/src/wh_client_nvm.o \
896896
$(WOLFBOOT_LIB_WOLFHSM)/src/wh_client_cryptocb.o \
897897
$(WOLFBOOT_LIB_WOLFHSM)/src/wh_client_crypto.o \
898+
$(WOLFBOOT_LIB_WOLFHSM)/src/wh_client_dma.o \
898899
$(WOLFBOOT_LIB_WOLFHSM)/src/wh_crypto.o \
900+
$(WOLFBOOT_LIB_WOLFHSM)/src/wh_dma.o \
899901
$(WOLFBOOT_LIB_WOLFHSM)/src/wh_utils.o \
900902
$(WOLFBOOT_LIB_WOLFHSM)/src/wh_comm.o \
901903
$(WOLFBOOT_LIB_WOLFHSM)/src/wh_message_comm.o \

0 commit comments

Comments
 (0)