mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-09 00:17:31 +00:00
alarm/raspberrypi-firmware to 20201210-1
Switch to Oleg's PKGBUILD that pulls from upstream userland and that covers armv6h, armv7h, and aarch64
This commit is contained in:
parent
1775c8df99
commit
05a24781c3
1 changed files with 43 additions and 11 deletions
|
@ -1,30 +1,62 @@
|
|||
# Maintainer: Oleg Rakhmanov <oleg [at] archlinuxarm [dot] org>
|
||||
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# Maintainer: graysky <graysky@archlinux.us>
|
||||
|
||||
buildarch=20
|
||||
buildarch=28
|
||||
|
||||
pkgname=raspberrypi-firmware
|
||||
pkgver=20201208
|
||||
pkgver=20201210
|
||||
pkgrel=1
|
||||
_commit=919aee0ed75f7db48a38b8b96c13228a7584cfd7
|
||||
# userland commit for all
|
||||
_commit=093b30bbc2fd083d68cc3ee07e6e555c6e592d11
|
||||
# firmware commit for cherrypick bins
|
||||
_cherrypick=919aee0ed75f7db48a38b8b96c13228a7584cfd7
|
||||
pkgdesc="Firmware tools, libraries, and headers for Raspberry Pi"
|
||||
arch=('armv6h' 'armv7h')
|
||||
url="https://github.com/raspberrypi/firmware"
|
||||
arch=('armv6h' 'armv7h' 'aarch64')
|
||||
url="https://github.com/raspberrypi/userland"
|
||||
license=('custom')
|
||||
makedepends=('cmake')
|
||||
replaces=('raspberrypi-firmware-tools')
|
||||
provides=('raspberrypi-firmware-tools')
|
||||
options=(!strip)
|
||||
source=("https://github.com/raspberrypi/firmware/archive/${_commit}.tar.gz"
|
||||
'00-raspberrypi-firmware.conf')
|
||||
md5sums=('d3407d589999647ad1dc481dfae70549'
|
||||
'72e0d5818fc513ece1b964f25f7e7882')
|
||||
source=("https://github.com/raspberrypi/userland/archive/$_commit.tar.gz"
|
||||
"https://raw.githubusercontent.com/raspberrypi/firmware/master/opt/vc/LICENCE"
|
||||
'00-raspberrypi-firmware.conf'
|
||||
# for armv6h and armv7h only
|
||||
"https://github.com/raspberrypi/firmware/raw/$_cherrypick/opt/vc/bin/edidparser"
|
||||
"https://github.com/raspberrypi/firmware/raw/$_cherrypick/opt/vc/bin/vcdbg")
|
||||
md5sums=('b4b3ef6a5c9ecbf11a517e29db97fd1b'
|
||||
'86e53f5f5909ee66900418028de11780'
|
||||
'72e0d5818fc513ece1b964f25f7e7882'
|
||||
'e13306773ae7d2cc835072c51a83c56d'
|
||||
'6941e32c25e5534b2a84045004743f4c')
|
||||
|
||||
build() {
|
||||
cd ${srcdir}/userland-${_commit}
|
||||
|
||||
if [[ "${CARCH}" = 'aarch64' ]]; then
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DARM64=ON
|
||||
else
|
||||
cmake -DCMAKE_BUILD_TYPE=Release
|
||||
fi
|
||||
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
mkdir -p "${pkgdir}"/opt/vc
|
||||
|
||||
cp -R "${srcdir}"/firmware-${_commit}/hardfp/opt/vc/{bin,include,lib,LICENCE} "${pkgdir}"/opt/vc
|
||||
cd ${srcdir}/userland-${_commit}
|
||||
make install DESTDIR="${pkgdir}"
|
||||
install -m644 ../LICENCE "${pkgdir}"/opt/vc/LICENCE
|
||||
rm -rf "${pkgdir}"/opt/vc/src
|
||||
|
||||
# Create lib links
|
||||
mkdir -p "${pkgdir}"/etc/ld.so.conf.d/
|
||||
cp "${srcdir}/00-raspberrypi-firmware.conf" "${pkgdir}"/etc/ld.so.conf.d/
|
||||
install -m644 ../00-raspberrypi-firmware.conf "${pkgdir}"/etc/ld.so.conf.d/00-raspberrypi-firmware.conf
|
||||
|
||||
if [[ "${CARCH}" != 'aarch64' ]]; then
|
||||
install -m755 "${srcdir}"/edidparser "${pkgdir}"/opt/vc/bin/edidparser
|
||||
install -m755 "${srcdir}"/vcdbg "${pkgdir}"/opt/vc/bin/vcdbg
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue