aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2025-06-20 18:24:35 -0300
committerNamhyung Kim <namhyung@kernel.org>2025-06-24 10:27:50 -0700
commit970ae86307718c347aff8fe4bf6e780bcce26c58 (patch)
tree85538877247a1d2a4798a5f79b40f54a748dbec7 /tools/perf
parentperf build: Add the libpfm devel fedora package name to the hint (diff)
downloadlinux-970ae86307718c347aff8fe4bf6e780bcce26c58.tar.gz
linux-970ae86307718c347aff8fe4bf6e780bcce26c58.zip
perf build: The bfd features are opt-in, stop testing for them by default
These are leftovers noticed while updating a build container. We don't need those so that test-all.c can build and thus speed up the feature detection. Test for those features only if the user asks for BUILD_NONDISTRO=1 to build with libbfd. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Reviewed-by: James Clark <james.clark@linaro.org> Reviewed-by: Ian Rogers <irogers@google.com> Link: https://lore.kernel.org/r/20250620212435.93846-4-acme@kernel.org Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/Makefile.config5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config
index 2672c249eadf..24736b0bbb30 100644
--- a/tools/perf/Makefile.config
+++ b/tools/perf/Makefile.config
@@ -926,6 +926,8 @@ ifneq ($(NO_JEVENTS),1)
endif
ifdef BUILD_NONDISTRO
+ $(call feature_check,libbfd)
+
ifeq ($(feature-libbfd), 1)
EXTLIBS += -lbfd -lopcodes
else
@@ -954,6 +956,9 @@ ifdef BUILD_NONDISTRO
CFLAGS += -DHAVE_LIBBFD_SUPPORT
CXXFLAGS += -DHAVE_LIBBFD_SUPPORT
+
+ $(call feature_check,libbfd-buildid)
+
ifeq ($(feature-libbfd-buildid), 1)
CFLAGS += -DHAVE_LIBBFD_BUILDID_SUPPORT
else