Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] perf-3.4: fix hardcoded slang include dir
@ 2012-07-30  9:06 rongqing.li
  2012-07-30  9:43 ` Enrico Scholz
  0 siblings, 1 reply; 4+ messages in thread
From: rongqing.li @ 2012-07-30  9:06 UTC (permalink / raw)
  To: openembedded-core

From: Roy.Li <rongqing.li@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.li@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




^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-08-02 20:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-30  9:06 [PATCH] perf-3.4: fix hardcoded slang include dir rongqing.li
2012-07-30  9:43 ` Enrico Scholz
2012-07-31  3:24   ` Rongqing Li
2012-08-02 19:53     ` Darren Hart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox