summaryrefslogtreecommitdiffstats
path: root/package/lttng-tools/lttng-tools.mk
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-02-04 15:48:46 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2012-02-05 11:16:33 +0100
commit4a6f72650681ea55370cbe21ef02aca266daf5ea (patch)
tree0224c8a69b5c1b11a589907158e26d614c123c0c /package/lttng-tools/lttng-tools.mk
parent3e40b680fb485eacc3d9c1d64cbce2140fb47178 (diff)
downloadbuildroot-novena-4a6f72650681ea55370cbe21ef02aca266daf5ea.tar.gz
buildroot-novena-4a6f72650681ea55370cbe21ef02aca266daf5ea.zip
lttng-tools: make the dependency on lttng-libust optional
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/lttng-tools/lttng-tools.mk')
-rw-r--r--package/lttng-tools/lttng-tools.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/package/lttng-tools/lttng-tools.mk b/package/lttng-tools/lttng-tools.mk
index bcf2f678f..8e6fc1abc 100644
--- a/package/lttng-tools/lttng-tools.mk
+++ b/package/lttng-tools/lttng-tools.mk
@@ -6,8 +6,15 @@ LTTNG_TOOLS_SOURCE = lttng-tools-$(LTTNG_TOOLS_VERSION).tar.bz2
# dependency. However, having the babeltrace utilities built for the
# host is very useful, since those tools allow to convert the binary
# trace format into an human readable format.
-LTTNG_TOOLS_DEPENDENCIES = liburcu popt host-lttng-babeltrace lttng-libust
+LTTNG_TOOLS_DEPENDENCIES = liburcu popt host-lttng-babeltrace
LTTNG_AUTORECONF = YES
+ifeq ($(BR2_PACKAGE_LTTNG_LIBUST),y)
+LTTNG_TOOLS_CONF_OPT += --enable-lttng-ust
+LTTNG_TOOLS_DEPENDENCIES += lttng-libust
+else
+LTTNG_TOOLS_CONF_OPT += --disable-lttng-ust
+endif
+
$(eval $(call AUTOTARGETS))