]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
perf: Enable debug/source packaging
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 3 Feb 2023 16:49:51 +0000 (16:49 +0000)
committerSteve Sakoman <steve@sakoman.com>
Sat, 11 Feb 2023 14:03:33 +0000 (04:03 -1000)
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

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 95983108121c8b96f5659d110498bf2afc6189d9)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-kernel/perf/perf.bb

index c1b0bd22d820faff7ffb57259ea7e877eca4853b..4088c676620a18af072c6da385a30bd1c7e6f975 100644 (file)
@@ -356,6 +356,16 @@ FILES:${PN}-python = " \
                        "
 FILES:${PN}-perl = "${libexecdir}/perf-core/scripts/perl"
 
-
-INHIBIT_PACKAGE_DEBUG_SPLIT="1"
 DEBUG_OPTIMIZATION:append = " -Wno-error=maybe-uninitialized"
+
+PACKAGESPLITFUNCS =+ "perf_fix_sources"
+
+perf_fix_sources () {
+       for f in util/parse-events-flex.h util/parse-events-flex.c util/pmu-flex.c \
+                       util/expr-flex.h util/expr-flex.c; do
+               f=${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/$f
+               if [ -e $f ]; then
+                       sed -i -e 's#${S}/##g' $f
+               fi
+       done
+}