2022-05-05 17:35:19 +00:00
|
|
|
# Maintainer: graysky <therealgraysky AT protonmail DOT com>
|
2022-03-28 13:06:47 +00:00
|
|
|
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# Contributor: Ray Sherwin <sliick517d@gmail.com>
|
2017-09-10 16:06:48 +00:00
|
|
|
|
|
|
|
pkgname=firmware-raspberrypi
|
2022-07-06 12:14:34 +00:00
|
|
|
_firmcommit=b0be2de82bc55d3f36a944538857d891340dbc2c
|
2022-10-19 10:44:49 +00:00
|
|
|
_bluezcommit=90d0bdffd25cc8a1717d3fec6cc7bbde56ee83c7
|
|
|
|
pkgver=20221019
|
2022-04-11 17:53:25 +00:00
|
|
|
pkgrel=1
|
2017-09-10 16:06:48 +00:00
|
|
|
pkgdesc="Additional firmware for Raspberry Pi"
|
2018-02-08 00:29:33 +00:00
|
|
|
arch=('any')
|
2022-03-28 13:06:47 +00:00
|
|
|
url="https://github.com/RPi-Distro/firmware-nonfree"
|
2017-09-10 16:06:48 +00:00
|
|
|
license=('custom')
|
2022-03-28 14:53:31 +00:00
|
|
|
makedepends=('git')
|
2017-09-10 16:06:48 +00:00
|
|
|
options=('!strip')
|
2022-03-28 13:06:47 +00:00
|
|
|
source=("git+https://github.com/RPi-Distro/firmware-nonfree.git#commit=$_firmcommit"
|
|
|
|
# support for which device?
|
|
|
|
"BCM4345C5.hcd::https://github.com/RPi-Distro/bluez-firmware/raw/$_bluezcommit/broadcom/BCM4345C5.hcd"
|
2021-02-18 11:27:36 +00:00
|
|
|
# bluetooth for RPi3+
|
2021-02-24 15:43:04 +00:00
|
|
|
"BCM43430A1.hcd::https://github.com/RPi-Distro/bluez-firmware/raw/$_bluezcommit/broadcom/BCM43430A1.hcd"
|
|
|
|
"BCM4345C0.hcd::https://github.com/RPi-Distro/bluez-firmware/raw/$_bluezcommit/broadcom/BCM4345C0.hcd"
|
2021-11-17 11:28:54 +00:00
|
|
|
# bluetooth for Zero 2 W
|
|
|
|
"BCM43430B0.hcd::https://github.com/RPi-Distro/bluez-firmware/raw/$_bluezcommit/broadcom/BCM43430B0.hcd"
|
2021-02-24 15:43:04 +00:00
|
|
|
# fixes buggy linux-firmware for RPi4B
|
2021-02-18 11:27:36 +00:00
|
|
|
'brcmfmac43455-sdio.raspberrypi,4-model-b.txt'
|
2021-02-24 15:43:04 +00:00
|
|
|
# fixes buggy linux-firmware for Zero-W
|
2021-02-20 19:08:17 +00:00
|
|
|
'https://archlinuxarm.org/builder/src/bcm43430/7.45.98.38/brcmfmac43430-sdio.txt'
|
2019-03-21 23:32:31 +00:00
|
|
|
'RPi-WM8804.conf')
|
2020-12-25 21:35:13 +00:00
|
|
|
|
2022-03-28 13:06:47 +00:00
|
|
|
sha256sums=('SKIP'
|
|
|
|
'dde785c4fa1351b52bda9c74554ae55bc74ecbe44935b9c3d83c7fe282cf17cf'
|
|
|
|
'c096ad4a5c3f06ed7d69eba246bf89ada9acba64a5b6f51b1e9c12f99bb1e1a7'
|
2022-10-19 10:44:49 +00:00
|
|
|
'c723c903655086c9f3a1de94a291f495a0f087f1ee6d3ee7bc4c558497aae7bc'
|
2021-11-17 11:28:54 +00:00
|
|
|
'338c2c6631131f516bfc7e64ef0872bd0402e1f98ef9d0c900eef0c814d90a25'
|
2021-02-18 11:27:36 +00:00
|
|
|
'edb6f4e4fb19e18940004124feb4ffe160d72fc607243a07a4480338a28b2748'
|
2021-02-20 19:08:17 +00:00
|
|
|
'e4ce7ad5ce72406f958ed758539b65d958d1c0eb3e46e3f8e9f02b510d88e0b0'
|
2019-03-21 23:32:31 +00:00
|
|
|
'f978fbc40db75ba3213a4472023496d0716706eb1a6f078f207ac027c5753f43')
|
2017-09-10 16:06:48 +00:00
|
|
|
|
|
|
|
package() {
|
2022-06-26 19:02:54 +00:00
|
|
|
_FWPATH=firmware-nonfree/debian/config/brcm80211
|
|
|
|
|
2022-06-14 09:52:53 +00:00
|
|
|
# https://github.com/RPi-Distro/firmware-nonfree/issues/26
|
2022-06-26 19:02:54 +00:00
|
|
|
unlink "$srcdir/$_FWPATH/brcm/brcmfmac43455-sdio.bin"
|
2022-06-14 09:52:53 +00:00
|
|
|
|
2022-03-28 13:06:47 +00:00
|
|
|
install -d "$pkgdir"/usr/lib/firmware/updates/brcm "$pkgdir"/usr/share/alsa/cards/
|
|
|
|
install -m 0644 *.hcd "$pkgdir"/usr/lib/firmware/updates/brcm
|
|
|
|
install -m 0644 RPi-WM8804.conf "$pkgdir"/usr/share/alsa/cards/
|
2022-06-26 19:02:54 +00:00
|
|
|
install -m 0644 "$srcdir/$_FWPATH/brcm/"* "$pkgdir"/usr/lib/firmware/updates/brcm
|
2022-03-28 13:06:47 +00:00
|
|
|
rm "$pkgdir"/usr/lib/firmware/updates/brcm/{brcmfmac43430-sdio.bin,brcmfmac43430-sdio.txt}
|
2022-06-26 19:02:54 +00:00
|
|
|
install -m 0644 "$srcdir/$_FWPATH/cypress/"{cyfmac43455-sdio-*.bin,README.txt} "$pkgdir"/usr/lib/firmware/updates/brcm
|
2021-11-17 11:28:54 +00:00
|
|
|
|
|
|
|
# make some symbolic links
|
2022-03-28 13:06:47 +00:00
|
|
|
cd "$pkgdir"/usr/lib/firmware/updates/brcm
|
2022-05-15 09:47:40 +00:00
|
|
|
ln -s brcmfmac43456-sdio.txt brcmfmac43456-sdio.raspberrypi,400.txt
|
|
|
|
ln -s brcmfmac43456-sdio.txt brcmfmac43456-sdio.raspberrypi,4-compute-module.txt
|
|
|
|
ln -s brcmfmac43456-sdio.txt brcmfmac43456-sdio.pine64-pinephone-pro.txt
|
|
|
|
ln -s brcmfmac43455-sdio.raspberrypi,4-model-b.txt brcmfmac43455-sdio.raspberrypi,4-compute-module.txt
|
|
|
|
ln -s BCM43430B0.hcd BCM.hcd
|
2022-05-14 12:25:07 +00:00
|
|
|
|
2022-06-14 09:52:53 +00:00
|
|
|
# see README.txt: we can use either the -standard or -minimal files so use standard by default
|
|
|
|
ln -s cyfmac43455-sdio-standard.bin brcmfmac43455-sdio.bin
|
2017-09-10 16:06:48 +00:00
|
|
|
}
|