File firmware-iw612.spec of Package firmware-iw612
#
# spec file for package firmware-iw612
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%if !%{defined _firmwaredir}
%define _firmwaredir /lib/firmware
%endif
Name: firmware-iw612
Version: 20250116
Release: 0
Summary: Firmware files for NXP IW612 chip
License: SUSE-Firmware
Group: System/Kernel
URL: https://github.com/nxp-imx/imx-firmware
Source0: https://raw.githubusercontent.com/nxp-imx/imx-firmware/refs/heads/lf-6.12.3_1.0.0/LICENSE.txt
Source1: https://raw.githubusercontent.com/nxp-imx/imx-firmware/refs/heads/lf-6.12.3_1.0.0/nxp/FwImage_IW612_SD/sd_w61x_v1.bin.se
Source2: https://raw.githubusercontent.com/nxp-imx/imx-firmware/refs/heads/lf-6.12.3_1.0.0/nxp/FwImage_IW612_SD/sduart_nw61x_v1.bin.se
# Provided by kernel-firmware-platform
#Source3: https://raw.githubusercontent.com/nxp-imx/imx-firmware/refs/heads/lf-6.12.3_1.0.0/nxp/FwImage_IW612_SD/uartspi_n61x_v1.bin.se
Source4: https://raw.githubusercontent.com/nxp-imx/imx-firmware/refs/heads/lf-6.12.3_1.0.0/nxp/FwImage_IW612_SD/uartuart_n61x_v1.bin.se
BuildRequires: suse-module-tools
Requires(post): %{_bindir}/mkdir
Requires(post): %{_bindir}/touch
Requires(postun): %{_bindir}/mkdir
Requires(postun): %{_bindir}/touch
Requires(post): dracut >= 049
Conflicts: kernel < 5.3
BuildArch: noarch
%if 0%{?suse_version} >= 1550
# make sure we have post-usrmerge filesystem package on TW
Conflicts: filesystem < 84
%endif
Supplements: modalias(sdio:c*v0000d1000*)
Supplements: modalias(spi:brd4001a)
%description
This package contains kernel firmware files for IW612 chip.
The IW612 is a highly integrated 2.4/5 GHz dual-band 1x1 Wi-Fi 6,
Bluetooth/Bluetooth Low Energy 5.4 and 802.15.4 tri-radio single-chip solution.
%prep
%setup -q -c -T
cp %{SOURCE0} .
%build
# nothing to do
%install
mkdir -p %{buildroot}%{_firmwaredir}/nxp
install -c -m 0644 %{SOURCE1} %{buildroot}%{_firmwaredir}/nxp/
install -c -m 0644 %{SOURCE2} %{buildroot}%{_firmwaredir}/nxp/
install -c -m 0644 %{SOURCE4} %{buildroot}%{_firmwaredir}/nxp/
%post
%{?regenerate_initrd_post}
%postun
%{?regenerate_initrd_post}
%posttrans
%{?regenerate_initrd_posttrans}
%files
%license LICENSE.txt
%dir %{_firmwaredir}/nxp
%{_firmwaredir}/nxp/sd_w61x_v1.bin.se
%{_firmwaredir}/nxp/sduart_nw61x_v1.bin.se
%{_firmwaredir}/nxp/uartuart_n61x_v1.bin.se
%changelog