From patchwork Wed Aug 7 14:26:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 47467 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id D1A8DC52D71 for ; Wed, 7 Aug 2024 14:26:29 +0000 (UTC) Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by mx.groups.io with SMTP id smtpd.web11.34886.1723040786286233415 for ; Wed, 07 Aug 2024 07:26:26 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@ideasonboard.com header.s=mail header.b=FS9Np697; spf=pass (domain: ideasonboard.com, ip: 213.167.242.64, mailfrom: kieran.bingham@ideasonboard.com) Received: from Monstersaurus.tail69b4.ts.net (cpc89244-aztw30-2-0-cust6594.18-1.cable.virginm.net [86.31.185.195]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 33B782EC; Wed, 7 Aug 2024 16:25:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1723040730; bh=zRHRQukQk7ZrF3qoL5OGBEUzNNwB8wcUbsvC50uWNDY=; h=From:To:Cc:Subject:Date:From; b=FS9Np697f0wTfFDgm5BvGtOAOmXYqWAZQkvBoqoViJk+l1TyJNIIKOF/pLYX41btV e8g6iYJTWWPMx15FwXCpgLyAQBz/XNFzz/36hE6b8QXo5P6ySjbLjAvhk0iaO8bP7n 0TZPFdV2yz/l3yckCeLIyaqhjOWNHXevKUeSd9Ak= From: Kieran Bingham To: openembedded-core@lists.openembedded.org Cc: Kieran Bingham Subject: [meta-multimeida][PATCH] libcamera: Add support for pycamera Date: Wed, 7 Aug 2024 15:26:14 +0100 Message-Id: <20240807142614.2525942-1-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 07 Aug 2024 14:26:29 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/203074 Supply a libcamera-pycamera package to allow installing the libcamera python bindings. Signed-off-by: Kieran Bingham --- .../recipes-multimedia/libcamera/libcamera_0.3.0.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 93f29c16124d..66433ec1555d 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" 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" +PACKAGES =+ "${PN}-gst ${PN}-pycamera" PACKAGECONFIG ??= "" PACKAGECONFIG[gst] = "-Dgstreamer=enabled,-Dgstreamer=disabled,gstreamer1.0 gstreamer1.0-plugins-base" +PACKAGECONFIG[pycamera] = "-Dpycamera=enabled,-Dpycamera=disabled,python3 python3-pybind11" LIBCAMERA_PIPELINES ??= "auto" @@ -71,6 +72,7 @@ do_package_recalculate_ipa_signatures() { FILES:${PN} += " ${libexecdir}/libcamera/v4l2-compat.so" FILES:${PN}-gst = "${libdir}/gstreamer-1.0" +FILES:${PN}-pycamera = "${PYTHON_SITEPACKAGES_DIR}/libcamera" # libcamera-v4l2 explicitly sets _FILE_OFFSET_BITS=32 to get access to # both 32 and 64 bit file APIs.