Skip to contentSkip to conversation

oprofile: Partially fix separate builddir support

PATCH New Richard Purdie 1 participant 1 message Mar 2, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 oprofile: Partially fix separate builddir support

It doesn't make separate build completely work but its worth merging as one step in the right direction.

---

meta/recipes-kernel/oprofile/oprofile.inc +1 -1
index 678d40e..080219e 100644
@@ -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
 }