mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-17 22:23:45 -04:00
perf build: Skip nondistro build test if libbfd is old
Non distro builds now require a new version of libbfd, so skip the test if the library is too old. The grep test isn't a strong as the feature test in test-libbfd-threadsafe.c, but there seems to be precedent for feature testing this way here and it's good enough for the build-test rule. If the function exists but returns an error it will be picked up by the feature test when attempting the build. Signed-off-by: James Clark <james.clark@linaro.org> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Bill Wendling <morbo@google.com> Cc: Ian Rogers <irogers@google.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Justin Stitt <justinstitt@google.com> Cc: Leo Yan <leo.yan@arm.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Nathan Chancellor <nathan@kernel.org> Cc: Nick Desaulniers <nick.desaulniers+lkml@gmail.com> Cc: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
cff602f659
commit
523471c516
@@ -124,6 +124,9 @@ make_minimal += NO_LIBDW_DWARF_UNWIND=1 NO_LIBBPF=1
|
||||
make_minimal += NO_SDT=1 NO_JVMTI=1 NO_LIBZSTD=1
|
||||
make_minimal += NO_LIBCAP=1 NO_CAPSTONE=1
|
||||
|
||||
# binutils 2_42 and newer have bfd_thread_init()
|
||||
new_libbfd := $(shell echo '#include <bfd.h>' | $(CC) -E -x c - | grep bfd_thread_init)
|
||||
|
||||
# $(run) contains all available tests
|
||||
run := make_pure
|
||||
# Targets 'clean all' can be run together only through top level
|
||||
@@ -137,7 +140,9 @@ MAKE_F := $(MAKE) -f $(MK)
|
||||
endif
|
||||
run += make_python_perf_so
|
||||
run += make_debug
|
||||
ifneq ($(new_libbfd),)
|
||||
run += make_nondistro
|
||||
endif
|
||||
run += make_extra_tests
|
||||
run += make_jevents_all
|
||||
run += make_no_bpf_skel
|
||||
|
||||
Reference in New Issue
Block a user