From: Yann E. MORIN Date: Fri, 11 Mar 2016 18:19:57 +0000 (+0100) Subject: linux/perf: conditionally enable support for gz/xz compression X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=96668359444cba8cd4795c5dd376e1e10a7e1de6;p=buildroot.git linux/perf: conditionally enable support for gz/xz compression Signed-off-by: "Yann E. MORIN" Cc: Thomas De Schampheleire Signed-off-by: Thomas Petazzoni --- diff --git a/linux/linux-tool-perf.mk b/linux/linux-tool-perf.mk index d4b8f0ef60..8143474b0a 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