OK. There is an extra bit in the mailine patch: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1105251
which I've not ported back to this bug:
these bits: (for "Fix cross- optional library detection")
--- origs/linux-3.8.0/tools/perf/config/utilities.mak 2013-01-03 13:01:59.000000000 +0000 +++ linux-3.8.0/tools/perf/config/utilities.mak 2013-01-24 18:07:41.000000000 +0000 @@ -190,5 +190,5 @@ 'TMP="$(OUTPUT)$(TMPOUT).$$$$"; \ $(TRY_CC_MSG) \ echo "$(1)" | \ - $(CC) -x c - $(2) -o "$$TMP" $(TRY_CC_OUTPUT) && echo y; \ + $(CROSS-COMPILE)$(CC) -x c - $(2) -o "$$TMP" $(TRY_CC_OUTPUT) && echo y; \ rm -f "$$TMP"') diff -ur origs/linux-3.8.0/tools/perf/Makefile linux-3.8.0/tools/perf/Makefile --- origs/linux-3.8.0/tools/perf/Makefile 2013-01-03 13:01:59.000000000 +0000 +++ linux-3.8.0/tools/perf/Makefile 2013-01-24 18:00:56.000000000 +0000 @@ -64,7 +64,12 @@ CC = $(CROSS_COMPILE)gcc AR = $(CROSS_COMPILE)ar
-# Additional ARCH settings for x86 +# Additional ARCH settings +ifeq ($(ARCH),arm) + override ARCH := arm + NO_PERF_REGS := 0 + LIBUNWIND_LIBS = -lunwind -lunwind-arm +endif
Oh and add 'armhf' to the arches for which the libunwind8-dev and libaudit-dev build-deps apply.
Sorry for the low-quality patch, but thought I should record it before it gets forgotten.
Add those too and you'll get the libunwind, dwarf, and curses support in perf.
OK. There is an extra bit in the mailine patch: /bugs.launchpad .net/ubuntu/ +source/ linux/+ bug/1105251
https:/
which I've not ported back to this bug:
these bits: (for "Fix cross- optional library detection")
--- origs/linux- 3.8.0/tools/ perf/config/ utilities. mak 2013-01-03 13:01:59.000000000 +0000 8.0/tools/ perf/config/ utilities. mak 2013-01-24 18:07:41.000000000 +0000 "$(OUTPUT) $(TMPOUT) .$$$$"; \ COMPILE) $(CC) -x c - $(2) -o "$$TMP" $(TRY_CC_OUTPUT) && echo y; \ 3.8.0/tools/ perf/Makefile linux-3. 8.0/tools/ perf/Makefile 3.8.0/tools/ perf/Makefile 2013-01-03 13:01:59.000000000 +0000 8.0/tools/ perf/Makefile 2013-01-24 18:00:56.000000000 +0000
+++ linux-3.
@@ -190,5 +190,5 @@
'TMP=
$(TRY_CC_MSG) \
echo "$(1)" | \
- $(CC) -x c - $(2) -o "$$TMP" $(TRY_CC_OUTPUT) && echo y; \
+ $(CROSS-
rm -f "$$TMP"')
diff -ur origs/linux-
--- origs/linux-
+++ linux-3.
@@ -64,7 +64,12 @@
CC = $(CROSS_COMPILE)gcc
AR = $(CROSS_COMPILE)ar
-# Additional ARCH settings for x86
+# Additional ARCH settings
+ifeq ($(ARCH),arm)
+ override ARCH := arm
+ NO_PERF_REGS := 0
+ LIBUNWIND_LIBS = -lunwind -lunwind-arm
+endif
Oh and add 'armhf' to the arches for which the libunwind8-dev and libaudit-dev build-deps apply.
Sorry for the low-quality patch, but thought I should record it before it gets forgotten.
Add those too and you'll get the libunwind, dwarf, and curses support in perf.