From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751900AbcGAFOf (ORCPT ); Fri, 1 Jul 2016 01:14:35 -0400 Received: from mail-pa0-f65.google.com ([209.85.220.65]:34653 "EHLO mail-pa0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750769AbcGAFOd (ORCPT ); Fri, 1 Jul 2016 01:14:33 -0400 From: Chris Phlipot To: acme@kernel.org, peterz@infradead.org, mingo@redhat.com Cc: linux-kernel@vger.kernel.org, Chris Phlipot Subject: [PATCH 0/4] perf tool: Fix Android build Date: Thu, 30 Jun 2016 22:12:31 -0700 Message-Id: <1467349955-1135-1-git-send-email-cphlipot0@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It looks like the tools/perf/Documentation/android.txt hasn't been updated in a while. Following the instructions in this document to cross-compile perf for Android results in several build errors. This patch-set aims to fix/workaround the incompatibilities introduced since the android perf build was last tested. The changes were tested to build for ubuntu 16.04 as well as cross compile for android using NDK Versions 11 and 12. to test android arm cross compile: $ wget http://dl.google.com/android/repository/android-ndk-r12-linux-x86_64.zip $ unzip android-ndk-r12-linux-x86_64.zip $ export NDK_TOOLCHAIN=`pwd`/android-ndk-r12/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi- $ export NDK_SYSROOT=`pwd`/android-ndk-r12/platforms/android-24/arch-arm $ make WERROR=0 ARCH=arm CROSS_COMPILE=${NDK_TOOLCHAIN} EXTRA_CFLAGS="-pie --sysroot=${NDK_SYSROOT}" Chris Phlipot (4): tools lib api: Respect WERROR=0 for build tools lib subcmd: Respect WERROR=0 for build perf tool: Fix build when sysconf doesn't support cache line size perf tool: Update android build documentation tools/lib/api/Makefile | 8 +++++++- tools/lib/subcmd/Makefile | 8 +++++++- tools/perf/Documentation/android.txt | 16 ++++++++-------- tools/perf/perf.c | 4 ++++ 4 files changed, 26 insertions(+), 10 deletions(-) -- 2.7.4