2020-12-10 17:34:32 +00:00
|
|
|
# Maintainer: Oleg Rakhmanov <oleg [at] archlinuxarm [dot] org>
|
2016-12-11 21:19:53 +00:00
|
|
|
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
2020-10-16 17:28:09 +00:00
|
|
|
# Maintainer: graysky <graysky@archlinux.us>
|
2016-12-11 21:19:53 +00:00
|
|
|
|
2020-12-10 17:34:32 +00:00
|
|
|
buildarch=28
|
2015-02-04 00:54:33 +00:00
|
|
|
|
2016-12-11 21:19:53 +00:00
|
|
|
pkgname=raspberrypi-firmware
|
2020-12-10 17:34:32 +00:00
|
|
|
pkgver=20201210
|
2017-01-15 00:32:45 +00:00
|
|
|
pkgrel=1
|
2020-12-10 17:34:32 +00:00
|
|
|
# userland commit for all
|
|
|
|
_commit=093b30bbc2fd083d68cc3ee07e6e555c6e592d11
|
|
|
|
# firmware commit for cherrypick bins
|
|
|
|
_cherrypick=919aee0ed75f7db48a38b8b96c13228a7584cfd7
|
2016-12-11 21:19:53 +00:00
|
|
|
pkgdesc="Firmware tools, libraries, and headers for Raspberry Pi"
|
2020-12-10 17:34:32 +00:00
|
|
|
arch=('armv6h' 'armv7h' 'aarch64')
|
|
|
|
url="https://github.com/raspberrypi/userland"
|
2012-03-17 18:53:40 +00:00
|
|
|
license=('custom')
|
2020-12-10 17:34:32 +00:00
|
|
|
makedepends=('cmake')
|
2016-12-11 21:19:53 +00:00
|
|
|
replaces=('raspberrypi-firmware-tools')
|
2016-12-11 23:20:31 +00:00
|
|
|
provides=('raspberrypi-firmware-tools')
|
2012-03-17 18:53:40 +00:00
|
|
|
options=(!strip)
|
2020-12-10 17:34:32 +00:00
|
|
|
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
|
|
|
|
}
|
2012-05-18 22:58:41 +00:00
|
|
|
|
2016-12-11 21:19:53 +00:00
|
|
|
package() {
|
2012-07-28 22:39:26 +00:00
|
|
|
mkdir -p "${pkgdir}"/opt/vc
|
2012-08-07 16:03:08 +00:00
|
|
|
|
2020-12-10 17:34:32 +00:00
|
|
|
cd ${srcdir}/userland-${_commit}
|
|
|
|
make install DESTDIR="${pkgdir}"
|
|
|
|
install -m644 ../LICENCE "${pkgdir}"/opt/vc/LICENCE
|
|
|
|
rm -rf "${pkgdir}"/opt/vc/src
|
2013-01-08 00:01:52 +00:00
|
|
|
|
|
|
|
# Create lib links
|
|
|
|
mkdir -p "${pkgdir}"/etc/ld.so.conf.d/
|
2020-12-10 17:34:32 +00:00
|
|
|
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
|
2012-03-17 18:53:40 +00:00
|
|
|
}
|