diff options
author | Ting Liu <ting.liu@freescale.com> | 2015-10-21 17:47:08 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-12-08 13:27:26 +0000 |
commit | dc6630b44b8edc5a925e6738aabfab804c4fb1fe (patch) | |
tree | abe24d45da5d1c8a1ba861892820854606f6596a /meta/recipes-kernel | |
parent | e0b08244709d0f6e07a33c3ae275f1f89d891afc (diff) | |
download | poky-dc6630b44b8edc5a925e6738aabfab804c4fb1fe.tar.gz |
oprofile: update --with-kernel option to find perf_event.h
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.
(From OE-Core rev: 91ca81244e683c4f24752c59ec3342cd4fb1315d)
Signed-off-by: Ting Liu <ting.liu@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r-- | meta/recipes-kernel/oprofile/oprofile.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-kernel/oprofile/oprofile.inc b/meta/recipes-kernel/oprofile/oprofile.inc index 49e6b16c1c..435e4ed840 100644 --- a/meta/recipes-kernel/oprofile/oprofile.inc +++ b/meta/recipes-kernel/oprofile/oprofile.inc | |||
@@ -27,7 +27,7 @@ SRC_URI = "file://filemode-fix.patch \ | |||
27 | 27 | ||
28 | inherit autotools pkgconfig ptest | 28 | inherit autotools pkgconfig ptest |
29 | 29 | ||
30 | EXTRA_OECONF = "--with-kernel=${STAGING_KERNEL_DIR} --without-x ac_cv_prog_XSLTPROC=" | 30 | EXTRA_OECONF = "--with-kernel=${STAGING_DIR_HOST}${prefix} --without-x ac_cv_prog_XSLTPROC=" |
31 | do_configure () { | 31 | do_configure () { |
32 | cp ${WORKDIR}/acinclude.m4 ${S}/ | 32 | cp ${WORKDIR}/acinclude.m4 ${S}/ |
33 | autotools_do_configure | 33 | autotools_do_configure |