[yocto] [meta-fsl-ppc master] perf_3.4.bbappend: task oe_runmake: failed

Bruce Ashfield bruce.ashfield at gmail.com
Tue Oct 30 05:29:09 PDT 2012


On Tue, Oct 30, 2012 at 3:38 AM,  <b40290 at freescale.com> wrote:
> From: Chunrong Guo <b40290 at freescale.com>
>
>       fix perf ERROR: oe_runmake failed
>
> Signed-off-by: Chunrong Guo <b40290 at freescale.com>
> ---
>  .../perf/files/define-attribute-const.patch        |   13 +++++++++++++
>  recipes-append/perf/perf_3.4.bbappend              |    7 +++++++
>  2 files changed, 20 insertions(+)
>  create mode 100644 recipes-append/perf/files/define-attribute-const.patch
>  create mode 100644 recipes-append/perf/perf_3.4.bbappend
>

Out of curiosity .. why not patch the FSL kernel itself ? That's where the
source for perf comes from, and that will ensure any perf recipe will build
when that kernel source is used. We've been fixing perf issues within the
linux-yocto repo for some time, that way the changes are matched to the
kernel that has the problem, not the layer + toolchain which can have a
changing kernel underneath it.

Just a random question.

Cheers,

Bruce

> diff --git a/recipes-append/perf/files/define-attribute-const.patch b/recipes-append/perf/files/define-attribute-const.patch
> new file mode 100644
> index 0000000..00c7575
> --- /dev/null
> +++ b/recipes-append/perf/files/define-attribute-const.patch
> @@ -0,0 +1,13 @@
> +--- linux/tools/perf/util/include/linux/compiler.h     2012-10-25 02:39:36.071441794 -0500
> ++++ git/tools/perf/util/include/linux/compiler.h       2012-10-28 21:53:49.351638193 -0500
> +@@ -5,8 +5,9 @@
> + #define __always_inline       inline
> + #endif
> + #define __user
> ++#ifndef __attribute_const__
> + #define __attribute_const__
> +-
> ++#endif
> + #define __used                __attribute__((__unused__))
> +
> + #endif
> diff --git a/recipes-append/perf/perf_3.4.bbappend b/recipes-append/perf/perf_3.4.bbappend
> new file mode 100644
> index 0000000..a5ff52b
> --- /dev/null
> +++ b/recipes-append/perf/perf_3.4.bbappend
> @@ -0,0 +1,7 @@
> +FILESEXTRAPATHS_prepend_fsl := "${THISDIR}/files:"
> +
> +SRC_URI_append_fsl += "file://define-attribute-const.patch\
> +                        "
> +
> +PR_fsl .= "+${DISTRO}"
> +
> --
> 1.7.9.7
>
>
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"



More information about the yocto mailing list