Re: [PATCH v6 00/15] add SPDX SBOM generation script

From: Bird, Tim

Date: Wed May 13 2026 - 14:32:45 EST


Hey KernelSBom people,

I got the following error message when using KernelSBom (both with the v5 release and the recent v6 release)

I was doing a an arm64 defconfig build. I can work around the problem using your handy
"--do-not-fail-on-unknown-build-command" option to the sbom generator, but thought I
should report the issue.

==== error message ====
...
GEN sbom-source.spdx.json sbom-build.spdx.json sbom-output.spdx.json
[ERROR] File "/home/tbird/work/torvalds/linux/scripts/sbom/sbom/cmd_graph/savedcmd_parser/savedcmd_parser.py", line 33, in log_error_or_warning
Skipped parsing command /bin/sh -e /home/tbird/work/torvalds/linux/arch/arm64/tools/gen-kernel-hwcaps.sh /home/tbird/work/torvalds/linux/arch/arm64/include/uapi/asm/hwcap.h > arch/arm64/include/generated/asm/kernel-hwcap.h because no matching parser was found
=====================

arch/arm64/tools/gen-kernel-hwcaps.sh is a simple scripts that does some simple
transformations (using sed) on lines from the input file. As you can see, the build command takes
arch/arm64/include/uapi/asm/hwcap.h and transforms it into $KBUILD_OUTPUT/arch/arm64/include/generated/asm/kernel-hwcap.h

I think this should be easy to add to your command line parser. Just wanted to bring it to your attention.

Great tool, by the way. I'm talking about it at OSSNA next week, and was just doing some testing on different
platforms.

Regards,
-- Tim