From: Peter Seiderer Date: Tue, 17 Nov 2020 22:34:36 +0000 (+0100) Subject: package/libcamera: add optional lttng-libust dependency X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cab81477dcd4450e2c56464155f7296b495ef7ab;p=buildroot.git package/libcamera: add optional lttng-libust dependency Add optional lttng-libust support and enable tracing support in case. Signed-off-by: Peter Seiderer Signed-off-by: Thomas Petazzoni --- diff --git a/package/libcamera/libcamera.mk b/package/libcamera/libcamera.mk index aed5c6e83c..ae074c2893 100644 --- a/package/libcamera/libcamera.mk +++ b/package/libcamera/libcamera.mk @@ -18,7 +18,6 @@ LIBCAMERA_CONF_OPTS = \ -Dandroid=disabled \ -Ddocumentation=disabled \ -Dtest=false \ - -Dtracing=disabled \ -Dwerror=false LIBCAMERA_INSTALL_STAGING = YES LIBCAMERA_LICENSE = \ @@ -86,4 +85,11 @@ ifeq ($(BR2_PACKAGE_HAS_UDEV),y) LIBCAMERA_DEPENDENCIES += udev endif +ifeq ($(BR2_PACKAGE_LTTNG_LIBUST),y) +LIBCAMERA_CONF_OPTS += -Dtracing=enabled +LIBCAMERA_DEPENDENCIES += lttng-libust +else +LIBCAMERA_CONF_OPTS += -Dtracing=disabled +endif + $(eval $(meson-package))