Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

James Clark and committed by
Arnaldo Carvalho de Melo
523471c5 cff602f6

+5
+5
tools/perf/tests/make
··· 124 124 make_minimal += NO_SDT=1 NO_JVMTI=1 NO_LIBZSTD=1 125 125 make_minimal += NO_LIBCAP=1 NO_CAPSTONE=1 126 126 127 + # binutils 2_42 and newer have bfd_thread_init() 128 + new_libbfd := $(shell echo '#include <bfd.h>' | $(CC) -E -x c - | grep bfd_thread_init) 129 + 127 130 # $(run) contains all available tests 128 131 run := make_pure 129 132 # Targets 'clean all' can be run together only through top level ··· 140 137 endif 141 138 run += make_python_perf_so 142 139 run += make_debug 140 + ifneq ($(new_libbfd),) 143 141 run += make_nondistro 142 + endif 144 143 run += make_extra_tests 145 144 run += make_jevents_all 146 145 run += make_no_bpf_skel