Skip to content

Conversation

@dgarske
Copy link
Contributor

@dgarske dgarske commented Nov 20, 2025

This PR adds comprehensive CMake support for selecting TPM modules, improves build system parity between CMake and autotools, enhances CI/CD testing infrastructure, and includes several bug fixes and compatibility improvements.

Key Features

1. CMake TPM Module Selection Support

  • Added WOLFTPM_MODULE CMake option to select specific TPM modules (auto, microchip/attpm20/mchp, st33, nuvoton/npct75x, slb9670, slb9672, slb9673)
  • Supports automatic detection or explicit module selection
  • Synchronizes CMake functionality with existing autotools configure options

2. CMake Configuration Improvements

  • Completed CMake options to match configure.ac functionality
  • Improved CMake interface and test scripts
  • Better integration with build systems

3. SWTPM Port Configuration

  • Added --with-swtpm-port configure option to specify custom SWTPM socket port (default: 2321)
  • Updated examples and test infrastructure to support custom ports
  • Properly handles port configuration in distcheck

4. CI/CD Enhancements

  • Split make tests into matrix for improved parallelization and reduced test time
  • Added additional build tests for various configurations
  • Enhanced test coverage for Infineon 9670 builds
  • Improved workflow organization and efficiency

Bug Fixes

  • Fixed uninitialized variable: Resolved potential use of uninitialized rc in TPM2_GetNonceNoLock
  • Build compatibility: Fixed build issues with old wolfSSL v4.7.0
  • Infineon 9670 support: Fixed build and testing issues with --enable-infineon=9670
  • Old wolfSSL test: Fixed compatibility issues with older wolfSSL versions

ZD 20841

@dgarske dgarske self-assigned this Nov 20, 2025
@dgarske dgarske force-pushed the cmake_tpm_modules branch 2 times, most recently from 3ec1dab to 938b505 Compare November 20, 2025 21:22
@dgarske dgarske force-pushed the cmake_tpm_modules branch 2 times, most recently from 9c62d85 to e01559d Compare November 20, 2025 21:46
@dgarske dgarske assigned wolfSSL-Bot and lealem47 and unassigned dgarske Nov 21, 2025
@dgarske dgarske requested a review from lealem47 November 21, 2025 22:09
lealem47
lealem47 previously approved these changes Nov 21, 2025
@lealem47 lealem47 merged commit 6d5df60 into wolfSSL:master Nov 21, 2025
53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants