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

* Re: [PATCH] perf-3.4: fix hardcoded slang include dir
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Enrico Scholz @ 2012-07-30  9:43 UTC (permalink / raw)
  To: openembedded-core

<rongqing.li-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org> writes:

> +++ b/meta/recipes-kernel/perf/perf_3.4.bb
> ...
> +	sed -i "s:-I/usr/include/slang:-I${STAGING_INCDIR}:" ${S}/tools/perf/Makefile

You are patching an already staged file here:

 | S = "${STAGING_KERNEL_DIR}"

When want to fix it in this way (another workaround might be adding
'WERROR=0' to EXTRA_OEMAKE), it must be done in kernel.bbclass.


Enrico



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

* Re: [PATCH] perf-3.4: fix hardcoded slang include dir
  2012-07-30  9:43 ` Enrico Scholz
@ 2012-07-31  3:24   ` Rongqing Li
  2012-08-02 19:53     ` Darren Hart
  0 siblings, 1 reply; 4+ messages in thread
From: Rongqing Li @ 2012-07-31  3:24 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: Enrico Scholz



On 2012年07月30日 17:43, Enrico Scholz wrote:
> <rongqing.li-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org> writes:
>
>> +++ b/meta/recipes-kernel/perf/perf_3.4.bb
>> ...
>> +	sed -i "s:-I/usr/include/slang:-I${STAGING_INCDIR}:" ${S}/tools/perf/Makefile
>
> You are patching an already staged file here:
>
>   | S = "${STAGING_KERNEL_DIR}"
>
> When want to fix it in this way (another workaround might be adding
> 'WERROR=0' to EXTRA_OEMAKE), it must be done in kernel.bbclass.
>
>
Thanks, I will modify it.

-Roy

> Enrico
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
>

-- 
Best Reagrds,
Roy | RongQing Li





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

* Re: [PATCH] perf-3.4: fix hardcoded slang include dir
  2012-07-31  3:24   ` Rongqing Li
@ 2012-08-02 19:53     ` Darren Hart
  0 siblings, 0 replies; 4+ messages in thread
From: Darren Hart @ 2012-08-02 19:53 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: Enrico Scholz



On 07/30/2012 08:24 PM, Rongqing Li wrote:
> 
> 
> On 2012年07月30日 17:43, Enrico Scholz wrote:
>> <rongqing.li-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org> writes:
>>
>>> +++ b/meta/recipes-kernel/perf/perf_3.4.bb
>>> ...
>>> +	sed -i "s:-I/usr/include/slang:-I${STAGING_INCDIR}:" ${S}/tools/perf/Makefile
>>
>> You are patching an already staged file here:
>>
>>   | S = "${STAGING_KERNEL_DIR}"
>>
>> When want to fix it in this way (another workaround might be adding
>> 'WERROR=0' to EXTRA_OEMAKE), it must be done in kernel.bbclass.

That will indeed suppress the warning, but it doesn't resolve the host
contamination. A proper fix would be a patch against the kernel sources
. Every kernel will need this.

We can help you merge into the linux-yocto kernel.

>>
> Thanks, I will modify it.
> 
> -Roy
> 
>> Enrico
>>
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>>
>>
> 

-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Technical Lead - Linux Kernel



^ permalink raw reply	[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