[meta-freescale] [meta-fsl-ppc][PATCH] linux-qoriq-sdk: Add a patch to resolve undefined RUSAGE_SELF for perf.
Noor, Ahsan
noor_ahsan at mentor.com
Wed Dec 12 04:31:22 PST 2012
From: Noor Ahsan <noor_ahsan at 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 at mentor.com>
---
recipes-kernel/linux/linux-qoriq-sdk.bb | 2 ++
.../linux/linux-qoriq-sdk/fix_of_getrusage.patch | 11 +++++++++++
2 files changed, 13 insertions(+)
diff --git a/recipes-kernel/linux/linux-qoriq-sdk.bb b/recipes-kernel/linux/linux-qoriq-sdk.bb
index 18e6e16..d2ed603 100644
--- a/recipes-kernel/linux/linux-qoriq-sdk.bb
+++ b/recipes-kernel/linux/linux-qoriq-sdk.bb
@@ -7,6 +7,8 @@ LICENSE = "GPLv2"
require recipes-kernel/linux/linux-qoriq-sdk.inc
+SRC_URI += "file://fix_of_getrusage.patch"
+
do_configure_prepend() {
# copy desired defconfig so we pick it up for the real kernel_do_configure
cp ${KERNEL_DEFCONFIG} ${B}/.config
diff --git a/recipes-kernel/linux/linux-qoriq-sdk/fix_of_getrusage.patch b/recipes-kernel/linux/linux-qoriq-sdk/fix_of_getrusage.patch
new file mode 100644
index 0000000..4d3faa8
--- /dev/null
+++ b/recipes-kernel/linux/linux-qoriq-sdk/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>
--
1.7.9.5
More information about the meta-freescale
mailing list