summaryrefslogtreecommitdiff
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:38 +0100
commit0eccbf2016e89e6f1c3796f138b02a508d2edbcf (patch)
treede21ecf0049f97a92db9439ca84ea891c5afe92f
parent32f9575a565f350649264c11eceba8311584b0fd (diff)
downloadopenembedded-core-0eccbf2016e89e6f1c3796f138b02a508d2edbcf.tar.gz
openembedded-core-0eccbf2016e89e6f1c3796f138b02a508d2edbcf.tar.bz2
openembedded-core-0eccbf2016e89e6f1c3796f138b02a508d2edbcf.zip
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] Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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}"
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)}"
+# The LDFLAGS is required or some old kernels fails due missing
+# symbols and this is preferred than requiring patches to every old
+# supported kernel.
+LDFLAGS="-ldl -lutil"
+
EXTRA_OEMAKE = \
'-C ${S}/tools/perf \
O=${B} \
@@ -88,13 +93,13 @@ PARALLEL_MAKE = ""
do_compile() {
# Linux kernel build system is expected to do the right thing
- unset CFLAGS LDFLAGS
+ unset CFLAGS
oe_runmake all
}
do_install() {
# Linux kernel build system is expected to do the right thing
- unset CFLAGS LDFLAGS
+ unset CFLAGS
oe_runmake DESTDIR=${D} install
# 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