Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compile linux tool perf for android

I want to compile pref for android device and i did that base on the guide the guide. One i set NDK environment use Android NDK r9

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

I run make with tool

make ARCH=arm CROSS_COMPILE=${NDK_TOOLCHAIN} CFLAGS="--sysroot=${NDK_SYSROOT}"

I recieve the error, so can you help me?

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-
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
build/core/init.mk:555: * Android NDK: Aborting . Stop.

like image 575
Hiep Trinh Avatar asked Oct 18 '13 02:10

Hiep Trinh


2 Answers

Have you looked at external/linux-tools-perf/ inside android repository?

https://android.googlesource.com/platform/external/linux-tools-perf/

like image 96
Milind Dumbare Avatar answered Oct 21 '22 05:10

Milind Dumbare


Android bundles the simpleperf tool which is almost a drop-in replacement for many usages of perf/linux-tool-perf.

https://developer.android.com/ndk/guides/simpleperf

like image 25
mhansen Avatar answered Oct 21 '22 04:10

mhansen