Re: [OE-core] [PATCH 3/7] perf: fix v3.17 powerpc compilation issues

2014-09-09 Thread Burton, Ross
On 8 September 2014 20:55, Bruce Ashfield bruce.ashfi...@windriver.com wrote:
 Unitl fixes get into the mainline kernel, we temporarily fix the issues by

Until

Whilst you're fixing the patch headers in the other commit, you can
fix this typo. :)

Ross
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 3/7] perf: fix v3.17 powerpc compilation issues

2014-09-08 Thread Bruce Ashfield
The powerpc perf arch port has two issues in the current 3.17-rc
seriers. Undefined dwarf symbols and undefined pr_debug calls.

commit a60335ba [perf tools powerpc: Adjust callchain based on DWARF debug info]
introduces skip-callchain-idx.c, and breaks the perf build.

Unitl fixes get into the mainline kernel, we temporarily fix the issues by
adding a forced linke to -ldw and modifying skip-callchain-idx.c to include
the proper debug files for pr_debug.

Signed-off-by: Bruce Ashfield bruce.ashfi...@windriver.com
---
 meta/recipes-kernel/perf/perf.bb | 5 +
 1 file changed, 5 insertions(+)

diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index ebfedb91d715..5bf7af9d4a7c 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -75,6 +75,7 @@ EXTRA_OEMAKE = '\
 ARCH=${ARCH} \
 CC=${CC} \
 AR=${AR} \
+EXTRA_CFLAGS=-ldw \
 perfexecdir=${libexecdir} \
 NO_GTK2=1 ${TUI_DEFINES} NO_DWARF=1 NO_LIBUNWIND=1 ${SCRIPTING_DEFINES} \
 '
@@ -140,6 +141,10 @@ do_configure_prepend () {
 if [ -e ${S}/tools/perf/config/feature-checks/Makefile ]; then
 sed -i 's,CC := $(CROSS_COMPILE)gcc -MD,CC += -MD,' 
${S}/tools/perf/config/feature-checks/Makefile
 fi
+# 3.17-rc1+ has a include issue for powerpc. Temporarily sed in the 
appropriate include
+if [ -e ${S}/tools/perf/arch/powerpc/util/skip-callchain-idx.c ]; then
+sed -i 's,#include util/callchain.h,#include 
util/callchain.h\n#include util/debug.h,' 
${S}/tools/perf/arch/powerpc/util/skip-callchain-idx.c
+fi
 }
 
 python do_package_prepend() {
-- 
1.8.1.2

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core