]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
package: export debugsources in PKGDESTWORK as json
authorDaniel Turull <daniel.turull@ericsson.com>
Tue, 10 Jun 2025 15:24:41 +0000 (17:24 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 12 Jun 2025 10:03:40 +0000 (11:03 +0100)
commitc507dcb8a8780a42bfe68b1ebaff0909b4236e6b
tree41c57d1c024cd0fb4d1ccc0290a5bfd5f3c23501
parent602d1cab0f8e11925244a27310086b195de70464
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%)

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