]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
perf: fix buildpaths QA warning
authorBruce Ashfield <bruce.ashfield@gmail.com>
Fri, 10 Mar 2023 04:12:37 +0000 (23:12 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 11 Mar 2023 00:08:38 +0000 (00:08 +0000)
commitc8845ab59cd7c28874473618f134a5d45906d6ea
treee754011fc8502b55535a6c7fff3786d8865bab8e
parent77d06aa41c40f8d78903cc499b3f6906a084699e
perf: fix buildpaths QA warning

In the 6.2+ kernel, arm64 perf has a buildpaths QA warning as
a syscall table is now being dynamically generated. That generated
table includes unistd.h by absolute path, which in turn triggers
the buildpaths QA warning.

This could easily be patched in linux-yocto, but that would
leave the QA issue in perf built from other kernel trees.

So we instead to the following:

 - Add the perf tools directory to the include path
 - Modify the Makefile to have a relative path to unistd.h and
   pass both the relative and absolute path to the generation
   script
 - Modify the generation script to take the relative location
   of unistd.h as a new parameter, and use that in the generated
   sycalls.c file

At build, the added include path of the perf source allows the
relative path file to be included, and no buildpaths warning is
generated.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/recipes-kernel/perf/perf.bb