15ce62bbf3
Add the --enable-python-agent configure option to build the LTTng-UST Python agent when Python 2 or Python 3 is also part of the BR image. The LTTng-UST Python agent is a Python package which adds LTTng tracing to Python's standard logging when imported. Disable the Python agent otherwise. Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
28 lines
986 B
Makefile
28 lines
986 B
Makefile
################################################################################
|
|
#
|
|
# lttng-libust
|
|
#
|
|
################################################################################
|
|
|
|
LTTNG_LIBUST_SITE = http://lttng.org/files/lttng-ust
|
|
LTTNG_LIBUST_VERSION = 2.8.1
|
|
LTTNG_LIBUST_SOURCE = lttng-ust-$(LTTNG_LIBUST_VERSION).tar.bz2
|
|
LTTNG_LIBUST_LICENSE = LGPLv2.1, MIT (system headers), GPLv2 (liblttng-ust-ctl/ustctl.c used by lttng-sessiond)
|
|
LTTNG_LIBUST_LICENSE_FILES = COPYING
|
|
LTTNG_LIBUST_INSTALL_STAGING = YES
|
|
LTTNG_LIBUST_DEPENDENCIES = liburcu util-linux
|
|
LTTNG_LIBUST_CONF_OPTS += --disable-man-pages
|
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON),y)
|
|
LTTNG_LIBUST_DEPENDENCIES += python
|
|
LTTNG_LIBUST_CONF_OPTS += --enable-python-agent
|
|
else ifeq ($(BR2_PACKAGE_PYTHON3),y)
|
|
LTTNG_LIBUST_DEPENDENCIES += python3
|
|
LTTNG_LIBUST_CONF_OPTS += --enable-python-agent
|
|
else
|
|
LTTNG_LIBUST_CONF_ENV = am_cv_pathless_PYTHON="none"
|
|
LTTNG_LIBUST_CONF_OPTS += --disable-python-agent
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|