Skip to content

Commit a6f6c21

Browse files
committed
Do not use TPM AUTODETECT feature if not needed
1 parent 70955c0 commit a6f6c21

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

options.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,6 @@ ifeq ($(WOLFTPM),1)
900900
CFLAGS+=-I$(WOLFBOOT_LIB_WOLFTPM)
901901
CFLAGS+=-D"WOLFBOOT_TPM"
902902
CFLAGS+=-D"WOLFTPM_SMALL_STACK"
903-
CFLAGS+=-D"WOLFTPM_AUTODETECT"
904903
ifneq ($(SPI_FLASH),1)
905904
# don't use spi if we're using simulator
906905
ifeq ($(TARGET),sim)
@@ -916,6 +915,7 @@ ifeq ($(WOLFTPM),1)
916915
OBJS+=$(WOLFBOOT_LIB_WOLFTPM)/hal/tpm_io_mmio.o
917916
# By default, on other architectures, provide SPI driver
918917
else
918+
CFLAGS+=-D"WOLFTPM_AUTODETECT"
919919
WOLFCRYPT_OBJS+=hal/spi/spi_drv_$(SPI_TARGET).o
920920
endif
921921
endif

0 commit comments

Comments
 (0)