From: Roy.Li <rongqing...@windriver.com> [YOCTO #2853]
Sysroot in CFLAGS can not pass into Makefile, and slang include dir becomes the hardcoded host dir, fix it by using STAGING_INCDIR. And add dependency on slang Signed-off-by: Roy.Li <rongqing...@windriver.com> --- meta/recipes-kernel/perf/perf_3.4.bb | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/meta/recipes-kernel/perf/perf_3.4.bb b/meta/recipes-kernel/perf/perf_3.4.bb index 505c7b8..da746f4 100644 --- a/meta/recipes-kernel/perf/perf_3.4.bb +++ b/meta/recipes-kernel/perf/perf_3.4.bb @@ -9,7 +9,7 @@ as well." LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" -PR = "r4" +PR = "r5" require perf.inc @@ -24,6 +24,7 @@ DEPENDS = "virtual/kernel \ ${MLPREFIX}binutils \ ${TUI_DEPENDS} \ ${SCRIPTING_DEPENDS} \ + slang \ " SCRIPTING_RDEPENDS = "${@perf_feature_enabled('perf-scripting', 'perl perl-modules python', '',d)}" @@ -64,6 +65,9 @@ EXTRA_OEMAKE = \ prefix=/usr \ NO_GTK2=1 ${TUI_DEFINES} NO_DWARF=1 ${SCRIPTING_DEFINES} \ ' +do_compile_prepend() { + sed -i "s:-I/usr/include/slang:-I${STAGING_INCDIR}:" ${S}/tools/perf/Makefile +} do_compile() { oe_runmake all -- 1.7.4.1 _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core