Skip to content

Commit 0d41724

Browse files
committed
Fix for STM32H5 without OTP keystore FLASH_OTP_KEYSTORE=0.
1 parent 4e6e81c commit 0d41724

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

test-app/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,11 @@ ifeq ($(TARGET),stm32h5)
168168
LDFLAGS+=-Wl,-gc-sections -Wl,-Map=image.map
169169
CFLAGS+=-I..
170170
APP_OBJS+=../hal/uart/uart_drv_$(UART_TARGET).o
171-
APP_OBJS+=../src/flash_otp_keystore.o
171+
ifeq ($(FLASH_OTP_KEYSTORE),1)
172+
APP_OBJS+=../src/flash_otp_keystore.o
173+
else
174+
APP_OBJS+=../src/keystore.o
175+
endif
172176
APP_OBJS+=../lib/wolfssl/wolfcrypt/benchmark/benchmark.o
173177
APP_OBJS+=../lib/wolfssl/wolfcrypt/test/test.o
174178
endif

0 commit comments

Comments
 (0)