[oe-commits] [openembedded-core] 11/35: perf: make sure that the tools/include/uapi/asm-generic directory exists

git at git.openembedded.org git at git.openembedded.org
Fri Jun 7 12:58:20 UTC 2019

This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch warrior
in repository openembedded-core.

commit 5d35f27f8db102f2cb63c86c163c9952352dbb1d
Author: Martin Jansa <martin.jansa at gmail.com>
AuthorDate: Wed May 15 18:40:04 2019 +0000

    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
      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
      tools: Add copy of perf_event.h to tools/include/linux/
    Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
    Signed-off-by: Armin Kuster <akuster808 at gmail.com>
 meta/recipes-kernel/perf/perf.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index 546076f..4e603f1 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -238,7 +238,7 @@ do_configure_prepend () {
     # unistd.h can be out of sync between libc-headers and the captured version in the perf source
     # so we copy it from the sysroot unistd.h to the perf unistd.h
-    cp ${STAGING_INCDIR}/asm-generic/unistd.h ${S}/tools/include/uapi/asm-generic/unistd.h
+    install -D -m0644 ${STAGING_INCDIR}/asm-generic/unistd.h ${S}/tools/include/uapi/asm-generic/unistd.h
 python do_package_prepend() {

To stop receiving notification emails like this one, please contact
the administrator of this repository.

More information about the Openembedded-commits mailing list