summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-02-03 16:49:51 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-02-15 21:47:00 +0000
commit4ad361341c17cc5df20b6ec36975f901d19f5f67 (patch)
tree41cb0f8ba89e8aa87fbeb1d840315d11e5232136
parent39d2f28d278f44bd0f668791ca5b7eb4b94184bc (diff)
downloadpoky-4ad361341c17cc5df20b6ec36975f901d19f5f67.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: c1f148fa51c541bd806376f5eec93fd348e87583) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 95983108121c8b96f5659d110498bf2afc6189d9) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-kernel/perf/perf.bb14
1 files changed, 12 insertions, 2 deletions
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index c1b0bd22d8..4088c67662 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -356,6 +356,16 @@ FILES:${PN}-python = " \
356 " 356 "
357FILES:${PN}-perl = "${libexecdir}/perf-core/scripts/perl" 357FILES:${PN}-perl = "${libexecdir}/perf-core/scripts/perl"
358 358
359
360INHIBIT_PACKAGE_DEBUG_SPLIT="1"
361DEBUG_OPTIMIZATION:append = " -Wno-error=maybe-uninitialized" 359DEBUG_OPTIMIZATION:append = " -Wno-error=maybe-uninitialized"
360
361PACKAGESPLITFUNCS =+ "perf_fix_sources"
362
363perf_fix_sources () {
364 for f in util/parse-events-flex.h util/parse-events-flex.c util/pmu-flex.c \
365 util/expr-flex.h util/expr-flex.c; do
366 f=${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/$f
367 if [ -e $f ]; then
368 sed -i -e 's#${S}/##g' $f
369 fi
370 done
371}