aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Robert Hancock <hancock@sedsystems.ca>2020-03-02 16:49:34 -0600
committerGravatar Peter Korsgaard <peter@korsgaard.com>2020-03-27 23:32:46 +0100
commit3683e2d189a2a331ad7f756f7344eb0f9ecd9a40 (patch)
tree7ea60ad476440d26d4bb22dba0142551246a658f
parentdacaba8e588c2e06e38d4be4953269eda3f3f247 (diff)
downloadbuildroot-3683e2d189a2a331ad7f756f7344eb0f9ecd9a40.tar.gz
buildroot-3683e2d189a2a331ad7f756f7344eb0f9ecd9a40.tar.bz2
linux-tools: perf: Add dependencies for binutils and openssl
perf auto-detects and uses the libbfd (from binutils) and openssl libraries if they are detected and happen to be built before perf is, but if they're not, or if per-package directories are enabled, it won't detect these libraries. Explicitly add dependencies on these packages if they are enabled, and disable the feature if not, so that the behavior is deterministic. Signed-off-by: Robert Hancock <hancock@sedsystems.ca> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> (cherry picked from commit 013cc68bf7cd92fc66dc65f7bb62592dc87123db) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/linux-tools/linux-tool-perf.mk.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/linux-tools/linux-tool-perf.mk.in b/package/linux-tools/linux-tool-perf.mk.in
index 80e00c3c56..7106b622cb 100644
--- a/package/linux-tools/linux-tool-perf.mk.in
+++ b/package/linux-tools/linux-tool-perf.mk.in
@@ -82,6 +82,18 @@ else
PERF_MAKE_FLAGS += NO_LIBELF=1 NO_DWARF=1
endif
+ifeq ($(BR2_PACKAGE_BINUTILS),y)
+PERF_DEPENDENCIES += binutils
+else
+PERF_MAKE_FLAGS += NO_DEMANGLE=1
+endif
+
+ifeq ($(BR2_PACKAGE_OPENSSL),y)
+PERF_DEPENDENCIES += openssl
+else
+PERF_MAKE_FLAGS += NO_LIBCRYPTO=1
+endif
+
ifeq ($(BR2_PACKAGE_ZLIB),y)
PERF_DEPENDENCIES += zlib
else