linux/tools/perf/config/feature-checks
Mark Rutland a8a5cd8b47 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 <mark.rutland@arm.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Will Deacon <will.deacon@arm.com>
Link: http://lkml.kernel.org/r/1389782648-4417-4-git-send-email-mark.rutland@arm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2014-01-15 15:15:05 -03:00
..
.gitignore perf config: Ignore generated files in feature-checks 2013-12-23 16:49:51 -03:00
Makefile perf: tools: Fix cross building 2014-01-15 15:15:05 -03:00
test-all.c perf tools: Include test-stackprotector-all.c in test-all 2013-12-02 16:19:26 -03:00
test-backtrace.c tools/perf/build: Harmonize the style of the feature testcases 2013-10-09 08:49:03 +02:00
test-bionic.c tools/perf/build: Split out feature check: 'bionic' 2013-10-09 08:48:33 +02:00
test-cplus-demangle.c tools/perf/build: Harmonize the style of the feature testcases 2013-10-09 08:49:03 +02:00
test-dwarf.c tools/perf/build: Harmonize the style of the feature testcases 2013-10-09 08:49:03 +02:00
test-fortify-source.c tools/perf/build: Split out feature check: 'fortify-source' 2013-10-09 08:48:32 +02:00
test-glibc.c tools/perf/build: Harmonize the style of the feature testcases 2013-10-09 08:49:03 +02:00
test-gtk2-infobar.c tools/perf/build: Clean up various testcases 2013-10-09 08:48:58 +02:00
test-gtk2.c tools/perf/build: Clean up various testcases 2013-10-09 08:48:58 +02:00
test-hello.c tools/perf/build: Add feature check core code 2013-10-09 08:48:28 +02:00
test-libaudit.c tools/perf/build: Harmonize the style of the feature testcases 2013-10-09 08:49:03 +02:00
test-libbfd.c tools/perf/build: Harmonize the style of the feature testcases 2013-10-09 08:49:03 +02:00
test-libelf-getphdrnum.c tools/perf/build: Harmonize the style of the feature testcases 2013-10-09 08:49:03 +02:00
test-libelf-mmap.c tools/perf/build: Harmonize the style of the feature testcases 2013-10-09 08:49:03 +02:00
test-libelf.c tools/perf/build: Harmonize the style of the feature testcases 2013-10-09 08:49:03 +02:00
test-libnuma.c tools/perf/build: Harmonize the style of the feature testcases 2013-10-09 08:49:03 +02:00
test-libperl.c tools/perf/build: Split out feature check: 'libperl' 2013-10-09 08:48:43 +02:00
test-libpython-version.c tools/perf/build: Split out feature check: 'libpython-version' 2013-10-09 08:48:44 +02:00
test-libpython.c tools/perf/build: Harmonize the style of the feature testcases 2013-10-09 08:49:03 +02:00
test-libslang.c tools/perf/build: Split out feature check: 'libslang' 2013-10-09 08:48:41 +02:00
test-libunwind-debug-frame.c Merge branch 'for-linus' of git://git.linaro.org/people/rmk/linux-arm 2013-11-14 08:51:29 +09:00
test-libunwind.c tools/perf/build: Clean up various testcases 2013-10-09 08:48:58 +02:00
test-on-exit.c perf tools: Fix test_on_exit for 32-bit build 2013-10-21 11:19:42 -03:00
test-stackprotector-all.c tools/perf/build: Split out feature check: 'stackprotector-all' 2013-10-09 08:48:30 +02:00
test-timerfd.c perf kvm: Disable live command if timerfd is not supported 2013-11-05 10:03:22 -03:00