From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kLZaDmJkEWO3MAAAbAwnHQ (envelope-from ) for ; Fri, 02 Sep 2022 04:03:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id mIBHDmJkEWNtjQAAauVa8A (envelope-from ) for ; Fri, 02 Sep 2022 04:03:14 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 928EA24452 for ; Fri, 2 Sep 2022 04:03:13 +0200 (CEST) Received: from localhost ([::1]:34542 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTw1X-0001Ec-8h for larch@yhetil.org; Thu, 01 Sep 2022 22:03:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45306) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTw1O-0001Du-Gz for guix-patches@gnu.org; Thu, 01 Sep 2022 22:03:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54709) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTw1O-00015G-8l for guix-patches@gnu.org; Thu, 01 Sep 2022 22:03:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oTw1O-0008Ox-52 for guix-patches@gnu.org; Thu, 01 Sep 2022 22:03:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57537] [PATCH] gnu: Add ec Resent-From: Denis 'GNUtoo' Carikli Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 02 Sep 2022 02:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57537 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57537@debbugs.gnu.org Cc: Denis 'GNUtoo' Carikli X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166208417032275 (code B ref -1); Fri, 02 Sep 2022 02:03:01 +0000 Received: (at submit) by debbugs.gnu.org; 2 Sep 2022 02:02:50 +0000 Received: from localhost ([127.0.0.1]:44458 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTw1C-0008OV-8N for submit@debbugs.gnu.org; Thu, 01 Sep 2022 22:02:50 -0400 Received: from lists.gnu.org ([209.51.188.17]:51924) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTw1A-0008ON-5S for submit@debbugs.gnu.org; Thu, 01 Sep 2022 22:02:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40620) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTw19-0001A1-ST for guix-patches@gnu.org; Thu, 01 Sep 2022 22:02:47 -0400 Received: from cyberdimension.org ([80.67.179.20]:36150 helo=gnutoo.cyberdimension.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1oTw17-000133-TJ for guix-patches@gnu.org; Thu, 01 Sep 2022 22:02:47 -0400 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id 299c4804; Fri, 2 Sep 2022 02:00:02 +0000 (UTC) Received: from localhost.localdomain (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id 593aa157; Fri, 2 Sep 2022 02:00:02 +0000 (UTC) From: Denis 'GNUtoo' Carikli Date: Fri, 2 Sep 2022 04:00:49 +0200 Message-Id: <20220902020049.15420-1-GNUtoo@cyberdimension.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=80.67.179.20; envelope-from=GNUtoo@cyberdimension.org; helo=gnutoo.cyberdimension.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1662084193; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=hfiLKqPxLMDXE8j9yT+OUvaxv/wjAvshY5ArSvhezik=; b=okfmoeg97REggKdLpxNj9uxjtHBtMSGetxWwNQwR9+pdhev4tVcXz51zWxUZfH+ZOCOKd3 ROrOvz8i5pWCTlB/m1b1WeXxjfcp+xVSF8oQ8/pGGOlixpyty/OhROe9x8eFK3PNj978u6 iklux9D86739bnlMpbfEX9Fnf52Mwekj0iBf5pzOBB8IHnO6R/WK9Fv57SD8VsGwm3ip7z rjz9nE2fDQaeK8vA2rsVWZ5xfE+wU6G+nkxX7nJJxGbp0HvU1h55XTgruY7qkfoyPeC0ND jVZlExlYKn1EPcc8j0+qwhJaxeKSDD6aogI9/xSJwL3S+EnmlzXv72zgOJymXQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662084193; a=rsa-sha256; cv=none; b=Cb1q/Eg//XC3U9i8qCwzM5160lSlj/4LyaYMzNqx+dsUsZ3Cg1Kr9/vrMlGdnc3hpy1zIs lsIZ6rIOle98CyXao/Lk/tC/C29jhXuR8g6cfpdEHNaPB+fzvjfTxmi/cgXzFhQPxoifyM 9w5PEZ5PTFscCWjpA0lAkuW/1elmss8HpjjycLUM3M2UtkMHQPgW7rm8tGMQFmD/GISgq5 A5+SYK5bQfWLmXgmuxQ83Y+FVA8tEpYtuFda/9MeB/rd+liO1grYKDdKBGtROFaLzZao72 m38q5Gn+fjJzcDDGM1bWw/0+J90Vv2yKRPDA1mugq3yup/NKo1uxZPSJ2YYC7A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.48 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 928EA24452 X-Spam-Score: -1.48 X-Migadu-Scanner: scn1.migadu.com X-TUID: /vVbBWzxSkz4 * gnu/packages/linux.scm (ec): New variable. Signed-off-by: Denis 'GNUtoo' Carikli --- gnu/packages/linux.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 5254b20dc4..bf71dad722 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -1375,6 +1375,44 @@ (define-public librem-ec-acpi-linux-module and the notification, WiFi, and Bluetooth LED.") (license license:gpl2))) +(define-public ec + (package + (name "ec") + (version (package-version linux-libre)) + (source (package-source linux-libre)) + (build-system gnu-build-system) + (native-inputs (list coreutils)) + (arguments + '(#:make-flags (list (string-append "DESTDIR=" + (assoc-ref %outputs "out"))) + #:phases (modify-phases %standard-phases + (delete 'configure) ;no configure script + (add-after 'unpack 'patch-Makefile + (lambda _ + (substitute* "tools/power/acpi/Makefile.config" + (("/bin/true") + (which "true"))) + (substitute* "tools/power/acpi/Makefile.config" + (("/usr/bin/install") + (which "install"))) #t)) + (add-after 'patch-Makefile 'enter-subdirectory + (lambda _ + (chdir "tools/power/acpi/tools/ec") #t))) + #:tests? #f)) ;no tests + (home-page (package-home-page linux-libre)) + (synopsis + "Low level utility for reading or writing Embedded Controller registers") + (description + "This utility can read or write specific registers or all the +available registers of the Embedded Controllers supported by the Linux +kernel. To work it needs to run as root, to have the ec_sys driver +loaded, and to have the debugfs filesystem mounted at +/sys/kernel/debug/. To make write support work, the ec_sys module +needs to be loaded with the write_support=1 parameter. Write support +can also be enabled after loading the module with +the 'echo 1 > /sys/module/ec_sys/parameters/write_support' command.") + (license license:gpl2))) + (define-public lkrg (package (name "lkrg") base-commit: 4d361a6b5147e3f91573e9d3c8c540a233e7e142 -- 2.37.2