]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
package: export debugsources in PKGDESTWORK as json
authorDaniel Turull <daniel.turull@ericsson.com>
Thu, 19 Jun 2025 08:47:35 +0000 (10:47 +0200)
committerSteve Sakoman <steve@sakoman.com>
Thu, 3 Jul 2025 16:01:28 +0000 (09:01 -0700)
commitcba53212f5debf897752453364b9756a05c197de
treef70f4293910996149162e4f14309ee667482a64a
parent54d6fa7bc9f4ae6bdb98862488e8d09200d3bc14
package: export debugsources in PKGDESTWORK as json

The source information used during packaging can be use from other tasks to
have more detailed information on the files used during the compilation and
improve SPDX accuracy.

Source files used during compilation are store as compressed zstd json in
pkgdata/debugsources/$PN-debugsources.json.zstd
Format:
{ binary1: [src1, src2, ...], binary2: [src1, src2, ...] }

I checked the sstate size, and it slightly increases using core-image-full-cmdline:
without patch: 2456792 KB sstate-cache/
with patch:    2460028 KB sstate-cache/
(4236 KB or 0.17%)

(From OE-Core rev: c507dcb8a8780a42bfe68b1ebaff0909b4236e6b)
Adaptations to match spdx in scarthgap: change BP to PF

CC: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
CC: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Daniel Turull <daniel.turull@ericsson.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/conf/bitbake.conf
meta/lib/oe/package.py