Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kirkstone + gst-plugin-pylon #1

Open
wants to merge 2 commits into
base: honister
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion conf/layer.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ BBFILE_COLLECTIONS += "basler-common"
BBFILE_PATTERN_basler-common = "^${LAYERDIR}/"
BBFILE_PRIORITY_basler-common = "50"
LAYERVERSION_basler-common = "2"
LAYERSERIES_COMPAT_basler-common = "hardknott honister"
LAYERSERIES_COMPAT_basler-common = "kirkstone"

LICENSE_PATH += "${LAYERDIR}/licenses"
30 changes: 30 additions & 0 deletions recipes-camera/gst-plugin-pylon/gst-plugin-pylon_0.5.1.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
SUMMARY = "The official GStreamer plug-in for Basler cameras"
DESCRIPTION = "This plugin allows to use any Basler 2D camera (supported by Basler pylon Camera Software Suite) as source element in a GStreamer pipeline."
HOMEPAGE = "https://github.com/basler/gst-plugin-pylon"
LICENSE = "BSD-3-Clause"

DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base pylon cmake-native"

inherit pkgconfig meson

SRC_URI = "git://github.com/basler/gst-plugin-pylon.git;branch=main;name=git;protocol=https"
SRCREV_git = "ac4e0c29314109b1ffd97039a8a5167225fe2239"
LIC_FILES_CHKSUM = "file://LICENSE;md5=ae3b821cf6c4b42fabeceeafd1df5f95"

# basler build configuration
export PYLON_ROOT="${WORKDIR}/recipe-sysroot/opt/pylon"

S = "${WORKDIR}/git"

FILES:${PN} += "/usr/lib/gstreamer-1.0/libgstpylon.so"

do_configure:prepend() {
# (dirty) workaround: meson uses cmake to find the pylon stuff, however
# meson.cross file is not aware of the cmake binary, therefore add it
sed -i "/\[binaries\]/a cmake = 'cmake'" "${WORKDIR}/meson.cross"
}

# QA Issue: gst-plugin-pylon rdepends on gst-plugin-pylon-dev [dev-deps]
# QA Issue: -dev package gst-plugin-pylon-dev contains non-symlink .so '/usr/lib/libgstpylon-1.0.so' [dev-elf]
INSANE_SKIP:${PN} = "dev-deps"
INSANE_SKIP:${PN}-dev = "dev-elf"