aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
authorLuis Augenstein <luis.augenstein@tngtech.com>2026-05-18 08:20:55 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-05-22 13:14:41 +0200
commita68a29a1cc3ae6c129acdf945964dea16c8a49dc (patch)
treef42f59c81770b158ef2d7a728aea47337384cb2f /Makefile
parent06f4e57165caf3012876b211cb687ba802188aff (diff)
downloadlinux-next-history-a68a29a1cc3ae6c129acdf945964dea16c8a49dc.tar.gz
scripts/sbom: add JSON-LD serialization
Add infrastructure to serialize an SPDX graph as a JSON-LD document. NamespaceMaps in the SPDX document are converted to custom prefixes in the @context field of the JSON-LD output. The SBOM tool uses NamespaceMaps solely to shorten SPDX IDs, avoiding repetition of full namespace URIs by using short prefixes. Assisted-by: Cursor:claude-sonnet-4-5 Assisted-by: OpenCode:GLM-4-7 Co-developed-by: Maximilian Huber <maximilian.huber@tngtech.com> Signed-off-by: Maximilian Huber <maximilian.huber@tngtech.com> Signed-off-by: Luis Augenstein <luis.augenstein@tngtech.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4c6133af55496..2443d4c824548 100644
--- a/Makefile
+++ b/Makefile
@@ -2212,7 +2212,8 @@ quiet_cmd_sbom = GEN $(sbom_targets)
--src-tree $(abspath $(srctree)) \
--obj-tree $(abspath $(objtree)) \
--roots-file "$(tmp-target)" \
- --output-directory $(abspath $(objtree));
+ --output-directory $(abspath $(objtree)) \
+ --generate-spdx;
PHONY += sbom
sbom: $(notdir $(KBUILD_IMAGE)) include/generated/autoconf.h $(if $(CONFIG_MODULES),modules modules.order)
$(call cmd,sbom)