summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2024-08-07 15:36:25 +0100
committerKhem Raj <raj.khem@gmail.com>2024-08-09 14:25:26 -0700
commit953000215ed4b1112a35e0724510400d2b80ccce (patch)
tree4230dc7a0a5c9143b1018cb4b66fb8260bff37da
parent9c037b65767180133d3a63f6163c15e9c98d8dcd (diff)
downloadmeta-openembedded-953000215ed4b1112a35e0724510400d2b80ccce.tar.gz
libcamera: Add support for pycamera
Supply a libcamera-pycamera package to allow installing the libcamera python bindings. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-multimedia/recipes-multimedia/libcamera/libcamera_0.3.0.bb4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.3.0.bb b/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.3.0.bb
index 93f29c1612..66433ec155 100644
--- a/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.3.0.bb
+++ b/meta-multimedia/recipes-multimedia/libcamera/libcamera_0.3.0.bb
@@ -24,10 +24,11 @@ S = "${WORKDIR}/git"
24DEPENDS = "python3-pyyaml-native python3-jinja2-native python3-ply-native python3-jinja2-native udev gnutls chrpath-native libevent libyaml" 24DEPENDS = "python3-pyyaml-native python3-jinja2-native python3-ply-native python3-jinja2-native udev gnutls chrpath-native libevent libyaml"
25DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'qt', 'qtbase qtbase-native', '', d)}" 25DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'qt', 'qtbase qtbase-native', '', d)}"
26 26
27PACKAGES =+ "${PN}-gst" 27PACKAGES =+ "${PN}-gst ${PN}-pycamera"
28 28
29PACKAGECONFIG ??= "" 29PACKAGECONFIG ??= ""
30PACKAGECONFIG[gst] = "-Dgstreamer=enabled,-Dgstreamer=disabled,gstreamer1.0 gstreamer1.0-plugins-base" 30PACKAGECONFIG[gst] = "-Dgstreamer=enabled,-Dgstreamer=disabled,gstreamer1.0 gstreamer1.0-plugins-base"
31PACKAGECONFIG[pycamera] = "-Dpycamera=enabled,-Dpycamera=disabled,python3 python3-pybind11"
31 32
32LIBCAMERA_PIPELINES ??= "auto" 33LIBCAMERA_PIPELINES ??= "auto"
33 34
@@ -71,6 +72,7 @@ do_package_recalculate_ipa_signatures() {
71 72
72FILES:${PN} += " ${libexecdir}/libcamera/v4l2-compat.so" 73FILES:${PN} += " ${libexecdir}/libcamera/v4l2-compat.so"
73FILES:${PN}-gst = "${libdir}/gstreamer-1.0" 74FILES:${PN}-gst = "${libdir}/gstreamer-1.0"
75FILES:${PN}-pycamera = "${PYTHON_SITEPACKAGES_DIR}/libcamera"
74 76
75# libcamera-v4l2 explicitly sets _FILE_OFFSET_BITS=32 to get access to 77# libcamera-v4l2 explicitly sets _FILE_OFFSET_BITS=32 to get access to
76# both 32 and 64 bit file APIs. 78# both 32 and 64 bit file APIs.