2019-12-28 16:49:12 +00:00
|
|
|
# Maintainer: Daniele Debernardi <drebrez@gmail.com>
|
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=device-raspberry-pi4
|
2022-09-23 19:18:45 +00:00
|
|
|
pkgver=0.4
|
2022-10-10 19:33:44 +00:00
|
|
|
pkgrel=1
|
2019-12-28 16:49:12 +00:00
|
|
|
pkgdesc="Raspberry Pi 4"
|
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
2022-10-10 19:33:44 +00:00
|
|
|
depends="postmarketos-base raspberrypi-bootloader linux-rpi4"
|
2019-12-28 16:49:12 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2020-03-10 01:04:33 +00:00
|
|
|
install="$pkgname.post-install $pkgname.post-upgrade"
|
2022-09-23 19:18:45 +00:00
|
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
|
|
|
source="deviceinfo
|
|
|
|
config.txt
|
|
|
|
usercfg.txt
|
|
|
|
cmdline.txt
|
|
|
|
95-vchiq-permissions.rules
|
|
|
|
"
|
2019-12-28 16:49:12 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
install -Dm644 "$srcdir"/config.txt "$pkgdir"/boot/config.txt
|
|
|
|
install -Dm644 "$srcdir"/usercfg.txt "$pkgdir"/boot/usercfg.txt
|
|
|
|
install -Dm644 "$srcdir"/cmdline.txt "$pkgdir"/boot/cmdline.txt
|
|
|
|
install -Dm644 "$srcdir"/95-vchiq-permissions.rules \
|
|
|
|
"$pkgdir"/etc/udev/rules.d/95-vchiq-permissions.rules
|
|
|
|
}
|
|
|
|
|
2022-09-23 19:18:45 +00:00
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="WiFi/Bluetooth firmware"
|
|
|
|
depends="linux-firmware-brcm"
|
|
|
|
mkdir -p "$subpkgdir"/lib/firmware/brcm
|
|
|
|
ln -s "/lib/firmware/brcm/brcmfmac43455-sdio.bin" \
|
|
|
|
"$subpkgdir"/lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.bin
|
|
|
|
}
|
|
|
|
|
2019-12-28 16:49:12 +00:00
|
|
|
|
2020-09-11 09:26:48 +00:00
|
|
|
sha512sums="
|
2021-09-18 17:06:03 +00:00
|
|
|
439c2700066589c72a8b83d4eeefca07f42acf0f2297724079e7d03c25f29d48e866106872142bc5fc373447a12ae389ee15e5a1ff811cb2146c296aa6f7b802 deviceinfo
|
2021-12-09 03:28:13 +00:00
|
|
|
5dcc5fb223c4e0a2ffca7da92c8d9b87c230ac9f53d21d1e0d8f49fb3419b7f8d44a3116769bf20ab8a8f0595eee041970e1a0661a8a5feb60e94dc3307c75dc config.txt
|
2022-09-23 19:19:11 +00:00
|
|
|
18c5809f939260281637c1493009b724cfdc80efba8321fcad7bb4c252833eb75596326df06dcf8986693a501fa11d54680393ceccdec42e347fdd78d37417c9 usercfg.txt
|
2019-12-28 16:49:12 +00:00
|
|
|
ae3de0b8fec07d3a283dc3c06bf8678eec1e65c9faf0b7f4fdc9fb92751e324d1f8e2fb224dbbf561b7e5a6fb34769bfa1657858375f74b101a130d78e0737e2 cmdline.txt
|
2020-09-11 09:26:48 +00:00
|
|
|
7e5505cb07d5b4a81bd28443d508336b5c547356538f1c06f91ed93ad0d7d456d4f74f1d24df5a2e08c17e74f0a66607352ac4874e967e9a91dfec9522d2d58d 95-vchiq-permissions.rules
|
|
|
|
"
|