diff --git a/alarm/raspberrypi-firmware/10-raspberrypi-firmware.rules b/alarm/raspberrypi-firmware/10-raspberrypi-firmware.rules new file mode 100644 index 000000000..bacea0e06 --- /dev/null +++ b/alarm/raspberrypi-firmware/10-raspberrypi-firmware.rules @@ -0,0 +1 @@ +SUBSYSTEM=="vchiq",GROUP="video",MODE="0660" diff --git a/alarm/raspberrypi-firmware/PKGBUILD b/alarm/raspberrypi-firmware/PKGBUILD index c618684b9..300ee1af1 100644 --- a/alarm/raspberrypi-firmware/PKGBUILD +++ b/alarm/raspberrypi-firmware/PKGBUILD @@ -6,7 +6,7 @@ buildarch=28 pkgname=raspberrypi-firmware pkgver=20201215 -pkgrel=1 +pkgrel=2 _commitfirmware=8a5549c137dbce0e082ecf21607dc5e3feac1160 _commituserland=093b30bbc2fd083d68cc3ee07e6e555c6e592d11 pkgdesc="Firmware tools, libraries, and headers for Raspberry Pi" @@ -17,12 +17,14 @@ makedepends_aarch64=('cmake') replaces=('raspberrypi-firmware-tools') provides=('raspberrypi-firmware-tools') options=(!strip) -source=('00-raspberrypi-firmware.conf') +source=('00-raspberrypi-firmware.conf' + '10-raspberrypi-firmware.rules') source_armv6h=("https://github.com/raspberrypi/firmware/archive/$_commitfirmware.tar.gz") source_armv7h=("https://github.com/raspberrypi/userland/archive/$_commitfirmware.tar.gz") source_aarch64=("https://github.com/raspberrypi/userland/archive/$_commituserland.tar.gz" "https://raw.githubusercontent.com/raspberrypi/firmware/master/opt/vc/LICENCE") -md5sums=('72e0d5818fc513ece1b964f25f7e7882') +md5sums=('72e0d5818fc513ece1b964f25f7e7882' + '2ad54baf398afe59ff5a70eb655f1b96') md5sums_armv6h=('8387de1c197424ea62e4052604df1e52') md5sums_armv7h=('8387de1c197424ea62e4052604df1e52') md5sums_aarch64=('b4b3ef6a5c9ecbf11a517e29db97fd1b' @@ -37,6 +39,9 @@ build() { } 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" + if [[ "${CARCH}" = 'aarch64' ]]; then mkdir -p "${pkgdir}"/opt/vc