[packages/rtl8812au] don't override arch for module build

baggins baggins at pld-linux.org
Wed Jun 7 21:52:37 CEST 2023


commit f0520707ec23e486e936ca8585dd273eee17f5da
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Jun 7 21:51:50 2023 +0200

    don't override arch for module build

 no-arch-override.patch | 11 +++++++++++
 rtl8812au.spec         |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/rtl8812au.spec b/rtl8812au.spec
index fc4374b..15c72de 100644
--- a/rtl8812au.spec
+++ b/rtl8812au.spec
@@ -18,6 +18,7 @@ License:	GPL
 Group:		Base/Kernel
 Source0:	https://github.com/morrownr/8812au-%{basever}/archive/main/%{pname}-%{version}.tar.gz
 # Source0-md5:	8ae562b54e89a05894fa4daa0de388ec
+Patch0:		no-arch-override.patch
 # good luck finding this chip on Realtek website :/
 #URL:		http://www.realtek.com.tw/
 URL:		https://github.com/morrownr/8812au
@@ -62,6 +63,7 @@ Driver for AC1200 (802.11ac) Wireless Dual-Band USB Adapter\
 
 %prep
 %setup -q -n 8812au-%{basever}-main
+%patch0 -p1
 
 %build
 %{expand:%build_kernel_packages}
diff --git a/no-arch-override.patch b/no-arch-override.patch
new file mode 100644
index 0000000..c108db0
--- /dev/null
+++ b/no-arch-override.patch
@@ -0,0 +1,11 @@
+--- 8812au-20210629-main/Makefile~	2023-05-11 16:37:21.000000000 +0200
++++ 8812au-20210629-main/Makefile	2023-06-07 21:49:05.476523617 +0200
+@@ -2501,7 +2501,7 @@
+ all: modules
+ 
+ modules:
+-	$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd)  modules
++	$(MAKE) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd)  modules
+ 
+ strip:
+ 	$(CROSS_COMPILE)strip $(MODULE_NAME).ko --strip-unneeded
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rtl8812au.git/commitdiff/f0520707ec23e486e936ca8585dd273eee17f5da



More information about the pld-cvs-commit mailing list