Skip to content
Snippets Groups Projects
Verified Commit d21ff0aa authored by Bryan Zuelly's avatar Bryan Zuelly
Browse files

initial

parents
No related branches found
No related tags found
No related merge requests found
*.gz
41783dd15e21f591eb65d47bd013eba4c1bfccd6f52a43963b8971f32e89190b SOURCES/firmware-nonfree-a6ed59a078d52ad72f0f2b99e68f324e7411afa1.tar.gz
%global _fwpath /usr/lib/firmware
%global nonfree_commit a6ed59a078d52ad72f0f2b99e68f324e7411afa1
%global nonfree_srcdir firmware-nonfree-%{nonfree_commit}
Name: rpi-firmware-nonfree
Version: 20241222
Release: 1%{?dist}
Summary: Supplemental firmware used by Linux kernel for some Raspberry Pi models
BuildArch: noarch
ExclusiveArch: aarch64
# 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
Source0: https://github.com/RPi-Distro/firmware-nonfree/archive/%{nonfree_commit}/firmware-nonfree-%{nonfree_commit}.tar.gz
Requires: linux-firmware
%description
This package provides suppremental firmware files not included in linux-firmware
package to enable Bluetooth/Wi-Fi on some Raspberry Pi models.
%prep
%setup -n %{nonfree_srcdir}
%build
%install
install -d %{buildroot}%{_fwpath}/brcm
cp debian/config/brcm80211/brcm/brcmfmac43455-sdio.txt %{buildroot}%{_fwpath}/brcm/
cp debian/config/brcm80211/brcm/brcmfmac43456-sdio.txt %{buildroot}%{_fwpath}/brcm/
cp debian/config/brcm80211/brcm/brcmfmac43456-sdio.bin %{buildroot}%{_fwpath}/brcm/
cp debian/config/brcm80211/brcm/brcmfmac43456-sdio.clm_blob %{buildroot}%{_fwpath}/brcm/
# Other firmware files installed by linux-firmware are compressed, so compress these as well
xz -C crc32 %{buildroot}%{_fwpath}/brcm/brcmfmac43455-sdio.txt
xz -C crc32 %{buildroot}%{_fwpath}/brcm/brcmfmac43456-sdio.bin
xz -C crc32 %{buildroot}%{_fwpath}/brcm/brcmfmac43456-sdio.clm_blob
xz -C crc32 %{buildroot}%{_fwpath}/brcm/brcmfmac43456-sdio.txt
# Raspberry Pi CM 4
ln -s brcmfmac43455-sdio.bin.xz %{buildroot}%{_fwpath}/brcm/brcmfmac43455-sdio.raspberrypi,4-compute-module.bin.xz
ln -s brcmfmac43455-sdio.clm_blob.xz %{buildroot}%{_fwpath}/brcm/brcmfmac43455-sdio.raspberrypi,4-compute-module.clm_blob.xz
# Raspberry Pi 400
ln -s brcmfmac43456-sdio.bin.xz %{buildroot}%{_fwpath}/brcm/brcmfmac43456-sdio.raspberrypi,400.bin.xz
ln -s brcmfmac43456-sdio.clm_blob.xz %{buildroot}%{_fwpath}/brcm/brcmfmac43456-sdio.raspberrypi,400.clm_blob.xz
ln -s brcmfmac43456-sdio.txt.xz %{buildroot}%{_fwpath}/brcm/brcmfmac43456-sdio.raspberrypi,400.txt.xz
%files
%{_fwpath}/brcm/*
%changelog
* Sun Mar 02 2025 Bryan Zuelly <bzuelly@outlook.com> -
- Initial
- Based on linux-firmware-raspberry package from Alma Linux
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment