summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoor Ahsan <noor_ahsan@mentor.com>2012-12-21 17:24:55 +0500
committerMatthew McClintock <msm@freescale.com>2013-01-17 14:59:39 -0600
commit877cb8b1374c59737ffbe6f33e031b571284c8f9 (patch)
treefb548915716fdb5f40667a559be767d5b45e48a4
parent330e7d07a6c6881ea47038dc7c9d0a588d5218c8 (diff)
downloadmeta-fsl-ppc-877cb8b1374c59737ffbe6f33e031b571284c8f9.tar.gz
linux-qoriq: Add a patch to fix perf compilation issue.
* Perf gived compilation error CC builtin-sched.o builtin-sched.c: In function ‘get_cpu_usage_nsec_parent’: builtin-sched.c:399:16: error: storage size of ‘ru’ isn’t known * Added a patch from linux kernel git repo commit id 7b78f13603c6fcb64e020a0bbe31a651ea2b657b which include resource.h file in builtin-sched.c. * Bump PR. * Verified it on P4080DS machine. Signed-off-by: Noor Ahsan <noor_ahsan@mentor.com>
-rw-r--r--recipes-kernel/linux/files/fix_getrusage_for_perf.patch33
-rw-r--r--recipes-kernel/linux/linux-qoriq-sdk.bb6
2 files changed, 39 insertions, 0 deletions
diff --git a/recipes-kernel/linux/files/fix_getrusage_for_perf.patch b/recipes-kernel/linux/files/fix_getrusage_for_perf.patch
new file mode 100644
index 0000000..0029fdc
--- /dev/null
+++ b/recipes-kernel/linux/files/fix_getrusage_for_perf.patch
@@ -0,0 +1,33 @@
1commit 7b78f13603c6fcb64e020a0bbe31a651ea2b657b
2Author: Markus Trippelsdorf <markus@trippelsdorf.de>
3Date: Wed Apr 4 10:45:27 2012 +0200
4
5 perf tools: Fix getrusage() related build failure on glibc trunk
6
7 On a system running glibc trunk perf doesn't build:
8
9 CC builtin-sched.o
10 builtin-sched.c: In function ‘get_cpu_usage_nsec_parent’: builtin-sched.c:399:16: error: storage size of ‘ru’ isn’t known builtin-sched.c:403:2: error: implicit declaration of function ‘getrusage’ [-Werror=implicit-function-declaration]
11 [...]
12
13 Fix it by including sys/resource.h.
14
15 Signed-off-by: Markus Trippelsdorf <markus@trippelsdorf.de>
16 Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
17 Link: http://lkml.kernel.org/r/20120404084527.GA294@x4
18 Signed-off-by: Ingo Molnar <mingo@kernel.org>
19
20Upstream-Status: Backport [3.4]
21
22diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c
23index fb8b5f8..1cad3af 100644
24--- a/tools/perf/builtin-sched.c
25+++ b/tools/perf/builtin-sched.c
26@@ -17,6 +17,7 @@
27 #include "util/debug.h"
28
29 #include <sys/prctl.h>
30+#include <sys/resource.h>
31
32 #include <semaphore.h>
33 #include <pthread.h>
diff --git a/recipes-kernel/linux/linux-qoriq-sdk.bb b/recipes-kernel/linux/linux-qoriq-sdk.bb
index 18e6e16..1971f15 100644
--- a/recipes-kernel/linux/linux-qoriq-sdk.bb
+++ b/recipes-kernel/linux/linux-qoriq-sdk.bb
@@ -5,8 +5,14 @@ DESCRIPTION = "Linux kernel for Freescale platforms"
5SECTION = "kernel" 5SECTION = "kernel"
6LICENSE = "GPLv2" 6LICENSE = "GPLv2"
7 7
8
8require recipes-kernel/linux/linux-qoriq-sdk.inc 9require recipes-kernel/linux/linux-qoriq-sdk.inc
9 10
11PR = "r9"
12
13SRC_URI += "file://fix_getrusage_for_perf.patch \
14 "
15
10do_configure_prepend() { 16do_configure_prepend() {
11 # copy desired defconfig so we pick it up for the real kernel_do_configure 17 # copy desired defconfig so we pick it up for the real kernel_do_configure
12 cp ${KERNEL_DEFCONFIG} ${B}/.config 18 cp ${KERNEL_DEFCONFIG} ${B}/.config