diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-02-03 16:49:51 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-02-04 17:02:10 +0000 |
commit | 3ff392fb585439960ee34316132aca5740dbd7c5 (patch) | |
tree | 46446d6d0cdcc9005121653e4c32a9ef5c3728c9 | |
parent | 7f670cf2d9c39597b41f1f2878c0c692ae7c52e2 (diff) | |
download | poky-3ff392fb585439960ee34316132aca5740dbd7c5.tar.gz |
perf: Enable debug/source packaging
This was disabled in 2014[1] due to an error message which as far
as I can tell, no longer occurs.
Having debug information and source files present will make debugging
reproducibility issues much easier so remove this line as it appears
no longer needed.
Fix up a few files which have buildpaths in them to avoid QA warnings
and reproducubility issues.
[1] OE-Core revision c1b5a262c0201faf2c6bf545d6acb32dfe383ba3
(From OE-Core rev: 95983108121c8b96f5659d110498bf2afc6189d9)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-kernel/perf/perf.bb | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb index 1dff39a17e..2f28d16fba 100644 --- a/meta/recipes-kernel/perf/perf.bb +++ b/meta/recipes-kernel/perf/perf.bb | |||
@@ -360,6 +360,16 @@ FILES:${PN}-python = " \ | |||
360 | " | 360 | " |
361 | FILES:${PN}-perl = "${libexecdir}/perf-core/scripts/perl" | 361 | FILES:${PN}-perl = "${libexecdir}/perf-core/scripts/perl" |
362 | 362 | ||
363 | |||
364 | INHIBIT_PACKAGE_DEBUG_SPLIT="1" | ||
365 | DEBUG_OPTIMIZATION:append = " -Wno-error=maybe-uninitialized" | 363 | DEBUG_OPTIMIZATION:append = " -Wno-error=maybe-uninitialized" |
364 | |||
365 | PACKAGESPLITFUNCS =+ "perf_fix_sources" | ||
366 | |||
367 | perf_fix_sources () { | ||
368 | for f in util/parse-events-flex.h util/parse-events-flex.c util/pmu-flex.c \ | ||
369 | util/expr-flex.h util/expr-flex.c; do | ||
370 | f=${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/$f | ||
371 | if [ -e $f ]; then | ||
372 | sed -i -e 's#${S}/##g' $f | ||
373 | fi | ||
374 | done | ||
375 | } | ||