alarm/raspberrypi-firmware to 20201215-2

Ship udev rule to provision video group which is required for non-root users to
call /opt/vc/bin/vcgencmd and get output.  Note user also needs to be in the
video group but that is easily discovered via a web search.
This commit is contained in:
graysky 2020-12-28 09:53:14 -05:00
parent b5c0b4b29e
commit e5db83743f
2 changed files with 9 additions and 3 deletions

View file

@ -0,0 +1 @@
SUBSYSTEM=="vchiq",GROUP="video",MODE="0660"

View file

@ -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