From: Peter Marko Date: Tue, 5 May 2026 09:46:01 +0000 (+0200) Subject: perf: make libraries for install_headers configurable X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=089e2571b1a220607b00a16c87c1a2dcdcde9792;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git perf: make libraries for install_headers configurable 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 Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb index f24b44954e..c3ef25fd99 100644 --- a/meta/recipes-kernel/perf/perf.bb +++ b/meta/recipes-kernel/perf/perf.bb @@ -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