diff options
| author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2024-08-07 15:36:25 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-08-09 14:25:26 -0700 |
| commit | 953000215ed4b1112a35e0724510400d2b80ccce (patch) | |
| tree | 4230dc7a0a5c9143b1018cb4b66fb8260bff37da | |
| parent | 9c037b65767180133d3a63f6163c15e9c98d8dcd (diff) | |
| download | meta-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.bb | 4 |
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" | |||
| 24 | DEPENDS = "python3-pyyaml-native python3-jinja2-native python3-ply-native python3-jinja2-native udev gnutls chrpath-native libevent libyaml" | 24 | DEPENDS = "python3-pyyaml-native python3-jinja2-native python3-ply-native python3-jinja2-native udev gnutls chrpath-native libevent libyaml" |
| 25 | DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'qt', 'qtbase qtbase-native', '', d)}" | 25 | DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'qt', 'qtbase qtbase-native', '', d)}" |
| 26 | 26 | ||
| 27 | PACKAGES =+ "${PN}-gst" | 27 | PACKAGES =+ "${PN}-gst ${PN}-pycamera" |
| 28 | 28 | ||
| 29 | PACKAGECONFIG ??= "" | 29 | PACKAGECONFIG ??= "" |
| 30 | PACKAGECONFIG[gst] = "-Dgstreamer=enabled,-Dgstreamer=disabled,gstreamer1.0 gstreamer1.0-plugins-base" | 30 | PACKAGECONFIG[gst] = "-Dgstreamer=enabled,-Dgstreamer=disabled,gstreamer1.0 gstreamer1.0-plugins-base" |
| 31 | PACKAGECONFIG[pycamera] = "-Dpycamera=enabled,-Dpycamera=disabled,python3 python3-pybind11" | ||
| 31 | 32 | ||
| 32 | LIBCAMERA_PIPELINES ??= "auto" | 33 | LIBCAMERA_PIPELINES ??= "auto" |
| 33 | 34 | ||
| @@ -71,6 +72,7 @@ do_package_recalculate_ipa_signatures() { | |||
| 71 | 72 | ||
| 72 | FILES:${PN} += " ${libexecdir}/libcamera/v4l2-compat.so" | 73 | FILES:${PN} += " ${libexecdir}/libcamera/v4l2-compat.so" |
| 73 | FILES:${PN}-gst = "${libdir}/gstreamer-1.0" | 74 | FILES:${PN}-gst = "${libdir}/gstreamer-1.0" |
| 75 | FILES:${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. |
