From: Chunrong Guo <b40...@freescale.com>

      fix perf ERROR: oe_runmake failed

Signed-off-by: Chunrong Guo <b40...@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

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@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to