Fixes for build and testing with `--enable-infineon=9670`. Additional build tests.

pull/438/head
David Garske 2025-11-21 19:57:58 +00:00
parent 9e29f5280e
commit b042e4da67
5 changed files with 30 additions and 4 deletions

View File

@ -54,6 +54,25 @@ jobs:
wolftpm_config: --enable-swtpm --enable-smallstack
test_command: "make check && WOLFSSL_PATH=./wolfssl ./examples/run_examples.sh"
# Infineon SLB9670
- name: slb9670
wolftpm_config: --enable-infineon=slb9670
# Infineon SLB9672
- name: slb9672
wolftpm_config: --enable-infineon=slb9672
# Infineon SLB9673
- name: slb9673
wolftpm_config: --enable-infineon=slb9673 --enable-i2c
# STMicro ST33KTPM2
- name: st33ktpm2
wolftpm_config: --enable-st33
# Microchip
- name: microchip
wolftpm_config: --enable-microchip
# Nuvoton
- name: nuvoton
wolftpm_config: --enable-nuvoton
# TIS lock
- name: tislock
wolftpm_config: --enable-tislock
@ -121,7 +140,7 @@ jobs:
# Default configure (no AES CFB, no PKCS7, no crypto cb, no cert gen)
- name: default-configure
wolfssl_config: --enable-wolftpm
wolfssl_config: ""
wolfssl_cflags: "-DWOLFSSL_PUBLIC_MP"
test_command: "make check && WOLFSSL_PATH=./wolfssl WOLFCRYPT_DEFAULT=1 ./examples/run_examples.sh"
needs_install: true
@ -157,7 +176,7 @@ jobs:
WOLFSSL_CONFIG="${{ matrix.wolfssl_config || '--enable-wolftpm --enable-pkcallbacks' }}"
WOLFSSL_CFLAGS="${{ matrix.wolfssl_cflags || '' }}"
if [ -n "$WOLFSSL_CFLAGS" ]; then
CFLAGS="$WOLFSSL_CFLAGS" ./configure $WOLFSSL_CONFIG
./configure $WOLFSSL_CONFIG CFLAGS="$WOLFSSL_CFLAGS"
else
./configure $WOLFSSL_CONFIG
fi

View File

@ -1465,6 +1465,9 @@ int TPM2_Native_TestArgs(void* userCtx, int argc, char *argv[])
goto exit;
}
}
printf("Native test passed\n");
exit:
/* Close session */

View File

@ -694,7 +694,7 @@ int main(int argc, char* argv[])
(void)argc;
(void)argv;
printf("TPM Wrapper or PK//Crypto callback or TLS support not compiled in\n");
printf("TPM Wrapper or PK/Crypto callback or TLS support not compiled in\n");
printf("Build wolfssl with ./configure --enable-wolftpm\n");
#endif

View File

@ -742,7 +742,7 @@ int main(int argc, char* argv[])
(void)argc;
(void)argv;
printf("TPM Wrapper or PK//Crypto callback or TLS support not compiled in\n");
printf("TPM Wrapper or PK/Crypto callback or TLS support not compiled in\n");
printf("Build wolfssl with ./configure --enable-wolftpm\n");
#endif

View File

@ -349,6 +349,10 @@ typedef int64_t INT64;
#ifdef WOLFTPM_SLB9670
/* Max: 43MHz */
#define TPM2_SPI_MAX_HZ_INFINEON 43000000
#ifndef MAX_AES_KEY_BITS
#define MAX_AES_KEY_BITS 128
#endif
#elif !defined(WOLFTPM_AUTODETECT)
#ifdef WOLFTPM_I2C
#undef WOLFTPM_SLB9673