[yocto] [meta-intel][PATCH] linux-yocto: Add a patch to resolve undefined RUSAGE_SELF for perf.

Bodke, Kishore K kishore.k.bodke at intel.com
Mon Jan 7 09:34:13 PST 2013



>-----Original Message-----
>From: Darren Hart [mailto:dvhart at linux.intel.com]
>Sent: Monday, January 07, 2013 8:20 AM
>To: Noor, Ahsan
>Cc: yocto at yoctoproject.org; meta-intel at yoctoproject.org; Bodke, Kishore K
>Subject: Re: [yocto] [meta-intel][PATCH] linux-yocto: Add a patch to resolve
>undefined RUSAGE_SELF for perf.
>
>On 12/31/2012 03:56 AM, Noor, Ahsan wrote:
>> From: Noor Ahsan <noor_ahsan at mentor.com>
>
>Hi Noor,
>
>>
>> * Perf gived compilation error
>>   CC builtin-sched.o
>>     builtin-sched.c: In function ‘get_cpu_usage_nsec_parent’:
>>   builtin-sched.c:399:16: error: storage size of ‘ru’ isn’t known
>> * Added a patch from linux kernel git repo commit id
>>   7b78f13603c6fcb64e020a0bbe31a651ea2b657b which include resource.h
>>   file in builtin-sched.c.
>
>
>Please send meta-intel patches to the meta-intel list and CC the BSP
>maintainer, in this case Kishore (on Cc).
>
>The patch below seems to basically duplicate the existing
>linux-yocto_3.0.bbappend in the repository and I don't see the patch you
>mention. Is this the patch you intended to send?
>
Hi Noor,
Yeah, it is duplication of the linux-yocto_3.0.bbappend. 
Why do you want to do this?

Thanks
Kishore.

>Thanks,
>
>Darren
>
>>
>> Signed-off-by: Noor Ahsan <noor_ahsan at mentor.com>
>> ---
>>  .../linux/linux-yocto/linux-yocto_3.0.bbappend     |   23
>++++++++++++++++++++
>>  .../recipes-kernel/linux/linux-yocto_3.0.bbappend  |    8 +++++--
>>  2 files changed, 29 insertions(+), 2 deletions(-)
>>
>> diff --git a/meta-cedartrail/recipes-kernel/linux/linux-yocto/linux-
>yocto_3.0.bbappend b/meta-cedartrail/recipes-kernel/linux/linux-
>yocto/linux-yocto_3.0.bbappend
>> new file mode 100644
>> index 0000000..440cd77
>> --- /dev/null
>> +++ b/meta-cedartrail/recipes-kernel/linux/linux-yocto/linux-
>yocto_3.0.bbappend
>> @@ -0,0 +1,23 @@
>> +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
>> +
>> +SRC_URI_cedartrail = "git://git.yoctoproject.org/linux-yocto-
>3.0;protocol=git;bareclone=1;branch=${KBRANCH},meta,yocto/pvr;name=ma
>chine,meta,pvr"
>> +
>> +SRC_URI_cedartrail-nopvr = "git://git.yoctoproject.org/linux-yocto-
>3.0;protocol=git;nocheckout=1;branch=${KBRANCH},meta;name=machine,m
>eta"
>> +
>> +COMPATIBLE_MACHINE_cedartrail = "cedartrail"
>> +KMACHINE_cedartrail  = "cedartrail"
>> +KBRANCH_cedartrail  = "yocto/standard/cedartrail"
>> +KERNEL_FEATURES_append_cedartrail += "bsp/cedartrail/cedartrail-pvr-
>merge.scc"
>> +KERNEL_FEATURES_append_cedartrail += "cfg/efi-ext.scc"
>> +
>> +COMPATIBLE_MACHINE_cedartrail-nopvr = "cedartrail"
>> +KMACHINE_cedartrail-nopvr  = "cedartrail"
>> +KBRANCH_cedartrail-nopvr  = "yocto/standard/cedartrail"
>> +KERNEL_FEATURES_append_cedartrail-nopvr += " cfg/smp.scc"
>> +
>> +SRCREV_machine_pn-linux-yocto_cedartrail ?= "${AUTOREV}"
>> +SRCREV_meta_pn-linux-yocto_cedartrail ?= "${AUTOREV}"
>> +SRCREV_pvr_pn-linux-yocto_cedartrail ?= "${AUTOREV}"
>> +
>> +SRCREV_machine_pn-linux-yocto_cedartrail-nopvr ?= "${AUTOREV}"
>> +SRCREV_meta_pn-linux-yocto_cedartrail-nopvr ?= "${AUTOREV}"
>> diff --git a/meta-cedartrail/recipes-kernel/linux/linux-yocto_3.0.bbappend
>b/meta-cedartrail/recipes-kernel/linux/linux-yocto_3.0.bbappend
>> index 440cd77..6797eeb 100644
>> --- a/meta-cedartrail/recipes-kernel/linux/linux-yocto_3.0.bbappend
>> +++ b/meta-cedartrail/recipes-kernel/linux/linux-yocto_3.0.bbappend
>> @@ -1,8 +1,12 @@
>>  FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
>>
>> -SRC_URI_cedartrail = "git://git.yoctoproject.org/linux-yocto-
>3.0;protocol=git;bareclone=1;branch=${KBRANCH},meta,yocto/pvr;name=ma
>chine,meta,pvr"
>> +SRC_URI_cedartrail = "git://git.yoctoproject.org/linux-yocto-
>3.0;protocol=git;bareclone=1;branch=${KBRANCH},meta,yocto/pvr;name=ma
>chine,meta,pvr \
>> +file://linux-yocto_3.0.bbappend \
>> +"
>>
>> -SRC_URI_cedartrail-nopvr = "git://git.yoctoproject.org/linux-yocto-
>3.0;protocol=git;nocheckout=1;branch=${KBRANCH},meta;name=machine,m
>eta"
>> +SRC_URI_cedartrail-nopvr = "git://git.yoctoproject.org/linux-yocto-
>3.0;protocol=git;nocheckout=1;branch=${KBRANCH},meta;name=machine,m
>eta \
>> +file://linux-yocto_3.0.bbappend \
>> +"
>>
>>  COMPATIBLE_MACHINE_cedartrail = "cedartrail"
>>  KMACHINE_cedartrail  = "cedartrail"
>>
>
>--
>Darren Hart
>Intel Open Source Technology Center
>Yocto Project - Technical Lead - Linux Kernel


More information about the yocto mailing list