diff options
author | Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> | 2012-12-21 18:20:15 +0400 |
---|---|---|
committer | Andrey Konovalov <andrey.konovalov@linaro.org> | 2013-01-03 17:08:44 +0400 |
commit | 6b1eb436faf028476752bf4ecd68bf85044db59f (patch) | |
tree | 28c35efc00423aaea59ab0adc6d377d5a2c35b75 | |
parent | cb14ab6061e9defe0ae9e784654e375949d336a7 (diff) |
perf: get rid of the <asm/bitsperlong.h> includetracking-llct-v3.7-misc-fixes-linux-linaro-core-3.7-20130103.0
The <asm/bitsperlong.h> include seems to cause trouble in some arm64 configs.
Also make libtraceevent to see Bionic -isystem flags passed to us.
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
-rw-r--r-- | tools/perf/Makefile | 2 | ||||
-rw-r--r-- | tools/perf/compat-android.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index efd3e801f3a..653627dcf99 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile @@ -503,6 +503,8 @@ ifneq ($(call try-cc,$(SOURCE_LIBELF),$(FLAGS_LIBELF)),y) # That works too, but needs a bit of special treatment ANDROID_CFLAGS := -DANDROID -DHAVE_STRLCPY -include $(CURDIR)/compat-android.h BASIC_CFLAGS += $(ANDROID_CFLAGS) + # Make libtraceevent to see Bionic -isystem flags passed to us + ANDROID_CFLAGS += $(EXTRA_CFLAGS) ANDROID := 1 else msg := $(error No gnu/libc-version.h found, please install glibc-dev[el]/glibc-static); diff --git a/tools/perf/compat-android.h b/tools/perf/compat-android.h index fce9573d257..b76adae2773 100644 --- a/tools/perf/compat-android.h +++ b/tools/perf/compat-android.h @@ -38,8 +38,8 @@ typedef uint64_t u64; #endif #endif #define __deprecated -#include <asm-generic/bitsperlong.h> +#include <linux/bitops.h> #undef BITS_PER_LONG /* Something seems to define this incorrectly */ #define BITS_PER_LONG _BITSIZE |