Hi Linaro android support,
I follow the instructions
https://wiki.linaro.org/LMG/Engineering/UsingPerfOnAndroid to build Perf for android
BUILD PERF
Make sure you've connected to your Android device.
Note: the below instructions requires an userdebug or eng build android system.
# setup your build environment first
# . build/envsetup.sh
# lunch
adb root
adb remount
m -j 32 perf
adb sync
But it failed when execute the command “m -j 32 perf”,
Error log:
~/code/Hikey/android$ m -j 32 perf
============================================
PLATFORM_VERSION_CODENAME=O
PLATFORM_VERSION=O
TARGET_PRODUCT=hikey960
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a73
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a73
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-83-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NYC
OUT_DIR=out
============================================
[38/38] bootstrap out/soong/.minibootstrap/build.ninja.in
[4/4] out/soong/.bootstrap/bin/minibp out/soong/.bootstrap/build.ninja
[513/514] glob vendor/*/*/Android.bp
[49/49] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
out/build-hikey960.ninja is missing, regenerating...
[135/689] including ./device/linaro/hikey/Android.mk ...
gralloc for hikey960
[579/689] including ./system/sepolicy/Android.mk ...
./system/sepolicy/Android.mk:130: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[689/689] including ./tools/tradefederation/core/Android.mk ...
platform_testing/build/tasks/tests/instrumentation_metric_test_list.mk: warning: continuous_instrumentation_metric_tests: Unknown installed file for module perf-setup.sh
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module FrameworksUtilsTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module RecyclerViewTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module SettingsFunctionalTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module LauncherFunctionalTests
platform_testing/build/tasks/tests/native_metric_test_list.mk: warning: continuous_native_metric_tests: Unknown installed file for module perf-setup.sh
[ 99% 903/904] glob system/tools/hidl/test/Android.bp
ninja: error: unknown target 'perf', did you mean 'art'?
15:10:14 ninja failed with: exit status 1
#### failed to build some targets (01:20 (mm:ss)) ####
The AOSP code: repo init -u https://android.googlesource.com/platform/manifest -b master
Could you give some help? thanks
Thanks & Best Regards
Kaiyou Wang