Patchwork oprofile: Partially fix separate builddir support

login
register
mail settings
Submitter Richard Purdie
Date March 2, 2014, 5:37 p.m.
Message ID <1393781857.22581.5.camel@ted>
Download mbox | patch
Permalink /patch/67811/
State Accepted
Commit c2a17dcc86b7f1b59fd1880dccbbe8f1a9678af1
Headers show

Comments

Richard Purdie - March 2, 2014, 5:37 p.m.
It doesn't make separate build completely work but its worth
merging as one step in the right direction.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---

Patch

diff --git a/meta/recipes-kernel/oprofile/oprofile.inc b/meta/recipes-kernel/oprofile/oprofile.inc
index 678d40e..080219e 100644
--- a/meta/recipes-kernel/oprofile/oprofile.inc
+++ b/meta/recipes-kernel/oprofile/oprofile.inc
@@ -30,7 +30,7 @@  inherit autotools-brokensep
 
 EXTRA_OECONF = "--with-kernel=${STAGING_KERNEL_DIR}  --without-x"
 do_configure () {
-	find . -wholename './.pc' -prune -o -type f -print | xargs sed -i 's#ROOTHOME#${ROOT_HOME}#'
+	find ${S} -wholename '${S}/.pc' -prune -o -type f -print | xargs sed -i 's#ROOTHOME#${ROOT_HOME}#'
 	cp ${WORKDIR}/acinclude.m4 ${S}/
 	autotools_do_configure
 }