From d15dcfe341df5dca2c101b4f85f85da006385616 Mon Sep 17 00:00:00 2001 From: graysky Date: Sat, 21 Oct 2023 03:51:15 -0400 Subject: [PATCH] removed raspberrypi-firmware Upstream deprecated these tools, see: https://github.com/raspberrypi/userland/blob/master/README.md --- .../00-raspberrypi-firmware.conf | 1 - .../10-raspberrypi-firmware.rules | 2 - alarm/raspberrypi-firmware/PKGBUILD | 74 ------------------- .../raspberrypi-firmware.sh | 3 - 4 files changed, 80 deletions(-) delete mode 100644 alarm/raspberrypi-firmware/00-raspberrypi-firmware.conf delete mode 100644 alarm/raspberrypi-firmware/10-raspberrypi-firmware.rules delete mode 100644 alarm/raspberrypi-firmware/PKGBUILD delete mode 100644 alarm/raspberrypi-firmware/raspberrypi-firmware.sh diff --git a/alarm/raspberrypi-firmware/00-raspberrypi-firmware.conf b/alarm/raspberrypi-firmware/00-raspberrypi-firmware.conf deleted file mode 100644 index b0a1aeb31..000000000 --- a/alarm/raspberrypi-firmware/00-raspberrypi-firmware.conf +++ /dev/null @@ -1 +0,0 @@ -/opt/vc/lib diff --git a/alarm/raspberrypi-firmware/10-raspberrypi-firmware.rules b/alarm/raspberrypi-firmware/10-raspberrypi-firmware.rules deleted file mode 100644 index 5aa43b93e..000000000 --- a/alarm/raspberrypi-firmware/10-raspberrypi-firmware.rules +++ /dev/null @@ -1,2 +0,0 @@ -#SUBSYSTEM=="vchiq",GROUP="video",MODE="0660" -KERNEL=="vchiq",GROUP="video",MODE="0660" diff --git a/alarm/raspberrypi-firmware/PKGBUILD b/alarm/raspberrypi-firmware/PKGBUILD deleted file mode 100644 index 8a95885c8..000000000 --- a/alarm/raspberrypi-firmware/PKGBUILD +++ /dev/null @@ -1,74 +0,0 @@ -# Maintainer: graysky -# Maintainer: Oleg Rakhmanov -# Maintainer: Kevin Mihelich - -pkgname=raspberrypi-firmware -pkgver=20231019 -pkgrel=1 -_commitfirmware=fdb9eafae4b83e553593937eae8e77b0193903c3 -_commituserland=3c97f769ef256575354638a851ccaa1930cbf5f6 -pkgdesc="Firmware tools, libraries, and headers for Raspberry Pi" -arch=('armv7h' 'aarch64') -url="https://github.com/raspberrypi/firmware" -license=('custom') -makedepends_aarch64=('cmake') -replaces=('raspberrypi-firmware-tools') -provides=('raspberrypi-firmware-tools') -options=(!strip) -source=('00-raspberrypi-firmware.conf' - '10-raspberrypi-firmware.rules' - 'raspberrypi-firmware.sh') -source_armv7h=("firmware-$pkgver-$pkgrel-${_commitfirmware:0:10}.tar.gz::https://github.com/raspberrypi/firmware/archive/$_commitfirmware.tar.gz") -source_aarch64=("userland-$pkgver-$pkgrel-${_commituserland:0:10}.tar.gz::https://github.com/raspberrypi/userland/archive/$_commituserland.tar.gz" - "https://raw.githubusercontent.com/raspberrypi/firmware/master/opt/vc/LICENCE") -md5sums=('72e0d5818fc513ece1b964f25f7e7882' - '4fd5a77d254c62a259edf8ff5194db6f' - '60919cb17f31b4698b6650bbb46f18ed') -md5sums_armv7h=('869bf301a128bdb0d359651c348e7e20') -md5sums_aarch64=('e3e297c9f1f6330844f6ef45018fcd22' - '86e53f5f5909ee66900418028de11780') - -build() { - if [[ "${CARCH}" = 'aarch64' ]]; then - cd "${srcdir}/userland-${_commituserland}" - cmake -DCMAKE_BUILD_TYPE=Release -DARM64=ON - make - fi -} - -package() { - # setup permissions on video group for /opt/vc/bin/vcgencmd - install -Dm0644 "$srcdir/10-raspberrypi-firmware.rules" "$pkgdir/usr/lib/udev/rules.d/10-raspberrypi-firmware.rules" - - # setup PATH to hit /opt/vc/bin/ - install -Dt "$pkgdir/etc/profile.d" -m644 raspberrypi-firmware.sh - - mkdir -p "${pkgdir}"/opt/vc - - if [[ "${CARCH}" = 'aarch64' ]]; then - cd ${srcdir}/userland-${_commituserland} - make install DESTDIR="${pkgdir}" - install -m644 ../LICENCE "${pkgdir}"/opt/vc/LICENCE - rm -rf "${pkgdir}"/opt/vc/src - - # Remove executable flag on shared objects - find "${pkgdir}" -type f -name '*.so' -print0 | xargs -0 chmod -x - - # Create lib links - mkdir -p "${pkgdir}"/etc/ld.so.conf.d/ - install -m644 ../00-raspberrypi-firmware.conf "${pkgdir}"/etc/ld.so.conf.d/00-raspberrypi-firmware.conf - else - cp -R "${srcdir}"/firmware-${_commitfirmware}/hardfp/opt/vc/{bin,include,lib,LICENCE} "${pkgdir}"/opt/vc - cp -R "${srcdir}"/firmware-${_commitfirmware}/opt/vc/man "${pkgdir}"/opt/vc - - # Create lib links - mkdir -p "${pkgdir}"/etc/ld.so.conf.d/ - cp "${srcdir}/00-raspberrypi-firmware.conf" "${pkgdir}"/etc/ld.so.conf.d/ - fi - - # Install man pages to /usr/share/man/ not to /opt/vc/man/ - mkdir -p "${pkgdir}"/usr/share/man/man{1,7} - mv "${pkgdir}"/opt/vc/man/man1/*.1 "${pkgdir}"/usr/share/man/man1 - mv "${pkgdir}"/opt/vc/man/man7/*.7 "${pkgdir}"/usr/share/man/man7 - rm -rf "${pkgdir}"/opt/vc/man -} diff --git a/alarm/raspberrypi-firmware/raspberrypi-firmware.sh b/alarm/raspberrypi-firmware/raspberrypi-firmware.sh deleted file mode 100644 index c019ddad4..000000000 --- a/alarm/raspberrypi-firmware/raspberrypi-firmware.sh +++ /dev/null @@ -1,3 +0,0 @@ -[ -d /opt/vc/bin ] && append_path '/opt/vc/bin' - -export PATH