Code
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2024-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="drm-vc4-grabber"
PKG_VERSION="a0ed242818109d4d7f8bba4830878ce647b6c878"
PKG_SHA256="f5db271b1ddc3dad40477168c1404bbeb4c29e585aaac785926e49462147c596"
PKG_LICENSE="UNKNOWN"
PKG_SITE="https://github.com/rudihorn/drm-vc4-grabber"
PKG_URL="https://github.com/rudihorn/drm-vc4-grabber/archive/${PKG_VERSION}.tar.gz"
PKG_DEPENDS_TARGET="toolchain cargo:host"
PKG_LONGDESC="Raspberry Pi DRM-VC4 grabber for Hyperion"
PKG_TOOLCHAIN="manual"
make_target(){
export RUSTC_LINKER=${CC}
cd src
cargo build \
--target ${TARGET_NAME} \
--release
}
Display More
If someone wants to experiment further, create packages/addons/addon-depends/drm-vc4-grabber/package.mk with that ^ and then build the package (only compile tested). You'll need to recreate the systemd service and/or figure out further packaging to get things working. For me the binary ends up in build.LibreELEC-RPi5.aarch64-11.80.0/build/drm-vc4-grabber-a0ed242818109d4d7f8bba4830878ce647b6c878/.aarch64-libreelec-linux-gnu/target/aarch64-libreelec-linux-gnu/release/