device-raspberry-pi4: add firmware subpackage (MR 3461)
This commit is contained in:
parent
63a4d7ab0b
commit
106379972c
1 changed files with 17 additions and 3 deletions
|
@ -1,8 +1,8 @@
|
||||||
# Maintainer: Daniele Debernardi <drebrez@gmail.com>
|
# Maintainer: Daniele Debernardi <drebrez@gmail.com>
|
||||||
# Reference: <https://postmarketos.org/devicepkg>
|
# Reference: <https://postmarketos.org/devicepkg>
|
||||||
pkgname=device-raspberry-pi4
|
pkgname=device-raspberry-pi4
|
||||||
pkgver=0.3
|
pkgver=0.4
|
||||||
pkgrel=1
|
pkgrel=0
|
||||||
pkgdesc="Raspberry Pi 4"
|
pkgdesc="Raspberry Pi 4"
|
||||||
url="https://postmarketos.org"
|
url="https://postmarketos.org"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
|
@ -11,7 +11,13 @@ options="!check !archcheck"
|
||||||
depends="postmarketos-base raspberrypi-bootloader linux-rpi4 mesa-dri-gallium"
|
depends="postmarketos-base raspberrypi-bootloader linux-rpi4 mesa-dri-gallium"
|
||||||
makedepends="devicepkg-dev"
|
makedepends="devicepkg-dev"
|
||||||
install="$pkgname.post-install $pkgname.post-upgrade"
|
install="$pkgname.post-install $pkgname.post-upgrade"
|
||||||
source="deviceinfo config.txt usercfg.txt cmdline.txt 95-vchiq-permissions.rules"
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
||||||
|
source="deviceinfo
|
||||||
|
config.txt
|
||||||
|
usercfg.txt
|
||||||
|
cmdline.txt
|
||||||
|
95-vchiq-permissions.rules
|
||||||
|
"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
devicepkg_build $startdir $pkgname
|
devicepkg_build $startdir $pkgname
|
||||||
|
@ -26,6 +32,14 @@ package() {
|
||||||
"$pkgdir"/etc/udev/rules.d/95-vchiq-permissions.rules
|
"$pkgdir"/etc/udev/rules.d/95-vchiq-permissions.rules
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
439c2700066589c72a8b83d4eeefca07f42acf0f2297724079e7d03c25f29d48e866106872142bc5fc373447a12ae389ee15e5a1ff811cb2146c296aa6f7b802 deviceinfo
|
439c2700066589c72a8b83d4eeefca07f42acf0f2297724079e7d03c25f29d48e866106872142bc5fc373447a12ae389ee15e5a1ff811cb2146c296aa6f7b802 deviceinfo
|
||||||
|
|
Loading…
Reference in a new issue