File rtw88.spec of Package rtw88
#
# spec file for package rtw88
#
#
# Copyright (c) 2021 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/
#
#
# needssslcertforbuild
Name: rtw88
Summary: RTW88 supports 8822BE and 8822CE chips
Version: 5.16~29.gd61e855
Release: 0
Group: System/Kernel
License: GPL-2.0
Url: https://github.com/lwfinger/rtw88
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %{name}-%{version}.tar
Source1: preamble
Patch0: leap152.patch
#Patch1: redhat.patch
Patch2: leap153.patch
Patch3: Makefile.patch
BuildRequires: %{kernel_module_package_buildreqs}
BuildRequires: pesign-obs-integration
%kernel_module_package -n rtw88 -x debug -x trace -c %{_sourcedir}/_projectcert.crt -p %{_sourcedir}/preamble
%description
This is a new mac80211 driver for Realtek 802.11ac wireless network chips.
RTW88 supports 8822BE and 8822CE chips, and will be able to support
multi-vif combinations in run-time.
%debug_package
%prep
%setup -q
%if 0%{?sle_version} == 150200
%patch0 -p1
%endif
#%patch1 -p1
%if 0%{?sle_version} == 150300
%patch2 -p1
%endif
%patch3 -p1
set -- *
mkdir source
mv "$@" source/
mkdir obj
%build
export EXTRA_CFLAGS='-DVERSION=\"%{version}\"'
export CONFIG_RTW88=m
for flavor in %{flavors_to_build}; do
rm -rf obj/$flavor
cp -r source obj/$flavor
make %{?_smp_mflags} -C %{_prefix}/src/linux-obj/%{_target_cpu}/$flavor modules \
M=$PWD/obj/$flavor
done
%install
#install the module
export INSTALL_MOD_PATH=%{buildroot}
export INSTALL_MOD_DIR=updates/RTW88/
export CONFIG_RTW88=m
export BRP_PESIGN_FILES='*.ko'
export BRP_PESIGN_COMPRESS_MODULE="xz"
for flavor in %{flavors_to_build}; do
make -C %{_prefix}/src/linux-obj/%{_target_cpu}/$flavor modules_install \
M=$PWD/obj/$flavor
done
%changelog