mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
perf: Tweak reproducibility fix
Instead of building libperf.a, we should run install_headers as with the other libraries. Hopefully this resolves the remaining race issue around headers. (From OE-Core rev: 647589fab1fb73a985cbba4c1bec2004831508ca) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -10,8 +10,8 @@ HOMEPAGE = "https://perf.wiki.kernel.org/index.php/Main_Page"
|
|||||||
LICENSE = "GPL-2.0-only"
|
LICENSE = "GPL-2.0-only"
|
||||||
|
|
||||||
# remove at next version upgrade or when output changes
|
# remove at next version upgrade or when output changes
|
||||||
PR = "r1"
|
PR = "r2"
|
||||||
HASHEQUIV_HASH_VERSION .= ".1"
|
HASHEQUIV_HASH_VERSION .= ".2"
|
||||||
|
|
||||||
# zstd is required for kernels 6.14+ when libelf-zstd is detected
|
# zstd is required for kernels 6.14+ when libelf-zstd is detected
|
||||||
# Respect the coresight machine feature, but note this causes a
|
# Respect the coresight machine feature, but note this causes a
|
||||||
@@ -178,11 +178,10 @@ do_compile() {
|
|||||||
# There are two copies of internal headers such as:
|
# There are two copies of internal headers such as:
|
||||||
# libperf/include/internal/xyarray.h and tools/lib/perf/include/internal/xyarray.h
|
# 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 reproducibile binaries, we need to find one copy, hence force libXXX to be created first
|
||||||
for i in api bpf subcmd symbol
|
for i in api bpf subcmd symbol perf
|
||||||
do
|
do
|
||||||
oe_runmake -C ${S}/tools/lib/$i DESTDIR=${B}/lib$i prefix= install_headers V=1
|
oe_runmake -C ${S}/tools/lib/$i DESTDIR=${B}/lib$i prefix= install_headers V=1
|
||||||
done
|
done
|
||||||
oe_runmake ${B}/libperf/libperf.a V=1
|
|
||||||
oe_runmake all V=1
|
oe_runmake all V=1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user