mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 03:32:12 +02:00
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
c4b6014e8b
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>
This commit is contained in:
committed by
Richard Purdie
parent
a6596bff75
commit
6b6b5cb2ab
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user