File tree Expand file tree Collapse file tree 4 files changed +11
-15
lines changed Expand file tree Collapse file tree 4 files changed +11
-15
lines changed Original file line number Diff line number Diff 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 ) /tchsm-server/cfg \
1216- -I$(WOLFHSM_INFINEON_TC3XX ) /port/server
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
Original file line number Diff line number Diff line change 8989/* wolfHSM client context and configuration */
9090#if defined(WOLFBOOT_ENABLE_WOLFHSM_CLIENT )
9191
92- static int _cancelCb (uint16_t cancelSeq );
9392static 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-
712704static 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 ();
Original file line number Diff line number Diff 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 \
Original file line number Diff line number Diff line change @@ -671,7 +671,9 @@ static int RAMFUNCTION wolfBoot_update(int fallback_allowed)
671671 uint16_t update_type ;
672672 uint32_t fw_size ;
673673 uint32_t size ;
674+ #if defined(DELTA_UPDATES )
674675 int inverse = 0 ;
676+ #endif
675677 int fallback_image = 0 ;
676678#if defined(DISABLE_BACKUP ) && defined(EXT_ENCRYPTED )
677679 uint8_t key [ENCRYPT_KEY_SIZE ];
@@ -713,7 +715,7 @@ static int RAMFUNCTION wolfBoot_update(int fallback_allowed)
713715 wolfBoot_open_image (& boot , PART_BOOT );
714716 wolfBoot_open_image (& swap , PART_SWAP );
715717
716- #ifdef EXT_ENCRYPTED
718+ #if defined( EXT_ENCRYPTED ) && defined( DELTA_UPDATES )
717719 wolfBoot_printf ("Update partition fallback image: %d\n" , fallback_image );
718720 if (fallback_image )
719721 inverse = 1 ;
@@ -783,10 +785,11 @@ static int RAMFUNCTION wolfBoot_update(int fallback_allowed)
783785 }
784786#endif
785787 }
788+
789+ #ifdef DELTA_UPDATES
786790 if (cur_ver > upd_ver )
787791 inverse = 1 ;
788792
789- #ifdef DELTA_UPDATES
790793 if ((update_type & 0x00F0 ) == HDR_IMG_TYPE_DIFF ) {
791794 /* if magic isn't set stateRet will be -1 but that means we're on a
792795 * fresh partition and aren't resuming */
You can’t perform that action at this time.
0 commit comments