All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-fsl-arm][PATCH] linux-imx: Add a patch to fix perf compilation issue.
@ 2012-12-18 13:59 Noor, Ahsan
  2012-12-18 14:53 ` Andrei Gherzan
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Noor, Ahsan @ 2012-12-18 13:59 UTC (permalink / raw)
  To: meta-freescale

From: Noor Ahsan <noor_ahsan@mentor.com>

* Perf build fails with GNU C library version 2.16. It give
undefined reference for RUSAGE_SELF and storage size of 'ru'
 in builtin-sched.c.
* Fixed issue by adding time.h and resource.h headerfiles in builtin-sched.c.

Signed-off-by: Noor Ahsan <noor_ahsan@mentor.com>
---
 .../linux/linux-imx/fix_of_getrusage.patch         |   11 +++++++++++
 recipes-kernel/linux/linux-imx_3.0.35.bb           |    3 +++
 2 files changed, 14 insertions(+)

diff --git a/recipes-kernel/linux/linux-imx/fix_of_getrusage.patch b/recipes-kernel/linux/linux-imx/fix_of_getrusage.patch
new file mode 100644
index 0000000..4d3faa8
--- /dev/null
+++ b/recipes-kernel/linux/linux-imx/fix_of_getrusage.patch
@@ -0,0 +1,11 @@
+--- git/tools/perf/builtin-sched_orig.c	2012-12-11 15:18:58.000000000 +0500
++++ git/tools/perf/builtin-sched.c	2012-12-11 15:22:43.302782244 +0500
+@@ -14,6 +14,8 @@
+ #include "util/debug.h"
+ 
+ #include <sys/prctl.h>
++#include <sys/time.h>
++#include <sys/resource.h>
+ 
+ #include <semaphore.h>
+ #include <pthread.h>
diff --git a/recipes-kernel/linux/linux-imx_3.0.35.bb b/recipes-kernel/linux/linux-imx_3.0.35.bb
index 4aa5f08..a3235e8 100644
--- a/recipes-kernel/linux/linux-imx_3.0.35.bb
+++ b/recipes-kernel/linux/linux-imx_3.0.35.bb
@@ -13,3 +13,6 @@ LOCALVERSION = "-12.09.01+yocto"
 
 # iMX6Q SabreLITE changes done by Boundary Devices
 SRC_URI_append_imx6qsabrelite = " file://sync-boundary-changes.patch"
+
+SRC_URI += "file://fix_of_getrusage.patch \
+           "
-- 
1.7.9.5



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

end of thread, other threads:[~2012-12-19  7:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-18 13:59 [meta-fsl-arm][PATCH] linux-imx: Add a patch to fix perf compilation issue Noor, Ahsan
2012-12-18 14:53 ` Andrei Gherzan
2012-12-18 15:27   ` Otavio Salvador
2012-12-18 15:27 ` Daiane Angolini
2012-12-18 16:09 ` Otavio Salvador
2012-12-19  7:58   ` Ahsan, Noor

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.