perf: make libraries for install_headers configurable
PATCH 1/1 perf: make libraries for install_headers configurable
From: Peter Marko <[email protected]>
Older kernels don't support install_headers for all libraries. For instance kernel 6.1 fails for two (api and symbol) with:
make: *** No rule to make target 'install_headers'. Stop.
Also sort the list when moving to variable.
Signed-off-by Peter Marko <[email protected]>
Signed-off-by Mathieu Dubois-Briand <[email protected]>
Signed-off-by Richard Purdie <[email protected]>
(From OE-Core rev: 089e2571b1a220607b00a16c87c1a2dcdcde9792)
Signed-off-by Peter Marko <[email protected]>
--- meta/recipes-kernel/perf/perf.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
meta/recipes-kernel/perf/perf.bb +4 -1
@@ -169,6 +169,9 @@ PERF_EXTRA_LDFLAGS:mipsarchn32el = "-m elf32ltsmipn32" PERF_EXTRA_LDFLAGS:mipsarchn64eb = "-m elf64btsmip" PERF_EXTRA_LDFLAGS:mipsarchn64el = "-m elf64ltsmip" +# override for older kernels which don't support installing headers for all libraries +REPRODUCIBLE_HEADERS_TARGETS ?= "api bpf perf subcmd symbol" + do_compile() { # Linux kernel build system is expected to do the right thing unset CFLAGS
@@ -179,7 +182,7 @@ do_compile() { # There are two copies of internal headers such as: # libperf/include/internal/xyarray.h and tools/lib/perf/include/internal/xyarray.h # For reproducibile binaries, we need to find one copy, hence force libXXX to be created first - for i in api bpf subcmd symbol perf + for i in ${REPRODUCIBLE_HEADERS_TARGETS} do oe_runmake -C ${S}/tools/lib/$i DESTDIR=${B}/lib$i prefix= install_headers V=1 done