Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] perf: do builds in a clean build tree
@ 2025-09-25 15:26 Ross Burton
  2025-09-25 15:30 ` [OE-core] " Bruce Ashfield
  2025-09-29  8:14 ` Mathieu Dubois-Briand
  0 siblings, 2 replies; 4+ messages in thread
From: Ross Burton @ 2025-09-25 15:26 UTC (permalink / raw)
  To: openembedded-core

Set B to WORKDIR/build and clean that on configure so we ensure that the
build tree is clean.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta/recipes-kernel/perf/perf.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index 3b9e52fdb84..00b869e8b18 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -69,6 +69,8 @@ include ${@bb.utils.contains('PACKAGECONFIG', 'perl', 'perf-perl.inc', '', d)}
 inherit kernelsrc
 
 S = "${UNPACKDIR}/${BP}"
+B = "${WORKDIR}/build"
+do_configure[cleandirs] += "${B}"
 
 # The LDFLAGS is required or some old kernels fails due missing
 # symbols and this is preferred than requiring patches to every old
@@ -424,7 +426,7 @@ perf_fix_sources () {
 			util/pmu-flex.h util/expr-flex.h util/expr-flex.c; do
 		f=${PKGD}${TARGET_DBGSRC_DIR}/$f
 		if [ -e $f ]; then
-			sed -i -e 's#${S}/##g' $f
+			sed -i -e 's#${B}/##g' $f
 		fi
 	done
 }
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-09-29 18:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-25 15:26 [PATCH] perf: do builds in a clean build tree Ross Burton
2025-09-25 15:30 ` [OE-core] " Bruce Ashfield
2025-09-29  8:14 ` Mathieu Dubois-Briand
2025-09-29 18:39   ` Khem Raj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox