title: Compile linux tool perf for android
body: <p>I want to compile pref for android device and i did that base on the guide <a href="http://lxr.free-electrons.com/source/tools/perf/Documentation/android.txt">the guide</a>. One i set NDK environment use Android NDK r9</p>
  
  <pre><code>export NDK_TOOLCHAIN=${NDK}/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-
  
  export NDK_SYSROOT=${NDK}/platforms/android-9/arch-arm
  </code></pre>
  
  <p>I run make with tool</p>
  
  <pre><code>make ARCH=arm CROSS_COMPILE=${NDK_TOOLCHAIN} CFLAGS="--sysroot=${NDK_SYSROOT}"
  </code></pre>
  
  <p>I recieve the error, so can you help me?</p>
  
  <blockquote>
    <p>Android NDK: NDK_TOOLCHAIN is defined to the unsupported value android-ndk-r9/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-<br>
    Android NDK: Please use one of the following values: arm-linux-androideabi-4.6 arm-linux-androideabi-4.8 arm-linux-androideabi-clang3.2 arm-linux-androideabi-clang3.3 mipsel-linux-android-4.6 mipsel-linux-android-4.8 mipsel-linux-android-clang3.2 mipsel-linux-android-clang3.3 x86-4.6 x86-4.8 x86-clang3.2 x86-clang3.3<br>
    build/core/init.mk:555: <em>*</em> Android NDK: Aborting    .  Stop.</p>
  </blockquote>