Skip to content

sbom: move to wolfssl-compliance-tooling and pin its current master - #964

Merged
danielinux merged 4 commits into
wolfSSL:masterfrom
sameehj:sbom/rename-compliance-tooling
Nov 19, 2026
Merged

danielinux merged 4 commits into
wolfSSL:masterfrom
sameehj:sbom/rename-compliance-tooling

Conversation

@sameehj

@sameehj sameehj commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

wolfGlass is now wolfssl-compliance-tooling. Its master removed the old macro, function, and script names, so a re-sync alone breaks the build.

  • Re-vendor tools/sbom/ at 8a96c64 and pin it in .wolfssl-compliance-tooling-rev.
  • Call wolfssl_compliance_tooling_sbom_rule in the Makefile and wolfssl_compliance_tooling_add_sbom in cmake/sbom.cmake.
  • Point the drift check at wolfSSL/wolfssl-compliance-tooling and rename the job to compliance_tooling_drift.
  • Use the new name in the docs and comments.

The CMake helper now also adds install-sbom and uninstall-sbom targets.

@sameehj
sameehj requested review from danielinux and a balanced review from Copilot October 29, 2026 19:21
@sameehj
sameehj requested a review from Frauschi October 29, 2026 19:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The changes break existing Zephyr CLI callers, require Python for unrelated CMake configurations, and fail to capture user settings in compiler-cached Zephyr builds.

3 open issues
What changed in this PR

Migrates wolfBoot’s vendored SBOM tooling from wolfGlass to wolfssl-compliance-tooling, pins revision 8a96c64, and updates build integration and drift checking.

Changes:

  • Renames Make/CMake entry points, upstream references, and revision tracking.
  • Imports updated generation, validation, and source-extraction tooling.
  • Adds CMake SBOM install/uninstall targets and build-time reproducible timestamps.
File Description
tools/​scripts/​wolfboot-sbom.sh Updates the wrapper comment.
tools/​scripts/​ide-sbom/​zephyr_sbom.py Updates the wrapper docstring.
tools/​scripts/​ide-sbom/​validate_sbom.py Updates the wrapper docstring.
tools/​scripts/​ide-sbom/​iar_sbom.py Updates the wrapper docstring.
tools/​scripts/​ide-sbom/​compdb_sbom.py Updates the wrapper docstring.
tools/​sbom/​validate_sbom.py Improves input validation and read errors.
tools/​sbom/​sbom.am Extends artifact, dependency, and metadata options.
tools/​sbom/​sbom-driver.py Updates input contracts and generator options.
tools/​sbom/​sbom-driver Updates the shell-wrapper comment.
tools/​sbom/​README.md Documents renamed tooling and expanded interfaces.
tools/​sbom/​gen-sbom Adds atomic output writes and configurable copyright metadata.
tools/​sbom/​frontends/​zephyr_sbom.py Switches to compilation-database source extraction.
tools/​sbom/​frontends/​included_sources.py Adds scanning for included source files.
tools/​sbom/​frontends/​iar_sbom.py Honors configuration-specific source exclusions.
tools/​sbom/​frontends/​compdb_sbom.py Adds source scanning, filtering, and macro-conflict checks.
tools/​sbom/​build/​uninstall-sbom.cmake Removes installed SBOM artifacts.
tools/​sbom/​build/​sbom.mk Renames the Make macro and expands supported options.
tools/​sbom/​build/​sbom.cmake Updates the helper and adds installation targets.
tools/​sbom/​build/​sbom-with-sde.cmake Applies reproducible timestamps at build time.
tools/​sbom/​build/​sbom-paths.cmake Resolves SBOM paths for installation and removal.
tools/​sbom/​build/​install-sbom.cmake Installs SBOM artifacts with staging support.
tools/​sbom/​.wolfssl-compliance-tooling-rev Pins the new upstream revision.
tools/​sbom/​.wolfglass-rev Removes the old revision pin.
README.md Updates the tooling name in release notes.
Makefile Calls the renamed HAL SBOM macro.
docs/​SBOM.md Updates tooling and drift-check references.
cmake/​sbom.cmake Calls the renamed CMake helper.
.gitignore Updates the vendored-directory comment.
.github/​workflows/​test-sbom.yml Retargets drift checking to the renamed repository.

Review effort: Balanced

Comment thread tools/sbom/build/sbom.cmake Resolved
Comment thread tools/sbom/frontends/zephyr_sbom.py Resolved
Comment thread tools/sbom/frontends/zephyr_sbom.py Resolved

@Frauschi Frauschi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot already covers the Zephyr --cmakelists break and the new python3 requirement at configure time, so I left those out. A few more below. Apart from the CI one they're all in the vendored tools/sbom/ files, so the fixes probably belong upstream in wolfssl-compliance-tooling, followed by a re-sync here.

Comment thread cmake/sbom.cmake Resolved
Comment thread tools/sbom/sbom-driver.py Resolved
Comment thread tools/sbom/build/sbom.cmake Resolved
Comment thread tools/sbom/build/install-sbom.cmake Resolved
Comment thread tools/sbom/sbom-driver.py Resolved
wolfGlass is now wolfssl-compliance-tooling. Its master removed the old
macro, function, and script names, so a re-sync alone breaks the build.

- Re-vendor tools/sbom/ at 8a96c64 and pin it in
  .wolfssl-compliance-tooling-rev.
- Call wolfssl_compliance_tooling_sbom_rule in the Makefile and
  wolfssl_compliance_tooling_add_sbom in cmake/sbom.cmake.
- Point the drift check at wolfSSL/wolfssl-compliance-tooling and rename
  the job to compliance_tooling_drift.
- Use the new name in the docs and comments.

The CMake helper now also adds install-sbom and uninstall-sbom targets.
…es from west

- Re-pin with wolfssl-compliance-tooling-sync. The pin brings the python3
  fallback (configure no longer needs python3), the TARGETS/LIB checks,
  the launcher strip in the Zephyr front end and the weak-entropy marker.
- The Zephyr front end reads the compile_commands.json of a west build.
  The ide-sbom wrapper now sets --root, not the removed --cmakelists, and
  docs/SBOM.md shows the west command.
@sameehj
sameehj force-pushed the sbom/rename-compliance-tooling branch from 35863ea to e854c68 Compare November 19, 2026 08:56
…e database

The CMake step now runs install-sbom under DESTDIR and checks that both
documents arrive, then runs uninstall-sbom and checks that they are gone.

The Zephyr step no longer passes the removed --cmakelists option. A
small CMake project defines the zephyr_library macros, configures
zephyr/CMakeLists.txt and hands that compile_commands.json to the
front end. The SBOM must name the six module sources.
@Frauschi

Copy link
Copy Markdown
Member

#58 is merged as 2a2e04a. A local re-sync changes only the 4 files from #58 and passes. Re-pin and I'll approve.

Brings toolkit wolfSSL#58: one timestamp for Make and CMake when --root is
passed, one gen-sbom --help per run, and the Windows DESTDIR path in
install-sbom and uninstall-sbom.

@Frauschi Frauschi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Frauschi Frauschi assigned danielinux and unassigned sameehj Nov 19, 2026
@danielinux
danielinux merged commit abbcd4d into wolfSSL:master Nov 19, 2026
556 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.

4 participants