Skip to contentSkip to conversation

Documentation: insert an additional information to android.txt

PATCH In review Joonsoo Kim 2 participants 3 messages Oct 29, 2012 – Nov 14, 2012 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation: insert an additional information to android.txt

Without defining ARCH=arm, building a perf for Android ARM will be failed, because it needs architecture specific files.
So add related information to a document.

Cc Irina Tirdea <[email protected]>
Cc David Ahern <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Paul Mackerras <[email protected]>
Cc Pekka Enberg <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Steven Rostedt <[email protected]>

---
It is based on git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git,
perf-core-for-mingo branch.

tools/perf/Documentation/android.txt +4 -1
index a39dbbb..8484c3a 100644
@@ -48,7 +48,10 @@ For x86:
 II. Compile perf for Android
 ------------------------------------------------
 You need to run make with the NDK toolchain and sysroot defined above:
-  make CROSS_COMPILE=${NDK_TOOLCHAIN} CFLAGS="--sysroot=${NDK_SYSROOT}"
+For arm:
+  make ARCH=arm CROSS_COMPILE=${NDK_TOOLCHAIN} CFLAGS="--sysroot=${NDK_SYSROOT}"
+For x86:
+  make ARCH=x86 CROSS_COMPILE=${NDK_TOOLCHAIN} CFLAGS="--sysroot=${NDK_SYSROOT}"
 
 III. Install perf
 -----------------------------------------------
Signature · 1 line
1.7.9.5
#2 lore raw

[tip:perf/core] perf tools: Add info about cross compiling for Android ARM

In reply to Joonsoo Kim
Commit-ID:  cd69ef88a7cbe5ad404454ed8f491e6b16b4e86f
Gitweb:     http://git.kernel.org/tip/cd69ef88a7cbe5ad404454ed8f491e6b16b4e86f
Author:     Joonsoo Kim <[email protected]>
AuthorDate: Mon, 29 Oct 2012 22:41:06 +0900
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Wed, 31 Oct 2012 12:17:49 -0200

perf tools: Add info about cross compiling for Android ARM

Without defining ARCH=arm, building perf for Android ARM will fail, because it needs architecture specific files.

So add related relevant information to the android documentation.

---
 tools/perf/Documentation/android.txt |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
tools/perf/Documentation/android.txt +4 -1
index a39dbbb..8484c3a 100644
@@ -48,7 +48,10 @@ For x86:
 II. Compile perf for Android
 ------------------------------------------------
 You need to run make with the NDK toolchain and sysroot defined above:
-  make CROSS_COMPILE=${NDK_TOOLCHAIN} CFLAGS="--sysroot=${NDK_SYSROOT}"
+For arm:
+  make ARCH=arm CROSS_COMPILE=${NDK_TOOLCHAIN} CFLAGS="--sysroot=${NDK_SYSROOT}"
+For x86:
+  make ARCH=x86 CROSS_COMPILE=${NDK_TOOLCHAIN} CFLAGS="--sysroot=${NDK_SYSROOT}"
 
 III. Install perf
 -----------------------------------------------