]> code.ossystems Code Review - openembedded-core.git/commit
perf: make sure that the tools/include/uapi/asm-generic directory exists
authorMartin Jansa <martin.jansa@gmail.com>
Tue, 14 May 2019 07:30:30 +0000 (07:30 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 15 May 2019 16:52:49 +0000 (17:52 +0100)
commit5fdb96f4996856286c4f72b93d31b7990ceed8aa
tree2a505a7929edd6eee1523456402e1557cd141b3d
parent7b8dd17c65e2d7d163f452833f21469918bf222e
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/

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/perf/perf.bb