Skip to content

Commit 8cdb8e9

Browse files
committed
unit-tests: link common compare helper
Add src/string.c to TPM unit targets that compile tpm.c inline so wolfBoot_constant_compare resolves after its move out of TPM-only code. F/CI
1 parent 546d4f4 commit 8cdb8e9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/unit-tests/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,13 @@ unit-spi-flash: ../../include/target.h unit-spi-flash.c
148148
unit-qspi-flash: ../../include/target.h unit-qspi-flash.c
149149
gcc -o $@ $^ $(CFLAGS) $(LDFLAGS)
150150

151-
unit-tpm-rsa-exp: ../../include/target.h unit-tpm-rsa-exp.c
151+
unit-tpm-rsa-exp: ../../include/target.h unit-tpm-rsa-exp.c ../../src/string.c
152152
gcc -o $@ $^ $(CFLAGS) -I$(WOLFBOOT_LIB_WOLFTPM) -DWOLFBOOT_TPM \
153153
-DWOLFTPM_USER_SETTINGS -DWOLFBOOT_TPM_VERIFY -DWOLFBOOT_SIGN_RSA2048 \
154154
-DWOLFBOOT_HASH_SHA256 \
155155
-ffunction-sections -fdata-sections $(LDFLAGS) -Wl,--gc-sections
156156

157-
unit-tpm-check-rot-auth: ../../include/target.h unit-tpm-check-rot-auth.c
157+
unit-tpm-check-rot-auth: ../../include/target.h unit-tpm-check-rot-auth.c ../../src/string.c
158158
gcc -o $@ $^ $(CFLAGS) -I$(WOLFBOOT_LIB_WOLFTPM) -DWOLFBOOT_TPM \
159159
-DWOLFTPM_USER_SETTINGS -DWOLFBOOT_TPM_VERIFY -DWOLFBOOT_SIGN_RSA2048 \
160160
-DWOLFBOOT_HASH_SHA256 \

0 commit comments

Comments
 (0)