]> code.ossystems Code Review - openembedded-core.git/commitdiff
oprofile: update --with-kernel option to find perf_event.h
authorTing Liu <ting.liu@freescale.com>
Wed, 21 Oct 2015 09:47:08 +0000 (17:47 +0800)
committerJoshua Lock <joshua.lock@collabora.co.uk>
Fri, 23 Oct 2015 13:40:35 +0000 (14:40 +0100)
Update --with-kernel=${STAGING_DIR_HOST}/${prefix} to find kernel
headers (linux/*.h) to fix the error:
| checking kernel supports perf_events... unknown -- perf_event.h not found
| ERROR: You requested to build oprofile with '--with-kernel=/buildarea/lyang1/test_f2/tmp/work-shared/qemux86/kernel-source',
| but headers were not accessible at the given location.
| Be sure you have run the following command from within your kernel source tree:
|      make headers_install INSTALL_HDR_PATH=<kernel-hdrs-install-dir>
| Then pass <kernel-hdrs-install-dir> to oprofile's '--with-kernel' configure option.
| configure: error: Unable to build oprofile. Exiting.

This is part of the commit b5b3085d9d6a351a1de86f95d5c8ba28dbfbddbb which
already applied in poky master branch.

Signed-off-by: Ting Liu <ting.liu@freescale.com>
meta/recipes-kernel/oprofile/oprofile.inc

index 49e6b16c1cb4b8985a814c07c7d5e615d563748c..435e4ed84076a30313c28c37f77a566960915a4c 100644 (file)
@@ -27,7 +27,7 @@ SRC_URI = "file://filemode-fix.patch \
 
 inherit autotools pkgconfig ptest
 
-EXTRA_OECONF = "--with-kernel=${STAGING_KERNEL_DIR}  --without-x ac_cv_prog_XSLTPROC="
+EXTRA_OECONF = "--with-kernel=${STAGING_DIR_HOST}${prefix}  --without-x ac_cv_prog_XSLTPROC="
 do_configure () {
        cp ${WORKDIR}/acinclude.m4 ${S}/
        autotools_do_configure