2017-10-19 14:07:15 +02:00
|
|
|
#
|
|
|
|
# spec file for package rtl8812au
|
|
|
|
#
|
2022-04-08 09:42:12 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2017-10-19 14:07:15 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-01-23 14:23:57 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-10-19 14:07:15 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-11-30 10:33:26 +01:00
|
|
|
%{?!kernel_module_directory:%define kernel_module_directory /lib/modules}
|
|
|
|
|
2017-10-19 14:07:15 +02:00
|
|
|
Name: rtl8812au
|
2022-09-27 11:34:12 +02:00
|
|
|
Version: 5.13.6+git20220905.a8450b0
|
2017-10-19 14:07:15 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Kernel driver for Realtek 802.11ac 8812au wifi cards
|
2018-04-02 08:44:44 +02:00
|
|
|
License: GPL-2.0-only
|
2017-10-19 14:07:15 +02:00
|
|
|
Group: System/Kernel
|
2022-09-27 08:55:20 +02:00
|
|
|
URL: https://github.com/morrownr/8812au-20210629
|
2021-10-01 20:31:43 +02:00
|
|
|
ExcludeArch: s390x
|
2017-10-19 14:07:15 +02:00
|
|
|
Source0: %{name}-%{version}.tar.xz
|
|
|
|
Source1: %{name}-preamble
|
2018-03-19 22:59:47 +01:00
|
|
|
Source2: LICENSE
|
2019-02-01 11:50:07 +01:00
|
|
|
# PATCH-FIX-OPENSUSE fix-backported-ndo_select_queue.patch
|
|
|
|
Patch0: fix-backported-ndo_select_queue.patch
|
2021-05-12 08:41:12 +02:00
|
|
|
# PATCH-FIX-OPENSUSE fix-backported-update_mgmt_frame_registrations.patch
|
|
|
|
Patch1: fix-backported-update_mgmt_frame_registrations.patch
|
2017-10-19 14:07:15 +02:00
|
|
|
BuildRequires: %{kernel_module_package_buildreqs}
|
2018-03-19 22:59:47 +01:00
|
|
|
BuildRequires: bc
|
|
|
|
BuildRequires: binutils
|
2017-10-19 14:07:15 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: kernel-devel
|
|
|
|
BuildRequires: kernel-source
|
|
|
|
BuildRequires: module-init-tools
|
|
|
|
%kernel_module_package -p %{name}-preamble
|
|
|
|
|
|
|
|
%description
|
|
|
|
Kernel driver for Realtek 802.11ac 8812au wifi cards
|
|
|
|
|
2022-09-27 08:55:20 +02:00
|
|
|
The sources were obtained from https://github.com/morrownr/8812au-20210629, which adaptes the official driver
|
2017-10-19 14:07:15 +02:00
|
|
|
released by Realtek to build on recent kernels.
|
|
|
|
|
2022-09-27 08:55:20 +02:00
|
|
|
The previous sources were obtained from https://github.com/morrownr/8812au-20210629, https://github.com/diederikdehaas/rtl8812AU and
|
2018-03-19 22:59:47 +01:00
|
|
|
https://github.com/maurossi/rtl8812au/ .
|
|
|
|
|
2017-10-19 14:07:15 +02:00
|
|
|
%package KMP
|
|
|
|
Summary: Kernel driver for Realtek 802.11ac rtl8812au wifi cards
|
|
|
|
Group: System/Kernel
|
|
|
|
|
|
|
|
%description KMP
|
|
|
|
Kernel driver for Realtek 802.11ac 8812au wifi cards
|
|
|
|
|
2018-03-19 22:59:47 +01:00
|
|
|
The sources were obtained from https://github.com/gordboy/rtl8812au, which adaptes the official driver
|
|
|
|
released by Realtek to build on recent kernels.
|
|
|
|
|
2022-09-27 08:55:20 +02:00
|
|
|
The previous sources were obtained from https://github.com/morrownr/8812au-20210629, https://github.com/diederikdehaas/rtl8812AU and
|
2018-03-19 22:59:47 +01:00
|
|
|
https://github.com/maurossi/rtl8812au/ .
|
2017-10-19 14:07:15 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2020-04-03 10:09:57 +02:00
|
|
|
%if 0%{?sle_version} == 150100
|
2019-02-01 11:50:07 +01:00
|
|
|
%patch0 -p1
|
2021-05-12 08:41:12 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?sle_version} == 150300
|
|
|
|
%patch1 -p1
|
2019-02-01 11:50:07 +01:00
|
|
|
%endif
|
2017-10-19 14:07:15 +02:00
|
|
|
|
|
|
|
set -- *
|
|
|
|
mkdir source
|
|
|
|
mv "$@" source/
|
2018-03-19 22:59:47 +01:00
|
|
|
cp "%{S:2}" source/
|
2017-10-19 14:07:15 +02:00
|
|
|
mkdir obj
|
|
|
|
|
|
|
|
%build
|
2018-04-02 08:44:44 +02:00
|
|
|
%ifarch %arm
|
|
|
|
export ARCH=arm
|
|
|
|
%endif
|
|
|
|
%ifarch aarch64
|
|
|
|
export ARCH=arm64
|
|
|
|
%endif
|
|
|
|
%ifarch %ppc ppc64 ppc64le
|
|
|
|
export ARCH=powerpc
|
|
|
|
%endif
|
2020-07-06 12:04:00 +02:00
|
|
|
%ifarch riscv64
|
|
|
|
export ARCH=riscv
|
|
|
|
%endif
|
2021-10-01 20:31:43 +02:00
|
|
|
|
2017-10-19 14:07:15 +02:00
|
|
|
for flavor in %{flavors_to_build} ; do
|
|
|
|
cp -a source obj/$flavor
|
|
|
|
pushd obj/$flavor
|
2018-03-19 22:59:47 +01:00
|
|
|
sed -i -e "s,^KSRC := /lib/modules/\$(KVER)/build$,KSRC := %{_prefix}/src/linux-obj/%{_target_cpu}/$flavor," Makefile
|
2021-11-30 10:33:26 +01:00
|
|
|
make -O V=1 %{?_smp_mflags}
|
2017-10-19 14:07:15 +02:00
|
|
|
popd
|
|
|
|
done
|
|
|
|
|
|
|
|
%install
|
|
|
|
export INSTALL_MOD_PATH=%{buildroot}
|
|
|
|
export INSTALL_MOD_DIR=%{kernel_module_package_moddir}
|
2018-08-30 14:26:35 +02:00
|
|
|
kernel_version=`uname -r | sed -e "s/-[^-]*$//"`
|
|
|
|
|
2017-10-19 14:07:15 +02:00
|
|
|
echo ${kernel_version}
|
|
|
|
for flavor in %{flavors_to_build} ; do
|
|
|
|
pushd obj/$flavor
|
2021-11-30 10:33:26 +01:00
|
|
|
install -d %{buildroot}%{kernel_module_directory}/${kernel_version}-${flavor}/${INSTALL_MOD_DIR}/
|
|
|
|
install -p -m 644 8812au.ko %{buildroot}%{kernel_module_directory}/${kernel_version}-${flavor}/${INSTALL_MOD_DIR}/
|
2017-10-19 14:07:15 +02:00
|
|
|
popd
|
|
|
|
done
|
|
|
|
|
|
|
|
%files
|
2018-08-30 14:26:35 +02:00
|
|
|
%license source/LICENSE
|
2017-10-19 14:07:15 +02:00
|
|
|
|
|
|
|
%changelog
|