diff mbox series

[meta-oe,3/6] libcamera: add new package for lc-compliance

Message ID 20260506111552.2782-3-jose.quaresma@foundries.io
State Under Review
Headers show
Series [meta-oe,1/6] libyuv: add recipe | expand

Commit Message

Jose Quaresma May 6, 2026, 11:15 a.m. UTC
lc-compliance is a libcamera compliance testing tool designed to ensure
that cameras and their drivers function correctly within the software stack,
acting as a functional system test to validate real-world use cases.
This tool helps detect regressions and verifies that the libcamera API
is being used correctly.

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
---
 .../recipes-multimedia/libcamera/libcamera_0.6.0.bb          | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.6.0.bb b/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.6.0.bb
index 1f9e21e45b..f1e138c4c7 100644
--- a/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.6.0.bb
+++ b/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.6.0.bb
@@ -21,10 +21,11 @@  PE = "1"
 DEPENDS = "python3-pyyaml-native python3-jinja2-native python3-ply-native python3-jinja2-native udev gnutls chrpath-native libevent libyaml"
 DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'qt', 'qtbase qtbase-native', '', d)}"
 
-PACKAGES =+ "${PN}-gst ${PN}-pycamera"
+PACKAGES =+ "${PN}-compliance ${PN}-gst ${PN}-pycamera"
 
 PACKAGECONFIG ??= ""
 PACKAGECONFIG[dng] = ",,tiff"
+PACKAGECONFIG[compliance] = "-Dlc-compliance=enabled,-Dlc-compliance=disabled,gtest"
 PACKAGECONFIG[gst] = "-Dgstreamer=enabled,-Dgstreamer=disabled,gstreamer1.0 gstreamer1.0-plugins-base"
 PACKAGECONFIG[pycamera] = "-Dpycamera=enabled,-Dpycamera=disabled,python3 python3-pybind11"
 PACKAGECONFIG[raspberrypi] = ",,libpisp"
@@ -47,7 +48,6 @@  EXTRA_OEMESON = " \
     -Dpipelines=${LIBCAMERA_PIPELINES} \
     -Dv4l2=true \
     -Dcam=enabled \
-    -Dlc-compliance=disabled \
     -Dtest=false \
     -Ddocumentation=disabled \
 "
@@ -82,6 +82,7 @@  do_package_recalculate_ipa_signatures() {
 }
 
 FILES:${PN} += " ${libexecdir}/libcamera/v4l2-compat.so"
+FILES:${PN}-compliance = "${bindir}/lc-compliance"
 FILES:${PN}-gst = "${libdir}/gstreamer-1.0"
 FILES:${PN}-pycamera = "${PYTHON_SITEPACKAGES_DIR}/libcamera"