mlxsw_spectrum-firmware sub package

This commit is contained in:
Peter Robinson 2022-05-26 17:18:33 +01:00
parent a9bdf9196c
commit 0311f58229

View File

@ -1,5 +1,5 @@
%global debug_package %{nil}
%global firmware_release 132
%global firmware_release 133
%global _firmwarepath /usr/lib/firmware
%define _binaries_in_noarch_packages_terminate_build 0
@ -278,6 +278,13 @@ Requires: linux-firmware-whence
%description -n netronome-firmware
Firmware for Netronome Smart NICs
%package -n mlxsw_spectrum-firmware
Summary: Firmware for Mellanox Spectrum 1/2/3 Switches
License: Redistributable, no modification permitted
Requires: linux-firmware-whence
%description -n mlxsw_spectrum-firmware
Firmware for Mellanox Spectrumi series 1/2/3 ethernet switches.
%prep
%autosetup -p1
@ -335,6 +342,7 @@ sed -i -e '/^iwlwifi/d' \
-i -e '/^libertas\/sd8686/d' \
-i -e '/^libertas\/usb8388/d' \
-i -e '/^liquidio/d' \
-i -e '/^mellanox/d' \
-i -e '/^mrvl\/prestera/d' \
-i -e '/^mrvl\/sd8787/d' \
-i -e '/^netronome/d' \
@ -459,12 +467,19 @@ sed -e 's/^/%%dir /' linux-firmware.dirs >> linux-firmware.files
%dir %{_firmwarepath}/mrvl/prestera
%{_firmwarepath}/mrvl/prestera/*
%files -n mlxsw_spectrum-firmware
%dir %{_firmwarepath}/mellanox/
%{_firmwarepath}/mellanox/*
%files -n netronome-firmware
%license LICENCE.Netronome
%dir %{_firmwarepath}/netronome
%{_firmwarepath}/netronome/*
%changelog
* Thu May 26 2022 Peter Robinson <pbrobinson@fedoraproject.org> - 20220509-133
- Split Mellanox Spectrum 1/2/3 Switches firmware to a sub package
* Mon May 9 2022 Peter Robinson <pbrobinson@fedoraproject.org> - 20220509-132
- Update to upstream 20220509 release
- mediatek: Update mt8183/mt8192/mt8195 SCP firmware