diff options
author | Chris Phlipot <cphlipot0@gmail.com> | 2016-07-01 01:12:35 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-07-04 19:27:27 -0400 |
commit | 3d0376113ed9cf92b86885bf5102944b61523f5b (patch) | |
tree | 1d355ed692344f2cd859c3d5a394fcedd578e766 /tools/perf/Documentation | |
parent | fd01d06ae33be63cff7d133e650cd1eb32f1d548 (diff) |
perf tools: Update android build documentation
Update the android build documentation according to recent android build
fixes. The instructions for step 1a and step 2 were updated to work with
NDK version 11(oldest supported version) and NDK version 12(current
version).
Signed-off-by: Chris Phlipot <cphlipot0@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1467349955-1135-5-git-send-email-cphlipot0@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/Documentation')
-rw-r--r-- | tools/perf/Documentation/android.txt | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/perf/Documentation/android.txt b/tools/perf/Documentation/android.txt index 8484c3a04a6a..24a59998fc91 100644 --- a/tools/perf/Documentation/android.txt +++ b/tools/perf/Documentation/android.txt | |||
@@ -12,14 +12,14 @@ Set the NDK variable to point to the path where you installed the NDK: | |||
12 | 12 | ||
13 | 2. Set cross-compiling environment variables for NDK toolchain and sysroot. | 13 | 2. Set cross-compiling environment variables for NDK toolchain and sysroot. |
14 | For arm: | 14 | For arm: |
15 | export NDK_TOOLCHAIN=${NDK}/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi- | 15 | export NDK_TOOLCHAIN=${NDK}/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi- |
16 | export NDK_SYSROOT=${NDK}/platforms/android-9/arch-arm | 16 | export NDK_SYSROOT=${NDK}/platforms/android-24/arch-arm |
17 | For x86: | 17 | For x86: |
18 | export NDK_TOOLCHAIN=${NDK}/toolchains/x86-4.6/prebuilt/linux-x86/bin/i686-linux-android- | 18 | export NDK_TOOLCHAIN=${NDK}/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/i686-linux-android- |
19 | export NDK_SYSROOT=${NDK}/platforms/android-9/arch-x86 | 19 | export NDK_SYSROOT=${NDK}/platforms/android-24/arch-x86 |
20 | 20 | ||
21 | This method is not working for Android NDK versions up to Revision 8b. | 21 | This method is only tested for Android NDK versions Revision 11b and later. |
22 | perf uses some bionic enhancements that are not included in these NDK versions. | 22 | perf uses some bionic enhancements that are not included in prior NDK versions. |
23 | You can use method (b) described below instead. | 23 | You can use method (b) described below instead. |
24 | 24 | ||
25 | (b). Use the Android source tree | 25 | (b). Use the Android source tree |
@@ -49,9 +49,9 @@ II. Compile perf for Android | |||
49 | ------------------------------------------------ | 49 | ------------------------------------------------ |
50 | You need to run make with the NDK toolchain and sysroot defined above: | 50 | You need to run make with the NDK toolchain and sysroot defined above: |
51 | For arm: | 51 | For arm: |
52 | make ARCH=arm CROSS_COMPILE=${NDK_TOOLCHAIN} CFLAGS="--sysroot=${NDK_SYSROOT}" | 52 | make WERROR=0 ARCH=arm CROSS_COMPILE=${NDK_TOOLCHAIN} EXTRA_CFLAGS="-pie --sysroot=${NDK_SYSROOT}" |
53 | For x86: | 53 | For x86: |
54 | make ARCH=x86 CROSS_COMPILE=${NDK_TOOLCHAIN} CFLAGS="--sysroot=${NDK_SYSROOT}" | 54 | make WERROR=0 ARCH=x86 CROSS_COMPILE=${NDK_TOOLCHAIN} EXTRA_CFLAGS="-pie --sysroot=${NDK_SYSROOT}" |
55 | 55 | ||
56 | III. Install perf | 56 | III. Install perf |
57 | ----------------------------------------------- | 57 | ----------------------------------------------- |