Return-Path: Received: from alm.mentorg.com (nat-lmt.mentorg.com [139.181.28.34]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id D5E4DE006C3 for ; Wed, 12 Dec 2012 04:31:40 -0800 (PST) Received: from pkl-ahsann-ubuntu.mgc.mentorg.com ([137.202.157.70]) by alm.mentorg.com (8.12.10/8.12.10) with ESMTP id qBCCVaaF013172; Wed, 12 Dec 2012 06:31:38 -0600 From: "Noor, Ahsan" To: meta-freescale@yoctoproject.org Date: Wed, 12 Dec 2012 17:31:22 +0500 Message-Id: <1355315482-10152-1-git-send-email-noor_ahsan@mentor.com> X-Mailer: git-send-email 1.7.9.5 Subject: [meta-fsl-ppc][PATCH] linux-qoriq-sdk: Add a patch to resolve undefined RUSAGE_SELF for perf. X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Dec 2012 12:31:41 -0000 From: Noor Ahsan * 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 --- 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 ++#include ++#include + + #include + #include -- 1.7.9.5