From: Noor Ahsan <[email protected]> * 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 <[email protected]> --- .../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 _______________________________________________ meta-freescale mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-freescale
