summaryrefslogtreecommitdiff
path: root/meta/recipes-kernel/oprofile/oprofile.inc
diff options
context:
space:
mode:
authorChong Lu <Chong.Lu@windriver.com>2014-06-10 09:35:12 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-06-13 12:31:23 +0100
commit4fa57b42aa7ec3f77606ab3d3b5814f638c859d5 (patch)
tree7f37d6c0e53a6b4460c417d791cebe3ddb013598 /meta/recipes-kernel/oprofile/oprofile.inc
parent6d1c0cde05dbab5ca84b1bbd8abeecf8df49e37b (diff)
downloadopenembedded-core-4fa57b42aa7ec3f77606ab3d3b5814f638c859d5.tar.gz
openembedded-core-4fa57b42aa7ec3f77606ab3d3b5814f638c859d5.tar.bz2
openembedded-core-4fa57b42aa7ec3f77606ab3d3b5814f638c859d5.zip
oprofile: Determine the root home directory dynamically
This commit detects the root home directory dynamically with changes to the opcontrol script and the oprofile gui app source. The commit replaces an earlier fix that detected and adjusted a 'non-standard' root home directory at build time. The advantage of this patch is that the oprofile tools are adjusted to the current run-time path to ~root, not the build time path. Signed-off-by: Dave Lerner <dave.lerner@windriver.com> Signed-off-by: Chong Lu <Chong.Lu@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/oprofile/oprofile.inc')
-rw-r--r--meta/recipes-kernel/oprofile/oprofile.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/meta/recipes-kernel/oprofile/oprofile.inc b/meta/recipes-kernel/oprofile/oprofile.inc
index aaba48e8a0..76d0b6cbe5 100644
--- a/meta/recipes-kernel/oprofile/oprofile.inc
+++ b/meta/recipes-kernel/oprofile/oprofile.inc
@@ -19,16 +19,15 @@ FILES_${PN}-dev += "${libdir}/${BPN}/lib*${SOLIBSDEV} ${libdir}/${BPN}/lib*.la"
FILES_${PN}-staticdev += "${libdir}/${BPN}/lib*.a"
SRC_URI = "file://opstart.patch \
- file://oprofile-root.patch \
file://acinclude.m4 \
file://oprofile-cross-compile-tests.patch \
- file://run-ptest"
+ file://run-ptest \
+ file://root-home-dir.patch"
inherit autotools-brokensep pkgconfig ptest
EXTRA_OECONF = "--with-kernel=${STAGING_KERNEL_DIR} --without-x"
do_configure () {
- 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
}