From 106379972cb953aa96d0463f829b7d24b4f19fdf Mon Sep 17 00:00:00 2001 From: knuxify Date: Fri, 23 Sep 2022 21:18:45 +0200 Subject: [PATCH] device-raspberry-pi4: add firmware subpackage (MR 3461) --- device/testing/device-raspberry-pi4/APKBUILD | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/device/testing/device-raspberry-pi4/APKBUILD b/device/testing/device-raspberry-pi4/APKBUILD index 2c311b27b..65ee104d9 100644 --- a/device/testing/device-raspberry-pi4/APKBUILD +++ b/device/testing/device-raspberry-pi4/APKBUILD @@ -1,8 +1,8 @@ # Maintainer: Daniele Debernardi # Reference: pkgname=device-raspberry-pi4 -pkgver=0.3 -pkgrel=1 +pkgver=0.4 +pkgrel=0 pkgdesc="Raspberry Pi 4" url="https://postmarketos.org" license="MIT" @@ -11,7 +11,13 @@ options="!check !archcheck" depends="postmarketos-base raspberrypi-bootloader linux-rpi4 mesa-dri-gallium" makedepends="devicepkg-dev" 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() { devicepkg_build $startdir $pkgname @@ -26,6 +32,14 @@ package() { "$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=" 439c2700066589c72a8b83d4eeefca07f42acf0f2297724079e7d03c25f29d48e866106872142bc5fc373447a12ae389ee15e5a1ff811cb2146c296aa6f7b802 deviceinfo