From: Kamel Bouhara <kamel.bouhara@bootlin.com>
To: openembedded-core@lists.openembedded.org
Cc: JPEWhacker@gmail.com, thomas.petazzoni@bootlin.com,
mathieu.dubois-briand@bootlin.com, antonin.godard@bootlin.com,
Kamel Bouhara <kamel.bouhara@bootlin.com>
Subject: [PATCH 0/1] spdx3: Export kernel configuration as build parameters in SPDX output
Date: Wed, 16 Jul 2025 11:05:16 +0200 [thread overview]
Message-ID: <20250716090517.481832-1-kamel.bouhara@bootlin.com> (raw)
Enhances the SPDX 3.0 support in OpenEmbedded by ensuring that the kernel's build-time
configuration is captured and embedded in the generated SPDX metadata.
Recipes that provide "virtual/kernel" now have their '${B}/.config' file parsed, and each 'CONFIG_*'
entry is added to the SPDX document as a 'build_parameter'.
Including the kernel configuration in SPDX output is particularly relevant for compliance, security
auditing, and long-term maintenance, as it provides a machine-readable view of the exact kernel
features enabled or disabled at build time.
Potential future enhancements:
- Support parsing `CONFIG_FOO is not set` entries to document explicitly
disabled kernel options for greater completeness.
- Optionally allow filtering or scoping of exported options (e.g., via
'SPDX_KERNEL_CONFIG_FILTER') to limit output size or focus on security-relevant flags e.g.:
# Only include a specific list of kernel config options in SPDX output
SPDX_KERNEL_CONFIG_FILTER = "CONFIG_HARDENED_USERCOPY CONFIG_STACKPROTECTOR_STRONG CONFIG_SECURITY_SELINUX CONFIG_MODULE_SIG"
Feedback is welcome.
Greetings,
Kamel
Kamel Bouhara (1):
spdx3: Add optional kernel configuration export to build_parameter for
virtual/kernel
meta/classes/create-spdx-3.0.bbclass | 6 ++++++
meta/lib/oe/spdx30_tasks.py | 32 ++++++++++++++++++++++++++++
2 files changed, 38 insertions(+)
--
2.43.0
next reply other threads:[~2025-07-16 9:05 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-16 9:05 Kamel Bouhara [this message]
2025-07-16 9:05 ` [PATCH 1/1] spdx3: Add optional kernel configuration export to build_parameter for virtual/kernel Kamel Bouhara
2025-07-16 9:28 ` [OE-core] " Mikko Rapeli
2025-07-16 11:34 ` Kamel Bouhara
2025-07-16 13:30 ` Bruce Ashfield
2025-07-16 14:30 ` Kamel Bouhara
2025-07-16 14:51 ` Bruce Ashfield
2025-07-17 7:07 ` Kamel Bouhara
2025-07-18 22:10 ` Joshua Watt
2025-07-21 14:53 ` Kamel Bouhara
2025-07-21 16:45 ` Joshua Watt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250716090517.481832-1-kamel.bouhara@bootlin.com \
--to=kamel.bouhara@bootlin.com \
--cc=JPEWhacker@gmail.com \
--cc=antonin.godard@bootlin.com \
--cc=mathieu.dubois-briand@bootlin.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.