summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/perf
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2019-05-15 18:40:04 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-06-07 13:57:48 +0100
commit6b6b5cb2ab2104320c2684893d594f0dadffbbe2 (patch)
tree27988927ab4743b780406ec8c1d4211801f676ad /meta/recipes-kernel/perf
parenta6596bff75d8301ef9097793cd3761c50e482aac (diff)
downloadpoky-6b6b5cb2ab2104320c2684893d594f0dadffbbe2.tar.gz
perf: make sure that the tools/include/uapi/asm-generic directory exists
* before trying to copy unistd.h into it * older kernels don't have uapi in tools/include and do_configure fails with: DEBUG: Executing shell function do_configure cp: cannot create regular file '.../perf/1.0-r9/perf-1.0/tools/include/uapi/asm-generic/unistd.h': No such file or directory WARNING: exit code 1 from a shell command. * tools/include/uapi was added in kernel 4.8 with https://github.com/torvalds/linux/commit/c4b6014e8bb0c8d47fe5c71ebc604f31091e5d3f tools: Add copy of perf_event.h to tools/include/linux/ (From OE-Core rev: 5d35f27f8db102f2cb63c86c163c9952352dbb1d) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/perf')
-rw-r--r--meta/recipes-kernel/perf/perf.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index 546076f84b..4e603f1a32 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -238,7 +238,7 @@ do_configure_prepend () {
238 238
239 # unistd.h can be out of sync between libc-headers and the captured version in the perf source 239 # unistd.h can be out of sync between libc-headers and the captured version in the perf source
240 # so we copy it from the sysroot unistd.h to the perf unistd.h 240 # so we copy it from the sysroot unistd.h to the perf unistd.h
241 cp ${STAGING_INCDIR}/asm-generic/unistd.h ${S}/tools/include/uapi/asm-generic/unistd.h 241 install -D -m0644 ${STAGING_INCDIR}/asm-generic/unistd.h ${S}/tools/include/uapi/asm-generic/unistd.h
242} 242}
243 243
244python do_package_prepend() { 244python do_package_prepend() {