From patchwork Mon Mar 31 18:56:03 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Morgan Smith X-Patchwork-Id: 41090 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 74A7627BBE9; Mon, 31 Mar 2025 20:03:18 +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=-6.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable 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 8A0A427BBE2 for ; Mon, 31 Mar 2025 20:03:15 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tzKPa-0006fm-2W; Mon, 31 Mar 2025 15:03:06 -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 1tzKPY-0006fY-25 for guix-patches@gnu.org; Mon, 31 Mar 2025 15:03:04 -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 1tzKPX-0003Fu-DC for guix-patches@gnu.org; Mon, 31 Mar 2025 15:03:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=aIZVZQPT5kCLHyIvCTGNfdUsPTHGUpjSVx+Ztuh/g7o=; b=Mn99cTtf1lTB8qjTR3N0T5qZZjsLpJh6tcePqq9RkWk298jp3QkpppXIH2NgQWrXNCaXcum/TgIyXVOjdU1QocsRPV1XUYbun5foPmqq4GsftkNEG4cLb0yqLdZ9InkAgi2Bnmj5S1VBwx83Sfzz32V1Fum5a/tOlVfBQAIj72/YYrkFOGoDB/T6LBQ+JMp+vaENcz6i8XSfCieEL2xsYJSFoJXrLnBbEVsZolvOVlCPILBfsj3xuK3UCkrOxJDgBNa1/HM4WF20XRfw8dwJHmCczDKLD3RD065XOD2b1Hd67Wg1E9rhYTaGJNi+O6vbgsLgW9ZyrAOlUUi4/4NwkA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tzKPW-000858-EN; Mon, 31 Mar 2025 15:03:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77411] [PATCH] gnu: Add xone. Resent-From: Morgan Smith Original-Sender: "Debbugs-submit" Resent-CC: leo@famulari.name, w@wmeyer.eu, guix-patches@gnu.org Resent-Date: Mon, 31 Mar 2025 19:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 77411 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77411@debbugs.gnu.org Cc: Morgan Smith , Leo Famulari , Wilko Meyer X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Leo Famulari , Wilko Meyer Received: via spool by submit@debbugs.gnu.org id=B.174344776030980 (code B ref -1); Mon, 31 Mar 2025 19:03:02 +0000 Received: (at submit) by debbugs.gnu.org; 31 Mar 2025 19:02:40 +0000 Received: from localhost ([127.0.0.1]:42859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tzKP9-00083X-Gb for submit@debbugs.gnu.org; Mon, 31 Mar 2025 15:02:40 -0400 Received: from lists.gnu.org ([2001:470:142::17]:49070) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tzKP6-00081m-48 for submit@debbugs.gnu.org; Mon, 31 Mar 2025 15:02:37 -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 1tzKOg-0006Sd-NE for guix-patches@gnu.org; Mon, 31 Mar 2025 15:02:18 -0400 Received: from mail-dm3nam02olkn2106.outbound.protection.outlook.com ([40.92.43.106] helo=NAM02-DM3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tzKOX-0003C7-9i for guix-patches@gnu.org; Mon, 31 Mar 2025 15:02:09 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=G6h8zq71C0pkeqnJCL6U267OBgfBwQEnXoZeUpwouve4jnGhd4EQPuj6uJhYoJYtLmhHjmdW3diKkiG0cQwyCwRU20aXiUIPZ5NSO7b6TrUSv8JLUtC5O1FT89VDhgHT+Kp5uHrhf3Biv1hP17ovi4E/jbU7EDNO3AIZoFSnDACgv8pBOusFgcEyJMv27jqVodZDDVw5LExgkNl4rMt0ONokyJra34j0C294PBG79bQ9vrulUOcmUb3PNk83G1S5B0Q2avvHesr6XnzcyN+jN2oN5acEk68i6Rl4LTsYP9il6SmiqJSTIbQozid8ELWd3DxZZeSswN5wiNlTCBAnrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=aIZVZQPT5kCLHyIvCTGNfdUsPTHGUpjSVx+Ztuh/g7o=; b=oEvEZ29Y+vDXYbQW79PWPPRF4LmeEH9++tURwHvfWJTW7j8tcXBcJOpV8p+ECgZjmF9dcYi7mDqUl8BlolhlDwrZhuO1GCucb4Fq950FXAWu6Uk7cKbXYWaGH9UgISk+hPA/+vLkOtTFx8H4kFzeJdwAq7z1LbsCpWiiDMot8rRRcGe0Xw183oY9oCey9cER2maDj2gfCUWrE71kjux4JuPtJLcum+dINs9hY4U7Rk32QjSkUvJuf/t3oO5SfMJEpXF++4LyqaLotnmpuFGV6uFgTXpfmBrF9Z/Xzjz2kh/KKfQR2t/8PUlYrUNx8oIYXe9yBgaoiReh6i8/gQTWww== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aIZVZQPT5kCLHyIvCTGNfdUsPTHGUpjSVx+Ztuh/g7o=; b=KajZyDTCVycHFKPisLLK9FfT6hgNZGn7EIoA5dG3tIqkzGJKKSTUSPnKj/1K+H2TZ6tqYI3yN4b1YnS7n6evVLt231RQoSKao02g4G/uCZfh7IYnxEuPxHDi4R73tZMtm7RleVe8Gpk0qIr0qh1vS/clEkpovvO+zAzYmtrLC2gqdgAgIucZhZuwdFAATD2D50VkVHFB2mXE8U2j3Cts/P9yjhkIyMFhm3+6bFIByx5LzosNJcbNRJnYA+Cuzc30/78cAxpilOcI2npqzhHzzRDiU7Cthu73iGxGxP/qmVsBJMK7jIZiVMEf6dhISKMwEuDQS5L+MqnzeH3vjjR22w== Received: from CH3PR84MB3424.NAMPRD84.PROD.OUTLOOK.COM (2603:10b6:610:1c4::17) by IA2PR84MB3884.NAMPRD84.PROD.OUTLOOK.COM (2603:10b6:208:4ab::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8583.33; Mon, 31 Mar 2025 18:56:55 +0000 Received: from CH3PR84MB3424.NAMPRD84.PROD.OUTLOOK.COM ([fe80::5c77:7a58:48ed:9aef]) by CH3PR84MB3424.NAMPRD84.PROD.OUTLOOK.COM ([fe80::5c77:7a58:48ed:9aef%4]) with mapi id 15.20.8583.038; Mon, 31 Mar 2025 18:56:55 +0000 From: Morgan Smith Date: Mon, 31 Mar 2025 14:56:03 -0400 Message-ID: X-Mailer: git-send-email 2.49.0 X-ClientProxiedBy: YT1PR01CA0086.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:2d::25) To CH3PR84MB3424.NAMPRD84.PROD.OUTLOOK.COM (2603:10b6:610:1c4::17) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH3PR84MB3424:EE_|IA2PR84MB3884:EE_ X-MS-Office365-Filtering-Correlation-Id: fc3ed26c-f43c-4974-917d-08dd7085ce27 X-Microsoft-Antispam: BCL:0; ARA:14566002|461199028|15080799006|8060799006|7092599003|19110799003|5072599009|10035399004|41001999003|440099028|3412199025|1710799026; X-Microsoft-Antispam-Message-Info: MWiYVfjgr7BUYu8ORvt46z620RAL4oTNnj3yFbP/xo3gxsG3mqxDbf0HaMJevS/DwSl/AFE1uTkhzTr3GLgXMcoT2IHA3NdvbRJH0nw/xzw7d4GSZrKMbvukHcvqOurbnOWwTKVeOAJ/sILO3skOrMwLw5uDg38kagil7CExDc6ESjPONkJBPbkzoRqAiIyOdQEPfCH4luz0dzdTc6BhSGcnaQSuNM3HYH7nK/tjUzGOeQRLF78mhw5cba/GcwaLZ4yld+JBv4uV3oAED2YUbVXiziX//nsjTMKGXjTArSBe22EMa83FB/6Ivsw1zTgbN4hv6/ZlBaQqfKLmsZj4RVBkU6kp3sd1N2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3J5GZLV+K2KABYs063axDkLd9qlHfCWTYR/n65B39yX5uKYazFD+cPUUAmVkXT9k X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: fc3ed26c-f43c-4974-917d-08dd7085ce27 X-MS-Exchange-CrossTenant-AuthSource: CH3PR84MB3424.NAMPRD84.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2025 18:56:55.1450 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA2PR84MB3884 Received-SPF: pass client-ip=40.92.43.106; envelope-from=Morgan.J.Smith@outlook.com; helo=NAM02-DM3-obe.outbound.protection.outlook.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_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-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 (xone): New variable. Change-Id: I289868cfe81ed8804c7ee2a4ce5713569983bd34 --- gnu/packages/linux.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) base-commit: 5735c278e16517d9be5e26235fe68dea9bae3527 diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 4354d9b8b4..08cd346e6c 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -2342,6 +2342,47 @@ (define-public xpadneo which need to be installed separately.") (license license:gpl3+))) +(define-public xone + (let ((commit "aeb27e6d98f7b22b3672701af6171612254a4d0c") + (revision "0")) + (package + (name "xone") + (version (git-version "0.3" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dlundqvist/xone") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "111zwsy1z4g1qlp98s617ng2n5qinp9whynlvcaynvyl7giv4p0h")))) + (build-system linux-module-build-system) + (arguments + (list #:tests? #f ; no `check' target + #:phases + #~(modify-phases %standard-phases + (add-after 'install 'post-install + (lambda _ + ;; Copied from install.sh. + ;; This isn't useful though because xpad is builtin to + ;; the kernel so it has to be blacklisted using a kernel + ;; argument. + (let ((modprobe-dir (string-append #$output "/etc/modprobe.d"))) + (mkdir-p modprobe-dir) + (copy-file "install/modprobe.conf" + (string-append modprobe-dir + "/xone-blacklist.conf")))))))) + + (home-page "https://github.com/dlundqvist/xone") + (synopsis "Linux kernel driver for Xbox One and Xbox Series X|S accessories") + (description "A replacement for xpad. + +To use the xone driver add it to the @code{kernel-loadable-modules} in your +system configuration. Then add @code{xpad} and @code{mt76x2u} to the modprobe +blacklist.") + (license license:gpl2)))) + (define-public vendor-reset-linux-module (let ((commit "4b466e92a2d9f76ce1082cde982c7be0be91e248") (revision "0"))