2023-04-20 09:42:29 +00:00
|
|
|
%global _firmwarepath /usr/lib/firmware
|
2024-05-28 07:55:02 +00:00
|
|
|
%global fn_commit 223ccf3a3ddb11b3ea829749fbbba4d65b380897
|
2023-11-17 07:33:50 +00:00
|
|
|
%global fn_shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
|
%global bz_commit d9d4741caba7314d6500f588b1eaa5ab387a4ff5
|
|
|
|
%global bz_shortcommit %(c=%{bz_commit}; echo ${c:0:7})
|
|
|
|
%global fn_srcdir firmware-nonfree-%{fn_commit}
|
|
|
|
%global bz_srcdir bluez-firmware-%{bz_commit}
|
2023-04-20 09:42:29 +00:00
|
|
|
|
|
|
|
Name: linux-firmware-raspberrypi
|
2024-05-28 07:55:02 +00:00
|
|
|
Version: 20240528
|
2024-05-29 05:23:35 +00:00
|
|
|
Release: 2%{?dist}
|
2023-04-20 09:42:29 +00:00
|
|
|
Summary: Supplemental firmware used by Linux kernel for some Raspberry Pi models
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
# LICENSE file installed by linux-firmware package also covers these suppremental firmware
|
|
|
|
# /usr/share/licenses/linux-firmware/LICENCE.broadcom_bcm43xx
|
|
|
|
License: Redistributable, no modification permitted
|
|
|
|
URL: https://github.com/RPi-Distro/firmware-nonfree
|
|
|
|
|
2023-11-17 07:33:50 +00:00
|
|
|
Source0: https://github.com/RPi-Distro/firmware-nonfree/archive/%{fn_commit}/firmware-nonfree-%{fn_commit}.tar.gz
|
|
|
|
Source1: https://github.com/RPi-Distro/bluez-firmware/archive/%{bz_commit}/bluez-firmware-%{bz_commit}.tar.gz
|
2023-04-20 09:42:29 +00:00
|
|
|
|
|
|
|
Requires: linux-firmware
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides suppremental firmware files not included in linux-firmware
|
2023-11-17 07:33:50 +00:00
|
|
|
package to enable Bluetooth/Wi-Fi on some Raspberry Pi models.
|
2023-04-20 09:42:29 +00:00
|
|
|
|
|
|
|
%prep
|
2023-11-17 07:33:50 +00:00
|
|
|
%setup -n %{fn_srcdir}
|
|
|
|
%setup -n %{fn_srcdir} -a 1
|
2023-04-20 09:42:29 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
install -d %{buildroot}%{_firmwarepath}/brcm
|
2024-05-29 05:23:35 +00:00
|
|
|
install -c -m 644 debian/config/brcm80211/brcm/brcmfmac43455-sdio.txt %{buildroot}%{_firmwarepath}/brcm/
|
2023-04-20 09:42:29 +00:00
|
|
|
install -c -m 644 debian/config/brcm80211/brcm/brcmfmac43456-sdio.txt %{buildroot}%{_firmwarepath}/brcm/
|
|
|
|
install -c -m 644 debian/config/brcm80211/brcm/brcmfmac43456-sdio.bin %{buildroot}%{_firmwarepath}/brcm/
|
|
|
|
install -c -m 644 debian/config/brcm80211/brcm/brcmfmac43456-sdio.clm_blob %{buildroot}%{_firmwarepath}/brcm/
|
2023-11-17 07:33:50 +00:00
|
|
|
# Bluetooth for RPi Zero 2W
|
|
|
|
install -c -m 644 %{bz_srcdir}/debian/firmware/broadcom/BCM43430B0.hcd %{buildroot}%{_firmwarepath}/brcm/
|
2024-05-28 07:55:02 +00:00
|
|
|
# Bluetooth for RPi 3B+, 4, 5
|
2023-11-17 07:33:50 +00:00
|
|
|
install -c -m 644 %{bz_srcdir}/debian/firmware/broadcom/BCM43430A1.hcd %{buildroot}%{_firmwarepath}/brcm/
|
|
|
|
install -c -m 644 %{bz_srcdir}/debian/firmware/broadcom/BCM4345C0.hcd %{buildroot}%{_firmwarepath}/brcm/
|
|
|
|
# Bluetooth for RPi 400
|
|
|
|
install -c -m 644 %{bz_srcdir}/debian/firmware/broadcom/BCM4345C5.hcd %{buildroot}%{_firmwarepath}/brcm/
|
2024-06-04 08:52:25 +00:00
|
|
|
# Other firmware files installed by linux-firmware are compressed, so compress these as well
|
2024-05-29 05:23:35 +00:00
|
|
|
xz -C crc32 %{buildroot}%{_firmwarepath}/brcm/brcmfmac43455-sdio.txt
|
2024-06-04 08:52:25 +00:00
|
|
|
xz -C crc32 %{buildroot}%{_firmwarepath}/brcm/brcmfmac43456-sdio.bin
|
|
|
|
xz -C crc32 %{buildroot}%{_firmwarepath}/brcm/brcmfmac43456-sdio.clm_blob
|
|
|
|
xz -C crc32 %{buildroot}%{_firmwarepath}/brcm/brcmfmac43456-sdio.txt
|
|
|
|
xz -C crc32 %{buildroot}%{_firmwarepath}/brcm/BCM43430A1.hcd
|
|
|
|
xz -C crc32 %{buildroot}%{_firmwarepath}/brcm/BCM43430B0.hcd
|
|
|
|
xz -C crc32 %{buildroot}%{_firmwarepath}/brcm/BCM4345C0.hcd
|
|
|
|
xz -C crc32 %{buildroot}%{_firmwarepath}/brcm/BCM4345C5.hcd
|
2023-04-20 09:42:29 +00:00
|
|
|
# Create model-specific symlinks
|
2024-05-28 07:55:02 +00:00
|
|
|
# Raspberry Pi 400
|
2024-06-04 08:52:25 +00:00
|
|
|
ln -s brcmfmac43456-sdio.bin.xz %{buildroot}%{_firmwarepath}/brcm/brcmfmac43456-sdio.raspberrypi,400.bin.xz
|
|
|
|
ln -s brcmfmac43456-sdio.clm_blob.xz %{buildroot}%{_firmwarepath}/brcm/brcmfmac43456-sdio.raspberrypi,400.clm_blob.xz
|
|
|
|
ln -s brcmfmac43456-sdio.txt.xz %{buildroot}%{_firmwarepath}/brcm/brcmfmac43456-sdio.raspberrypi,400.txt.xz
|
2024-05-28 07:55:02 +00:00
|
|
|
# Raspberry Pi 5
|
|
|
|
ln -s BCM4345C0.hcd.xz %{buildroot}%{_firmwarepath}/brcm/BCM4345C0.raspberrypi,5-model-b.hcd.xz
|
|
|
|
ln -s brcmfmac43455-sdio.bin.xz %{buildroot}%{_firmwarepath}/brcm/brcmfmac43455-sdio.raspberrypi,5-model-b.bin.xz
|
|
|
|
ln -s brcmfmac43455-sdio.clm_blob.xz %{buildroot}%{_firmwarepath}/brcm/brcmfmac43455-sdio.raspberrypi,5-model-b.clm_blob.xz
|
2024-05-29 05:23:35 +00:00
|
|
|
ln -s brcmfmac43455-sdio.txt.xz %{buildroot}%{_firmwarepath}/brcm/brcmfmac43455-sdio.raspberrypi,5-model-b.txt.xz
|
2023-04-20 09:42:29 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%{_firmwarepath}/brcm/*
|
|
|
|
|
|
|
|
%changelog
|
2024-05-29 05:23:35 +00:00
|
|
|
* Tue May 28 2024 Koichiro Iwao <meta@almalinux.org> - 20240528-2
|
|
|
|
- Fix symlink typo and add missing file
|
|
|
|
|
|
|
|
* Tue May 28 2024 Koichiro Iwao <meta@almalinux.org> - 20240528-1
|
2024-05-28 07:55:02 +00:00
|
|
|
- Update firmware-nonfree to 223ccf3
|
|
|
|
- Add symlink for RPi 5
|
|
|
|
|
2023-11-17 07:33:50 +00:00
|
|
|
* Fri Nov 17 2023 Koichiro Iwao <meta@almalinux.org> - 20231117-1
|
|
|
|
- Add firmware to support Bluetooth for RPi 3B+, Zero 2 W and 400
|
|
|
|
|
2023-04-20 09:42:29 +00:00
|
|
|
* Thu Apr 20 2023 Koichiro Iwao <koichiro.iwao@miraclelinux.com> - 20230420-1
|
2024-06-04 08:52:25 +00:00
|
|
|
- Initial creation
|