perf_3.4.bbappend: task oe_runmake: failed
From: Chunrong Guo <[email protected]>
fix perf ERROR: oe_runmake failed
--- .../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
recipes-append/perf/files/define-attribute-const.patch new file +13 -0
@@ -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
recipes-append/perf/perf_3.4.bbappend new file +7 -0
@@ -0,0 +1,7 @@ +FILESEXTRAPATHS_prepend_fsl := "${THISDIR}/files:" + +SRC_URI_append_fsl += "file://define-attribute-const.patch\ + " + +PR_fsl .= "+${DISTRO}" +
Signature · 1 line
1.7.9.7
Quoted 4 lines · On Tue, Oct 30, 2012 at 3:38 AM, <[email protected]> wrote:
From: Chunrong Guo <[email protected]>
fix perf ERROR:
oe_runmakefailed
Quoted 8 lines
Signed-off-by Chunrong Guo <[email protected]>--- .../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
Quoted 40 lines
recipes-append/perf/files/define-attribute-const.patch new file +13
-0@@ -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__)) + + #endifrecipes-append/perf/perf_3.4.bbappend new file +7
-1@@ -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
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"
Quoted 14 lines · Bruce Ashfield
Quoted 4 lines · On Tue, Oct 30, 2012 at 3:38 AM, <[email protected]> wrote:
From: Chunrong Guo <[email protected]>
fix perf ERROR:
oe_runmakefailedQuoted 8 lines
Signed-off-by Chunrong Guo <[email protected]>--- .../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
Quoted 8 lines
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.
I agree. But, for the already released kernel already on git.freescale.com we will need these patches.
Chunrong,
Please send a pull request to our linux tree maintainer to get these patches added to our next kernel.
-M