unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: gemmaro <gemmaro.dev@gmail.com>
To: 65548@debbugs.gnu.org
Cc: gemmaro <gemmaro.dev@gmail.com>, Leo Famulari <leo@famulari.name>,
	Tobias Geerinckx-Rice <me@tobias.gr>
Subject: [bug#65548] [PATCH] gnu: Add rtl8852au-linux-module.
Date: Sat, 26 Aug 2023 16:24:21 +0900	[thread overview]
Message-ID: <4a4f831b77ec4773d3ef407103874436110de5b8.1693034661.git.gemmaro.dev@gmail.com> (raw)

* gnu/packages/linux.scm (rtl8852au-linux-module): New variable.
---
I tried to build with --rounds=2 for this patch and it failed.
Maybe something needs to be done to make it reproducible.

 gnu/packages/linux.scm | 51 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 10babc8f7e..b8e32ae4d6 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -74,6 +74,7 @@
 ;;; Copyright © 2023 Bruno Victal <mirai@makinata.eu>
 ;;; Copyright © 2023 Yovan Naumovski <yovan@gorski.stream>
 ;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
+;;; Copyright © 2023 gemmaro <gemmaro.dev@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1722,6 +1723,56 @@ (define-public ddcci-driver-linux
 supported under @file{/sys/class/backlight/}.")
     (license license:gpl2+)))
 
+(define-public rtl8852au-linux-module
+  (package
+    (name "rtl8852au-linux-module")
+    (version "20230801-716e525")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/lwfinger/rtl8852au")
+                    (commit "716e52567d7a4d1b665a09bea08125fd10c59bf6")))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1i1idqiwqzvxkjnkmlrr23bnvi59iimp09ng66jsfawf8kn9j9g1"))))
+    (build-system linux-module-build-system)
+    (arguments
+     (list #:tests? #f ;no tests
+           #:make-flags #~(list (string-append "CC="
+                                               #$(cc-for-target))
+                                (string-append "KSRC="
+                                               (assoc-ref %build-inputs
+                                                "linux-module-builder")
+                                               "/lib/modules/build"))
+           #:phases #~(modify-phases %standard-phases
+                        (replace 'build
+                          (lambda* (#:key outputs #:allow-other-keys)
+                            (substitute* "Makefile"
+                              (("\\$\\(KSRC\\)")
+                               (string-append (assoc-ref %build-inputs
+                                               "linux-module-builder")
+                                              "/lib/modules/build"))
+                              (("\\$\\(CC\\)")
+                               (string-append #$(cc-for-target))))
+                            (invoke "make")))
+                        (add-after 'build 'strip
+                          (lambda _
+                            (invoke "make" "strip"))))))
+    (home-page "https://github.com/lwfinger/rtl8852au")
+    (synopsis "Driver for RTL8862AU tipsets")
+    (description
+     "@samp{rtl8852au} is a driver for RTL8862AU tipsets, and was started
+with the code from the Realtek USB driver
+@samp{RTL8852AU_WiFi_linux_v1.15.0.1-0-g487ee886.20210714}.  The
+devices handled by this driver include BUFFALO
+`@samp{WI-U3-1200AX2(/N)} with USB ID @samp{0411:0312}', for example.
+
+You might want to add this package to the
+@code{kernel-loadable-modules} field in the @code{operating-system}
+declaraiton.")
+    (license license:gpl2)))
+
 (define-public v4l2loopback-linux-module
   (package
     (name "v4l2loopback-linux-module")

base-commit: eeb71d778f149834015858467fbeeb1276d96d1d
-- 
2.41.0





                 reply	other threads:[~2023-08-26  7:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4a4f831b77ec4773d3ef407103874436110de5b8.1693034661.git.gemmaro.dev@gmail.com \
    --to=gemmaro.dev@gmail.com \
    --cc=65548@debbugs.gnu.org \
    --cc=leo@famulari.name \
    --cc=me@tobias.gr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).