mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
alarm/firmware-raspberrypi to 20201224-1
Use versioned tarballs and provide support for RPi 400.
This commit is contained in:
parent
5eb9ffe179
commit
f689f42f83
1 changed files with 37 additions and 19 deletions
|
@ -3,32 +3,50 @@
|
||||||
buildarch=28
|
buildarch=28
|
||||||
|
|
||||||
pkgname=firmware-raspberrypi
|
pkgname=firmware-raspberrypi
|
||||||
pkgver=6
|
_firmcommit=b66ab26cebff689d0d3257f56912b9bb03c20567
|
||||||
|
_bluecommit=da4bfb1ecf41025eafa5b11a54fd00808808d0f1
|
||||||
|
pkgver=20201224
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Additional firmware for Raspberry Pi"
|
pkgdesc="Additional firmware for Raspberry Pi"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url="https://archlinuxarm.org"
|
url="https://github.com/RPi-Distro/firmware-nonfree/commits/master/brcm"
|
||||||
license=('custom')
|
license=('custom')
|
||||||
options=('!strip')
|
options=('!strip')
|
||||||
source=('https://archlinuxarm.org/builder/src/bcm43430/7.45.98.38/brcmfmac43430-sdio.bin'
|
source=("nonfree-$pkgver-${_firmcommit:0:10}.tar.gz::https://github.com/RPi-Distro/firmware-nonfree/archive/${_firmcommit}.tar.gz"
|
||||||
'https://archlinuxarm.org/builder/src/bcm43430/7.45.98.38/brcmfmac43430-sdio.txt'
|
"bluez-$pkgver-${_bluecommit:0:10}.tar.gz::https://github.com/RPi-Distro/bluez-firmware/archive/${_bluecommit}.tar.gz"
|
||||||
'https://archlinuxarm.org/builder/src/bcm43430/BCM43430A1.hcd'
|
|
||||||
'https://archlinuxarm.org/builder/src/bcm43455/7.45.154/brcmfmac43455-sdio.bin'
|
|
||||||
'https://archlinuxarm.org/builder/src/bcm43455/7.45.154/brcmfmac43455-sdio.clm_blob'
|
|
||||||
'https://archlinuxarm.org/builder/src/bcm43455/7.45.154/brcmfmac43455-sdio.txt'
|
|
||||||
'https://archlinuxarm.org/builder/src/bcm43455/BCM4345C0.hcd'
|
|
||||||
'RPi-WM8804.conf')
|
'RPi-WM8804.conf')
|
||||||
sha256sums=('996b7ef7cbdb8ea3855fa516acb57630ff03a449fd3bb23e84789f2f04b4faf5'
|
sha256sums=('033a21d19fbdc7617b8c5b58d4be5951e29be5be787a45875b615f4d4dcf3f5b'
|
||||||
'e4ce7ad5ce72406f958ed758539b65d958d1c0eb3e46e3f8e9f02b510d88e0b0'
|
'ce834fcb7d984c367d3a23344c66449d0449a39680aba57fffdf331049cc741b'
|
||||||
'8dd70b9003d39cb6175b4f3cd509666dad66ad23d3be1a68385817fb814c8930'
|
|
||||||
'0f1817f50649df707f521dec9f2d5905e4c01939c8aabfa9a06b2ce0a36952ee'
|
|
||||||
'8e2250518bc789e53109728c3c0a6124bc3801a75a1cb4966125753cf1f0252e'
|
|
||||||
'27c6b39f113f94a8c15eae63f8605e043332775c469ea072bf325773bb9ae553'
|
|
||||||
'1788c58ecedd61b380e0dd120844ed61e5fbbea0a58e84e6293685eb3384fddc'
|
|
||||||
'f978fbc40db75ba3213a4472023496d0716706eb1a6f078f207ac027c5753f43')
|
'f978fbc40db75ba3213a4472023496d0716706eb1a6f078f207ac027c5753f43')
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
install -d "${pkgdir}/usr/lib/firmware/updates/brcm" "${pkgdir}/usr/share/alsa/cards/"
|
install -d "$pkgdir/usr/lib/firmware/updates/brcm" "$pkgdir/usr/share/alsa/cards/"
|
||||||
install -m 0644 *.bin *.txt *.clm_blob *.hcd "${pkgdir}/usr/lib/firmware/updates/brcm"
|
install -m 0644 RPi-WM8804.conf "$pkgdir/usr/share/alsa/cards/"
|
||||||
install -m 0644 RPi-WM8804.conf "${pkgdir}/usr/share/alsa/cards/"
|
|
||||||
|
_bluez=(
|
||||||
|
BCM43430A1.hcd
|
||||||
|
BCM4345C0.hcd
|
||||||
|
BCM4345C5.hcd
|
||||||
|
)
|
||||||
|
for i in "${_bluez[@]}"; do
|
||||||
|
install -m 0644 "bluez-firmware-$_bluecommit/broadcom/$i" "$pkgdir/usr/lib/firmware/updates/brcm/$i"
|
||||||
|
done
|
||||||
|
|
||||||
|
# BCM43430 on Zero/3A/3B
|
||||||
|
# BCM43455 on 3A+/3B+/4B/CM4
|
||||||
|
# BCM43456 on 400
|
||||||
|
|
||||||
|
_payload=(
|
||||||
|
brcmfmac43430-sdio.bin
|
||||||
|
brcmfmac43430-sdio.txt
|
||||||
|
brcmfmac43455-sdio.bin
|
||||||
|
brcmfmac43455-sdio.clm_blob
|
||||||
|
brcmfmac43455-sdio.txt
|
||||||
|
brcmfmac43456-sdio.bin
|
||||||
|
brcmfmac43456-sdio.clm_blob
|
||||||
|
brcmfmac43456-sdio.txt
|
||||||
|
)
|
||||||
|
for i in "${_payload[@]}"; do
|
||||||
|
install -m 0644 "firmware-nonfree-$_firmcommit/brcm/$i" "$pkgdir/usr/lib/firmware/updates/brcm/$i"
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue