poky/meta/lib/oe
Daniel Turull 2366605a35 spdx: add option to include only compiled sources
When SPDX_INCLUDE_COMPILED_SOURCES is enabled, only include the
source code files that are used during compilation.

It uses debugsource information generated during do_package.

This enables an external tool to use the SPDX information to disregard
vulnerabilities that are not compiled.

As example, when used with the default config with linux-yocto, the spdx size is
reduced from 156MB to 61MB.

Tested with bitbake world on oe-core.

(From OE-Core rev: c6a2f1fca76fae4c3ea471a0c63d0b453beea968)
Adapted to existing files for create-spdx-2.2

CC: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
CC: Joshua Watt <JPEWhacker@gmail.com>
(From OE-Core rev: a2866934e58fb377a73e87576c8594988a63ad1b)

Signed-off-by: Daniel Turull <daniel.turull@ericsson.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2025-07-07 07:42:58 -07:00
..
package_manager lib/oe/package-manager: skip processing installed-pkgs with empty globs 2024-10-18 06:04:40 -07:00
__init__.py goarch: Move Go architecture mapping to a library 2023-10-19 13:26:05 +01:00
buildcfg.py bblayers/makesetup.py: Move git utility functions to oe.buildcfg module 2024-03-30 22:25:43 +00:00
buildhistory_analysis.py sstatesig/find_siginfo: unify a disjointed API 2024-01-05 11:59:08 +00:00
cachedpath.py lib: Add copyright statements to files without one 2022-08-12 12:00:43 +01:00
classextend.py gcc/go: Drop crosssdk suffix from virtual provides to improve dependency handling 2023-05-02 10:24:50 +01:00
classutils.py lib: Add copyright statements to files without one 2022-08-12 12:00:43 +01:00
copy_buildsystem.py meta/lib/oe/copy_buildsystem.py: do not derefence symlinks 2023-11-05 08:44:06 +00:00
cve_check.py cve_check: cleanup logging 2024-01-23 11:53:41 +00:00
data.py lib: Add copyright statements to files without one 2022-08-12 12:00:43 +01:00
distro_check.py lib: Add copyright statements to files without one 2022-08-12 12:00:43 +01:00
elf.py base: add support for loongarch64 2023-02-04 17:02:10 +00:00
go.py goarch: Move Go architecture mapping to a library 2023-10-19 13:26:05 +01:00
gpg_sign.py lib/oe/gpg_sign.py: Avoid race when creating .sig files in detach_sign 2023-03-31 23:30:36 +01:00
license.py lib: Add copyright statements to files without one 2022-08-12 12:00:43 +01:00
lsb.py lib: Add copyright statements to files without one 2022-08-12 12:00:43 +01:00
maketype.py lib: Add copyright statements to files without one 2022-08-12 12:00:43 +01:00
manifest.py lib: Add copyright statements to files without one 2022-08-12 12:00:43 +01:00
npm_registry.py meta: lib: oe: npm_registry: Add more safe caracters 2023-06-13 22:10:32 +01:00
overlayfs.py overlayfs: Allow not used mount points 2022-10-26 12:28:37 +01:00
package.py package: export debugsources in PKGDESTWORK as json 2025-07-07 07:42:58 -07:00
packagedata.py lib/packagedata.py: Add API to iterate over rprovides 2023-12-24 10:39:07 +00:00
packagegroup.py lib: Add copyright statements to files without one 2022-08-12 12:00:43 +01:00
patch.py patch.py: set commituser and commitemail for addNote 2025-04-16 06:41:24 -07:00
path.py lib/oe/path.py: Add relsymlink() 2023-12-23 08:46:00 +00:00
prservice.py lib/prservice: Improve lock handling robustness 2023-12-24 10:39:07 +00:00
qa.py lib/oe/qa: update guidelines link for Upstream-Status 2023-09-22 07:45:17 +01:00
recipeutils.py lib/oe/recipeutils: Avoid wrapping any SRC_URI[sha*sum] variables 2023-12-08 16:58:34 +00:00
reproducible.py reproducible: Fix race with externalsrc/devtool over lockfile 2024-01-19 12:21:22 +00:00
rootfs.py rootfs: Ensure run-postinsts is not uninstalled for read-only-rootfs-delayed-postinsts 2024-12-06 05:50:25 -08:00
rust.py rust-target-config: match riscv target names with what rust expects 2022-10-28 09:44:52 +01:00
sbom.py create-spdx/sbom: Ensure files don't overlap between machines 2023-09-22 07:45:17 +01:00
sdk.py sdk.py: error out when moving file fails 2023-06-20 23:24:26 +01:00
spdx.py spdx: add option to include only compiled sources 2025-07-07 07:42:58 -07:00
sstatesig.py do_package/sstate/sstatesig: Change timestamp clamping to hash output only 2024-12-09 06:54:14 -08:00
terminal.py lib/terminal.py: Add urxvt terminal 2023-05-25 10:29:09 +01:00
types.py lib: Add copyright statements to files without one 2022-08-12 12:00:43 +01:00
useradd.py lib: Add copyright statements to files without one 2022-08-12 12:00:43 +01:00
utils.py image.bbclass: Drop support for ImageQAFailed exceptions in image_qa 2024-10-18 06:04:41 -07:00