File steamdeck-firmware.spec of Package steamdeck-firmware
%global _firmwarepath /usr/lib/firmware
Summary: Steam Deck OLED firmware for wifi and bluetooth
Name: steamdeck-firmware
Version: 20250311.1.0
Release: 0%{valvever}%{?dist}
License: Public Domain
Group: System Environment/Base
Source0: linux-firmware-neptune-%{version}.tar.xz
BuildArch: noarch
BuildRequires: filesystem
Requires: steamdeck-dsp
Requires: galileo-mura
%description
This package contains Steam Deck OLED firmware for wifi and bluetooth
%pre
%install
tar --strip-components 1 -xvf %{SOURCE0}
rm -rf %{buildroot}
# Create necessary directories in buildroot
install -d %{buildroot}%{_firmwarepath}/ath11k/QCA2066/hw2.1/
install -m 0644 %{_builddir}/ath11k/QCA2066/hw2.1/amss.bin %{buildroot}%{_firmwarepath}/ath11k/QCA2066/hw2.1/amss.bin
install -m 0644 %{_builddir}/ath11k/QCA2066/hw2.1/board-2.bin %{buildroot}%{_firmwarepath}/ath11k/QCA2066/hw2.1/board-2.bin
install -m 0644 %{_builddir}/ath11k/QCA2066/hw2.1/m3.bin %{buildroot}%{_firmwarepath}/ath11k/QCA2066/hw2.1/m3.bin
install -d %{buildroot}%{_firmwarepath}/qca/
install -m 0644 %{_builddir}/qca/hpbtfw21.tlv %{buildroot}%{_firmwarepath}/qca/hpbtfw21.tlv
install -m 0644 %{_builddir}/qca/hpnv21.309 %{buildroot}%{_firmwarepath}/qca/hpnv21.309
install -m 0644 %{_builddir}/qca/hpnv21.bin %{buildroot}%{_firmwarepath}/qca/hpnv21
install -m 0644 %{_builddir}/qca/hpnv21g.309 %{buildroot}%{_firmwarepath}/qca/hpnv21g.309
install -m 0644 %{_builddir}/qca/hpnv21g.bin %{buildroot}%{_firmwarepath}/qca/hpnv21g.bin
%files
%dir %{_firmwarepath}/qca
%dir %{_firmwarepath}/ath11k
%{_firmwarepath}/qca/*
%{_firmwarepath}/ath11k/*
%changelog
* Sat May 25 2024 Matthew Schwartz <njtransit215@gmail.com> - 20240503.1
- New version 20240503.1, switch to upstream Valve package instead of evlaV
* Thu Nov 25 2021 Thomas Crider <gloriouseggroll@gmail.com> - 1.0.0
- New version v1.0.0