Skip to content

macros: add configurable SBOM build directory#328

Open
rpkelly wants to merge 2 commits intobottlerocket-os:developfrom
rpkelly:sbom-build-dir
Open

macros: add configurable SBOM build directory#328
rpkelly wants to merge 2 commits intobottlerocket-os:developfrom
rpkelly:sbom-build-dir

Conversation

@rpkelly
Copy link
Contributor

@rpkelly rpkelly commented Feb 3, 2026

Description of changes:
Rust packages i n the core and kernel kit redefine the generate sbom macro purely so that that they can change the build_dir used by the macro. By exposing the directory as a different, redefinable macro we simplify what these sorts of packages need to change.

Removing the buildsubdir broadens the scope of packages that will generate an SBOM package. While many of these will be blank SBOMs, some will not so, we'll opt for the widest possible net.

Testing done:
Built an SDK and then a core kit

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

Signed-off-by: Richard Kelly <rpkelly@amazon.com>
…tion

Signed-off-by: Richard Kelly <rpkelly@amazon.com>
@bcressey
Copy link
Contributor

Removing the buildsubdir broadens the scope of packages that will generate an SBOM package. While many of these will be blank SBOMs, some will not so, we'll opt for the widest possible net.

Can you say more about this? I don't really follow the downstream implications.

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.

2 participants