mirror-linux/tools/build/feature
Leo Yan ed33e5e43c perf build: Correct CROSS_ARCH for clang
Clang's -dumpmachine outputs "aarch64-unknown-linux-gnu", which does not
match the MultiArch convention. This prevents the build system from
detecting installed packages.

Fix by stripping the trailing '-' from CROSS_COMPILE when setting
CROSS_ARCH.

Signed-off-by: Leo Yan <leo.yan@arm.com>
Reviewed-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20251006-perf_build_android_ndk-v3-3-4305590795b2@arm.com
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Albert Ou <aou@eecs.berkeley.edu>
Cc: Alexandre Ghiti <alex@ghiti.fr>
Cc: Nick Desaulniers <nick.desaulniers+lkml@gmail.com>
Cc: Justin Stitt <justinstitt@google.com>
Cc: Bill Wendling <morbo@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: James Clark <james.clark@linaro.org>
Cc: linux-riscv@lists.infradead.org
Cc: llvm@lists.linux.dev
Cc: Paul Walmsley <paul.walmsley@sifive.com>
Cc: linux-kernel@vger.kernel.org
Cc: linux-perf-users@vger.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2025-10-06 16:49:25 -03:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
Makefile perf build: Correct CROSS_ARCH for clang 2025-10-06 16:49:25 -03:00
test-all.c tools build: Remove get_current_dir_name feature check 2025-10-03 16:49:11 -03:00
test-backtrace.c tools build: Fix a number of Wconversion warnings 2025-02-12 20:23:05 -08:00
test-bionic.c
test-bpf.c tools build: Fix a number of Wconversion warnings 2025-02-12 20:23:05 -08:00
test-clang-bpf-co-re.c tools/bpftool: Generalize BPF skeleton support and generate vmlinux.h 2020-06-22 17:01:48 -07:00
test-compile.c
test-cplus-demangle.c
test-cxa-demangle.cpp tools build: Add feature test for abi::__cxa_demangle 2023-03-14 08:29:46 -03:00
test-disassembler-four-args.c
test-disassembler-init-styled.c tools build: Add feature test for init_disassemble_info API changes 2022-08-01 15:29:10 -03:00
test-eventfd.c
test-file-handle.c perf tools: Add file-handle feature test 2020-04-03 09:37:55 -03:00
test-fortify-source.c
test-get_cpuid.c
test-gettid.c
test-glibc.c tools build: Fix a number of Wconversion warnings 2025-02-12 20:23:05 -08:00
test-gtk2-infobar.c
test-gtk2.c
test-hello.c
test-jvmti-cmlr.c
test-jvmti.c
test-libaio.c
test-libbabeltrace.c
test-libbfd-buildid.c tools features: Add feature test to check if libbfd has buildid support 2020-09-04 14:38:15 -03:00
test-libbfd.c
test-libbpf.c tools build: Pass libbpf feature only if libbpf 1.0+ 2023-03-14 08:29:33 -03:00
test-libcap.c Revert "tools build: Remove leftover libcap tests that prevents fast path feature detection from working" 2024-08-29 11:51:43 -03:00
test-libcapstone.c perf: build: introduce the libcapstone 2024-02-20 18:06:25 -08:00
test-libcpupower.c tools/build: Add libcpupower dependency detection 2024-10-17 17:13:15 -04:00
test-libdebuginfod.c tools build: Fix a number of Wconversion warnings 2025-02-12 20:23:05 -08:00
test-libdw.c tools build: Fix a number of Wconversion warnings 2025-02-12 20:23:05 -08:00
test-libelf-gelf_getnote.c tools build: Fix a number of Wconversion warnings 2025-02-12 20:23:05 -08:00
test-libelf-getphdrnum.c
test-libelf-getshdrstrndx.c
test-libelf-zstd.c tools build: Add feature test for libelf with ZSTD 2024-12-18 16:24:32 -03:00
test-libelf.c tools build: Fix a number of Wconversion warnings 2025-02-12 20:23:05 -08:00
test-libnuma.c
test-libopencsd.c perf cs-etm: Bump minimum OpenCSD version to ensure a bugfix is present 2023-11-27 10:21:27 -03:00
test-libperl.c
test-libpfm4.c tools feature: Add support for detecting libpfm4 2020-05-05 16:35:31 -03:00
test-libpython.c
test-libslang.c
test-libtraceevent.c perf build: Include libtraceevent headers directly indicated by pkg-config 2024-11-08 22:42:57 -08:00
test-libtracefs.c perf build: Use pkg-config for feature check for libtrace{event,fs} 2024-06-21 16:19:03 -07:00
test-libunwind-aarch64.c
test-libunwind-arm.c
test-libunwind-debug-frame-aarch64.c
test-libunwind-debug-frame-arm.c
test-libunwind-debug-frame.c
test-libunwind-x86.c
test-libunwind-x86_64.c
test-libunwind.c
test-libzstd.c
test-llvm-perf.cpp perf build: Autodetect minimum required llvm-dev version 2024-09-10 17:32:46 -03:00
test-llvm.cpp tools build: Fix llvm feature detection, still used by bpftool 2023-10-19 22:33:58 -03:00
test-lzma.c tools build: Fix a number of Wconversion warnings 2025-02-12 20:23:05 -08:00
test-numa_num_possible_cpus.c
test-pthread-attr-setaffinity-np.c
test-pthread-barrier.c
test-reallocarray.c
test-scandirat.c tools build: Add a feature test for scandirat(), that is not implemented so far in musl and uclibc 2023-04-04 13:18:17 -03:00
test-sched_getcpu.c
test-sdt.c
test-setns.c
test-stackprotector-all.c
test-timerfd.c
test-zlib.c