<div dir="ltr"><div dir="ltr">I'm sorry, will need v3.<div><br></div><div>install: target 'lib32-perf/1.0-r9/perf-1.0/tools/include/uapi/asm-generic/unistd.h' is not a directory<br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, May 11, 2019 at 6:36 PM Martin Jansa <<a href="mailto:martin.jansa@gmail.com">martin.jansa@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">* before trying to copy unistd.h into it<br>
<br>
* older kernels don't have uapi in tools/include and do_configure fails<br>
with:<br>
DEBUG: Executing shell function do_configure<br>
cp: cannot create regular file '.../perf/1.0-r9/perf-1.0/tools/include/uapi/asm-generic/unistd.h':<br>
No such file or directory<br>
WARNING: exit code 1 from a shell command.<br>
<br>
* tools/include/uapi was added in kernel 4.8 with<br>
<a href="https://github.com/torvalds/linux/commit/c4b6014e8bb0c8d47fe5c71ebc604f31091e5d3f" rel="noreferrer" target="_blank">https://github.com/torvalds/linux/commit/c4b6014e8bb0c8d47fe5c71ebc604f31091e5d3f</a><br>
tools: Add copy of perf_event.h to tools/include/linux/<br>
<br>
Signed-off-by: Martin Jansa <<a href="mailto:Martin.Jansa@gmail.com" target="_blank">Martin.Jansa@gmail.com</a>><br>
---<br>
meta/recipes-kernel/perf/<a href="http://perf.bb" rel="noreferrer" target="_blank">perf.bb</a> | 2 +-<br>
1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/meta/recipes-kernel/perf/<a href="http://perf.bb" rel="noreferrer" target="_blank">perf.bb</a> b/meta/recipes-kernel/perf/<a href="http://perf.bb" rel="noreferrer" target="_blank">perf.bb</a><br>
index 546076f84b..774894166c 100644<br>
--- a/meta/recipes-kernel/perf/<a href="http://perf.bb" rel="noreferrer" target="_blank">perf.bb</a><br>
+++ b/meta/recipes-kernel/perf/<a href="http://perf.bb" rel="noreferrer" target="_blank">perf.bb</a><br>
@@ -238,7 +238,7 @@ do_configure_prepend () {<br>
<br>
# unistd.h can be out of sync between libc-headers and the captured version in the perf source<br>
# so we copy it from the sysroot unistd.h to the perf unistd.h<br>
- cp ${STAGING_INCDIR}/asm-generic/unistd.h ${S}/tools/include/uapi/asm-generic/unistd.h<br>
+ install -D 0644 ${STAGING_INCDIR}/asm-generic/unistd.h ${S}/tools/include/uapi/asm-generic/unistd.h<br>
}<br>
<br>
python do_package_prepend() {<br>
-- <br>
2.17.1<br>
<br>
</blockquote></div>