]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
perf: drop PE, PR from /usr/src/debug paths
authorMartin Jansa <martin.jansa@gmail.com>
Thu, 16 Nov 2023 22:48:31 +0000 (23:48 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 20 Nov 2023 15:30:46 +0000 (15:30 +0000)
Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/recipes-kernel/perf/perf.bb

index a90acd55ef125d655b4f523c6c0278846a07a8eb..32882afdf4ee5fbdcded823a74d14b2f152d75fc 100644 (file)
@@ -98,7 +98,7 @@ EXTRA_OEMAKE = '\
     AR="${AR}" \
     LD="${LD}" \
     EXTRA_CFLAGS="-ldw -I${S}" \
-    YFLAGS='-y --file-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}' \
+    YFLAGS='-y --file-prefix-map=${WORKDIR}=${TARGET_DBGSRC_DIR}' \
     EXTRA_LDFLAGS="${PERF_EXTRA_LDFLAGS}" \
     perfexecdir=${libexecdir} \
     NO_GTK2=1 \
@@ -405,7 +405,7 @@ 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/pmu-flex.h util/expr-flex.h util/expr-flex.c; do
-               f=${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/$f
+               f=${PKGD}${TARGET_DBGSRC_DIR}/$f
                if [ -e $f ]; then
                        sed -i -e 's#${S}/##g' $f
                fi