From patchwork Sat Aug 26 07:24:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: gemmaro X-Patchwork-Id: 53227 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id D1A8127BBEA; Sat, 26 Aug 2023 08:28:12 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6108C27BBE2 for ; Sat, 26 Aug 2023 08:28:11 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZniC-0005rY-Ih; Sat, 26 Aug 2023 03:28:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qZniA-0005rB-QB for guix-patches@gnu.org; Sat, 26 Aug 2023 03:27:58 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qZniA-0007Wu-86 for guix-patches@gnu.org; Sat, 26 Aug 2023 03:27:58 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qZniE-000362-Ds; Sat, 26 Aug 2023 03:28:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65548] [PATCH] gnu: Add rtl8852au-linux-module. Resent-From: gemmaro Original-Sender: "Debbugs-submit" Resent-CC: leo@famulari.name, me@tobias.gr, guix-patches@gnu.org Resent-Date: Sat, 26 Aug 2023 07:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65548 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65548@debbugs.gnu.org Cc: gemmaro , Leo Famulari , Tobias Geerinckx-Rice X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Leo Famulari , Tobias Geerinckx-Rice Received: via spool by submit@debbugs.gnu.org id=B.169303484211852 (code B ref -1); Sat, 26 Aug 2023 07:28:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 Aug 2023 07:27:22 +0000 Received: from localhost ([127.0.0.1]:41640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZnha-000356-5W for submit@debbugs.gnu.org; Sat, 26 Aug 2023 03:27:22 -0400 Received: from lists.gnu.org ([2001:470:142::17]:54104) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZnhW-00034s-Mc for submit@debbugs.gnu.org; Sat, 26 Aug 2023 03:27:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qZnhK-0005TK-Lu for guix-patches@gnu.org; Sat, 26 Aug 2023 03:27:06 -0400 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qZnhH-0007PT-TS for guix-patches@gnu.org; Sat, 26 Aug 2023 03:27:06 -0400 Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1bf1935f6c2so11575595ad.1 for ; Sat, 26 Aug 2023 00:27:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693034822; x=1693639622; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=WqfGGZAjCZfUy1nhqUJVqGVP/x5oVFbHyOaB6V+iuPM=; b=XJqES6w8Kw/+/1S/QrwynbahCr8BydqenKlbZlcOq4R/RG/wFz6U4Cp7B8+8dlaMur Vc7JCEz7sRqRavbVT5WMpu7ZyQF6LDlPiZLhunQQ6St9kYi0bHyBicqSU4pzj8h3FPzz 8yacvCS+QefyOQJ1zqqBm9Dxrzfw8nplZHvkS952iuJpqsazEKBx2TAwT0enLfEy16ma 2cvOGwmm5jTE8IGJTxTpO3ze+JXO2+ij4bGvaBvGNKFiK/JwpV90vUF4TioIX1S3fnD9 bvkizlsWBT3oIZJdOjTb7Z5uvHX3MOnIUcAF/kdlIY6th/S0/8KVtVJd/ZxYBhOegvfc cs7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693034822; x=1693639622; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WqfGGZAjCZfUy1nhqUJVqGVP/x5oVFbHyOaB6V+iuPM=; b=f47lTTNJwNZQl02h2CFQsu8yKF7YG//jsQNCBnfpBJn0OqsraxBfd/EJ9Ggf1USUID CNpPtB9nUIPJGVFLnoHDDBDlKe9gQzsD956KLk6ZapJcmQsbV8zGKgjrmmdiDgTOLRTa nFR0RejZ9aR8rBkIwMDv9HRi77EWXcL6eIdQ8GXNgch7v1rfrBRRLXQeIPeM5KcyBUzy 3swU/MdB6XvROs0RtHeACVxfWCVSkIBC3JfZfGYDkOVyfY8UvBZhmVEiU2+ACAB1Q19F +e40VzJ/ZkdQ/34uMU5wsC1DEOe1Zl8O7wGokix0+ecdE3SbSg+QGL/INSFSIGHNv87K bYsQ== X-Gm-Message-State: AOJu0YyWFytiEsXrJzQWRHVNbY5K9M/9uyHoLGBpstxcjG4bN2D5eAPj zVj++KSDKn22rAK4ZgI74EDBAlWJ2xQV9g== X-Google-Smtp-Source: AGHT+IF3glJie5Ray/8khGEB5GydWUzbXQCIF3weaHrTkwAeIOq4bQ453P/KJV2UH58cANIr8wyt5Q== X-Received: by 2002:a17:902:64cf:b0:1bc:17ab:8d68 with SMTP id y15-20020a17090264cf00b001bc17ab8d68mr25248067pli.16.1693034822102; Sat, 26 Aug 2023 00:27:02 -0700 (PDT) Received: from mac.gemmaro.name ([240f:74:d1f0:1:eb62:1231:e5af:4ec9]) by smtp.gmail.com with ESMTPSA id c2-20020a63a402000000b0054fa8539681sm2944152pgf.34.2023.08.26.00.27.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Aug 2023 00:27:01 -0700 (PDT) From: gemmaro Date: Sat, 26 Aug 2023 16:24:21 +0900 Message-ID: <4a4f831b77ec4773d3ef407103874436110de5b8.1693034661.git.gemmaro.dev@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62b; envelope-from=gemmaro.dev@gmail.com; helo=mail-pl1-x62b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * 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(+) base-commit: eeb71d778f149834015858467fbeeb1276d96d1d 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 ;;; Copyright © 2023 Yovan Naumovski ;;; Copyright © 2023 Zheng Junjie <873216071@qq.com> +;;; Copyright © 2023 gemmaro ;;; ;;; 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")