diff options
author | Mark Rutland <[email protected]> | 2014-01-15 10:44:08 +0000 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2014-01-15 15:15:05 -0300 |
commit | a8a5cd8b472ca20e5b8fa649c43b3756867322f8 (patch) | |
tree | e1fb04abcdba12be11b86729df2f8da1130eda60 /tools/perf/util/trace-event-scripting.c | |
parent | 8d0c2224ca6e04ba51c403805e7e1e2ca536520b (diff) |
perf: tools: Fix cross building
Currently the feature-checks Makefile does not inherit $(CC), and calls
cc rather than $(CROSS_COMPILE)gcc. Thus the feature checks invoke the
native toolchain rather than the cross toolchain, and can identify
features as available when they are not. This can break the build.
Additionally the native pkg-config is always called as opposed to
$(CROSS_COMPILE)pkg-config, so the wrong flags and paths may be passed
to the cross compiler.
This patch passes CROSS_COMPILE down to the feature-checks Makefile, and
forces its use. Additionally pkg-config is replaced with
$(CROSS_COMPILE)pkg-config via a new $(PKG_CONFIG) variable. This patch
has been build tested on x86_64 and arm.
Signed-off-by: Mark Rutland <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Will Deacon <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions