From 99cc53f3f4b473ccefae06edd85f5be1cf4e155c Mon Sep 17 00:00:00 2001 From: Peter Seiderer Date: Tue, 16 Jun 2020 20:59:51 +0200 Subject: [PATCH] package/libcamera: add v4l2 compatibility layer option Signed-off-by: Peter Seiderer Signed-off-by: Yann E. MORIN --- package/libcamera/Config.in | 5 +++++ package/libcamera/libcamera.mk | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/package/libcamera/Config.in b/package/libcamera/Config.in index 56ca5aaf18..960d78b82e 100644 --- a/package/libcamera/Config.in +++ b/package/libcamera/Config.in @@ -16,6 +16,11 @@ menuconfig BR2_PACKAGE_LIBCAMERA if BR2_PACKAGE_LIBCAMERA +config BR2_PACKAGE_LIBCAMERA_V4L2 + bool "libcamera v4l2 compatibility layer" + help + libcamera v4l2 compatibility layer + config BR2_PACKAGE_LIBCAMERA_HAS_PIPELINE bool diff --git a/package/libcamera/libcamera.mk b/package/libcamera/libcamera.mk index 1d3b382a32..fb0e54785b 100644 --- a/package/libcamera/libcamera.mk +++ b/package/libcamera/libcamera.mk @@ -15,8 +15,7 @@ LIBCAMERA_DEPENDENCIES = \ LIBCAMERA_CONF_OPTS = \ -Dandroid=false \ -Ddocumentation=false \ - -Dtest=false \ - -Dv4l2=false + -Dtest=false LIBCAMERA_INSTALL_STAGING = yes LIBCAMERA_LICENSE = \ LGPL-2.1+ (library), \ @@ -37,6 +36,12 @@ LIBCAMERA_LICENSE_FILES = \ LICENSES/CC0-1.0.txt \ LICENSES/CC-BY-SA-4.0.txt +ifeq ($(BR2_PACKAGE_LIBCAMERA_V4L2),y) +LIBCAMERA_CONF_OPTS = -Dv4l2=true +else +LIBCAMERA_CONF_OPTS = -Dv4l2=false +endif + LIBCAMERA_PIPELINES-$(BR2_PACKAGE_LIBCAMERA_PIPELINE_IPU3) += ipu3 ifeq ($(BR2_PACKAGE_LIBCAMERA_PIPELINE_RASPBERRYPI),y) LIBCAMERA_PIPELINES-y += raspberrypi -- 2.30.2