mirror of
https://git.yoctoproject.org/poky
synced 2026-04-29 18:32:20 +02:00
perf_3.4.bb: update to build against older kernels
Removes a make install-python_ext when not present since older versions of perf lack this install rule This also fixes a library issue on older kernels building with a newer toolchain where libaries that would previously be pulled in are no longer. So we add them manually. (From OE-Core rev: 70b17a893bd2e1bbba8ea16619b02a60e7c4b8d8) Signed-off-by: Matthew McClintock <msm@freescale.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
05b343ee4b
commit
570edd2737
@@ -54,6 +54,7 @@ B = "${WORKDIR}/${BPN}-${PV}"
|
||||
SCRIPTING_DEFINES = "${@perf_feature_enabled('perf-scripting', '', 'NO_LIBPERL=1 NO_LIBPYTHON=1',d)}"
|
||||
TUI_DEFINES = "${@perf_feature_enabled('perf-tui', '', 'NO_NEWT=1',d)}"
|
||||
|
||||
export LDFLAGS = "-ldl -lutil"
|
||||
EXTRA_OEMAKE = \
|
||||
'-C ${S}/tools/perf \
|
||||
O=${B} \
|
||||
@@ -71,7 +72,8 @@ do_compile() {
|
||||
|
||||
do_install() {
|
||||
oe_runmake DESTDIR=${D} install
|
||||
if [ "${@perf_feature_enabled('perf-scripting', 1, 0, d)}" = "1" ]; then
|
||||
# we are checking for this make target to be compatible with older perf versions
|
||||
if [ "${@perf_feature_enabled('perf-scripting', 1, 0, d)}" = "1" -a $(grep install-python_ext ${S}/tools/perf/Makefile) = "0"]; then
|
||||
oe_runmake DESTDIR=${D} install-python_ext
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user