summaryrefslogtreecommitdiff
path: root/linux/linux-tool-perf.mk
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2016-03-11 19:19:57 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-03-19 14:38:14 +0100
commit96668359444cba8cd4795c5dd376e1e10a7e1de6 (patch)
tree0dc2209db74755293f385a319292c3374d0e58f4 /linux/linux-tool-perf.mk
parent2b1d5df1f2a352eac48cd054dc4b4c1344467b81 (diff)
linux/perf: conditionally enable support for gz/xz compression
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas De Schampheleire <patrickdepinguin@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'linux/linux-tool-perf.mk')
-rw-r--r--linux/linux-tool-perf.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/linux/linux-tool-perf.mk b/linux/linux-tool-perf.mk
index d4b8f0ef6..8143474b0 100644
--- a/linux/linux-tool-perf.mk
+++ b/linux/linux-tool-perf.mk
@@ -75,6 +75,19 @@ else
PERF_MAKE_FLAGS += NO_LIBELF=1 NO_DWARF=1
endif
+ifeq ($(BR2_PACKAGE_ZLIB),y)
+PERF_DEPENDENCIES += zlib
+else
+PERF_MAKE_FLAGS += NO_ZLIB=1
+endif
+
+# lzma is provided by xz
+ifeq ($(BR2_PACKAGE_XZ),y)
+PERF_DEPENDENCIES += xz
+else
+PERF_MAKE_FLAGS += NO_LZMA=1
+endif
+
# We really do not want to build the perf documentation, because it
# has stringent requirement on the documentation generation tools,
# like xmlto and asciidoc), which may be lagging behind on some