From cab81477dcd4450e2c56464155f7296b495ef7ab Mon Sep 17 00:00:00 2001 From: Peter Seiderer Date: Tue, 17 Nov 2020 23:34:36 +0100 Subject: [PATCH] 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 --- package/libcamera/libcamera.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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)) -- 2.30.2