libcamera: add new package for lc-compliance

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>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Jose Quaresma
2026-05-06 12:15:49 +01:00
committed by Khem Raj
parent b9de4bf63c
commit 3fe54f61ac
@@ -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 = "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)}" 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 ??= ""
PACKAGECONFIG[dng] = ",,tiff" 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[gst] = "-Dgstreamer=enabled,-Dgstreamer=disabled,gstreamer1.0 gstreamer1.0-plugins-base"
PACKAGECONFIG[pycamera] = "-Dpycamera=enabled,-Dpycamera=disabled,python3 python3-pybind11" PACKAGECONFIG[pycamera] = "-Dpycamera=enabled,-Dpycamera=disabled,python3 python3-pybind11"
PACKAGECONFIG[raspberrypi] = ",,libpisp" PACKAGECONFIG[raspberrypi] = ",,libpisp"
@@ -47,7 +48,6 @@ EXTRA_OEMESON = " \
-Dpipelines=${LIBCAMERA_PIPELINES} \ -Dpipelines=${LIBCAMERA_PIPELINES} \
-Dv4l2=true \ -Dv4l2=true \
-Dcam=enabled \ -Dcam=enabled \
-Dlc-compliance=disabled \
-Dtest=false \ -Dtest=false \
-Ddocumentation=disabled \ -Ddocumentation=disabled \
" "
@@ -82,6 +82,7 @@ do_package_recalculate_ipa_signatures() {
} }
FILES:${PN} += " ${libexecdir}/libcamera/v4l2-compat.so" FILES:${PN} += " ${libexecdir}/libcamera/v4l2-compat.so"
FILES:${PN}-compliance = "${bindir}/lc-compliance"
FILES:${PN}-gst = "${libdir}/gstreamer-1.0" FILES:${PN}-gst = "${libdir}/gstreamer-1.0"
FILES:${PN}-pycamera = "${PYTHON_SITEPACKAGES_DIR}/libcamera" FILES:${PN}-pycamera = "${PYTHON_SITEPACKAGES_DIR}/libcamera"