summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/perf/perf.bb
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2013-09-18 10:51:04 -0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-18 17:54:42 +0100
commit99b41732458871080cfa7a9bad3f8dfe03e026be (patch)
tree27d62a7b047ddf1c3fa10485ae8ae0eb867324c0 /meta/recipes-kernel/perf/perf.bb
parent4a224d31c81b89ada23d2f21b0d70c4ef41937e0 (diff)
downloadpoky-99b41732458871080cfa7a9bad3f8dfe03e026be.tar.gz
perf: Add LDFLAGS to allow build of old kernels without patching
The LDFLAGS is required or some old kernels fails due missing symbols and this is preferred than requiring patches to every old supported kernel. Fixes [YOCTO: #5221] (From OE-Core rev: 0eccbf2016e89e6f1c3796f138b02a508d2edbcf) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/perf/perf.bb')
-rw-r--r--meta/recipes-kernel/perf/perf.bb9
1 files changed, 7 insertions, 2 deletions
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index 4a815ff2f8..269069f3af 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -60,6 +60,11 @@ B = "${WORKDIR}/${BPN}-${PV}"
60SCRIPTING_DEFINES = "${@perf_feature_enabled('perf-scripting', '', 'NO_LIBPERL=1 NO_LIBPYTHON=1',d)}" 60SCRIPTING_DEFINES = "${@perf_feature_enabled('perf-scripting', '', 'NO_LIBPERL=1 NO_LIBPYTHON=1',d)}"
61TUI_DEFINES = "${@perf_feature_enabled('perf-tui', '', 'NO_NEWT=1',d)}" 61TUI_DEFINES = "${@perf_feature_enabled('perf-tui', '', 'NO_NEWT=1',d)}"
62 62
63# The LDFLAGS is required or some old kernels fails due missing
64# symbols and this is preferred than requiring patches to every old
65# supported kernel.
66LDFLAGS="-ldl -lutil"
67
63EXTRA_OEMAKE = \ 68EXTRA_OEMAKE = \
64 '-C ${S}/tools/perf \ 69 '-C ${S}/tools/perf \
65 O=${B} \ 70 O=${B} \
@@ -88,13 +93,13 @@ PARALLEL_MAKE = ""
88 93
89do_compile() { 94do_compile() {
90 # Linux kernel build system is expected to do the right thing 95 # Linux kernel build system is expected to do the right thing
91 unset CFLAGS LDFLAGS 96 unset CFLAGS
92 oe_runmake all 97 oe_runmake all
93} 98}
94 99
95do_install() { 100do_install() {
96 # Linux kernel build system is expected to do the right thing 101 # Linux kernel build system is expected to do the right thing
97 unset CFLAGS LDFLAGS 102 unset CFLAGS
98 oe_runmake DESTDIR=${D} install 103 oe_runmake DESTDIR=${D} install
99 # we are checking for this make target to be compatible with older perf versions 104 # we are checking for this make target to be compatible with older perf versions
100 if [ "${@perf_feature_enabled('perf-scripting', 1, 0, d)}" = "1" -a $(grep install-python_ext ${S}/tools/perf/Makefile) = "0"]; then 105 if [ "${@perf_feature_enabled('perf-scripting', 1, 0, d)}" = "1" -a $(grep install-python_ext ${S}/tools/perf/Makefile) = "0"]; then