]> code.ossystems Code Review - openembedded-core.git/commitdiff
oprofile: set correct kernel path
authorBogdan Marinescu <bogdan.a.marinescu@intel.com>
Mon, 14 Jan 2013 13:29:09 +0000 (15:29 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 20 Jan 2013 13:13:54 +0000 (13:13 +0000)
oprofile's "configure" was always looking at the configuration of the host
kernel, not the target kernel. This patch instructs oprofile to use the
target kernel to configure itself.

Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/oprofile/oprofile.inc

index 9bbd2efbc85f253a12a44a8b40d78fe24aa5abc1..d6d20ae32ad4e345dc94a038e8472dfa939d0d73 100644 (file)
@@ -19,7 +19,7 @@ FILES_${PN} = "${bindir} ${libdir}/${BPN}/lib*${SOLIBS} ${datadir}/${BPN}"
 FILES_${PN}-dev += "${libdir}/${BPN}/lib*${SOLIBSDEV} ${libdir}/${BPN}/lib*.la"
 FILES_${PN}-staticdev += "${libdir}/${BPN}/lib*.a"
 
-INC_PR = "r0"
+INC_PR = "r1"
 
 SRC_URI = "file://opstart.patch \
            file://oprofile-no-query-modules.patch \
@@ -28,7 +28,7 @@ SRC_URI = "file://opstart.patch \
 
 inherit autotools
 
-EXTRA_OECONF = "--with-kernel-support --without-x"
+EXTRA_OECONF = "--with-kernel=${STAGING_KERNEL_DIR}  --without-x"
 do_configure () {
        find . -type f | xargs sed -i 's#ROOTHOME#${ROOT_HOME}#'
        cp ${WORKDIR}/acinclude.m4 ${S}/