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 +DaoN2trEWPIJAAAbAwnHQ (envelope-from ) for ; Fri, 02 Sep 2022 04:33:15 +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 MOGYN2trEWP8OAEAauVa8A (envelope-from ) for ; Fri, 02 Sep 2022 04:33:15 +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 9FB5924970 for ; Fri, 2 Sep 2022 04:33:15 +0200 (CEST) Received: from localhost ([::1]:48524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTwUc-0008Ae-D3 for larch@yhetil.org; Thu, 01 Sep 2022 22:33:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36962) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTwUR-0008AS-Se for guix-patches@gnu.org; Thu, 01 Sep 2022 22:33:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54790) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTwUQ-0004mN-J1 for guix-patches@gnu.org; Thu, 01 Sep 2022 22:33:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oTwUQ-0000kb-GH for guix-patches@gnu.org; Thu, 01 Sep 2022 22:33:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57537] [PATCH v2] gnu: Add ec References: <20220902020049.15420-1-GNUtoo@cyberdimension.org> In-Reply-To: <20220902020049.15420-1-GNUtoo@cyberdimension.org> Resent-From: Denis 'GNUtoo' Carikli Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 02 Sep 2022 02:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57537 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57537@debbugs.gnu.org Cc: Denis 'GNUtoo' Carikli Received: via spool by 57537-submit@debbugs.gnu.org id=B57537.16620859712868 (code B ref 57537); Fri, 02 Sep 2022 02:33:02 +0000 Received: (at 57537) by debbugs.gnu.org; 2 Sep 2022 02:32:51 +0000 Received: from localhost ([127.0.0.1]:44539 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTwUF-0000kC-7s for submit@debbugs.gnu.org; Thu, 01 Sep 2022 22:32:51 -0400 Received: from cyberdimension.org ([80.67.179.20]:55628 helo=gnutoo.cyberdimension.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTwUC-0000k2-Qc for 57537@debbugs.gnu.org; Thu, 01 Sep 2022 22:32:49 -0400 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id ed2616e6; Fri, 2 Sep 2022 02:31:51 +0000 (UTC) Received: from localhost.localdomain (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id e75f9335; Fri, 2 Sep 2022 02:31:51 +0000 (UTC) From: Denis 'GNUtoo' Carikli Date: Fri, 2 Sep 2022 04:32:39 +0200 Message-Id: <20220902023239.26540-1-GNUtoo@cyberdimension.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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=1662085995; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=gER6kWbckJd1SWv6ijxgPqCSGmiO4GfrBT/KpRczSTw=; b=jqDK874sN3b1oDQ14M4TyWJWM7LxVSokZNNNLG615uGLM4C4fSsSY2zczhuaey8qu0Hmrb gtohxbrq2tyDkJaOH8Aw/0cu/dIb9S84q6O3/5NkhrPs8nENmO16qIFuKdCO1sNVRucOJu 5tt7rwgHfdgzy3ivCr686BvuSr8jfKy4p6AUbDy89I+7ZMig3NJIL4M07XEX145fcTSRUj zgZbv9Tqd3HAipRfQsHiHBdukDXZ8ceuybOSnCssrzSOjAEub7xZgzK1xdTqZVsYcM68iy kyUSxh0sWOkbLpTDBAOvaf0Gol9n0+fRG6FuW/Ybrculabqc7/UNEACa6WfXoA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662085995; a=rsa-sha256; cv=none; b=JAdLhmL4Zl24mmSMelmiR+ecPNlMJGma0wORSUbRwoYHf6fiEktglyRqU2XPcdNurEjXVh R8RS4zdJBqLRJud1jzHGHTmVwPI6rIQmIIn45sLI98ijSkRlR8NR/re+thfdiinb18TVuy t+WkwAAa3g9OnzBo6MboK5wqPzkZtDIwZZV834Z8MfFiSgf45ym9PwhfnVqZfGbiW7ADH8 2o/0LjMMEIgTpn1BRVuqYCaQAx6xa2xV3oViuZz+9Ut1CMOr5iCuO5pmgIDZepD0qTS1p0 i3lkQQKA1WFHIv5z7/0W8+9ulyF16qeOcOvoLY53S76NI5cYX7q4y8dFbDwnew== 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.28 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: 9FB5924970 X-Spam-Score: -1.28 X-Migadu-Scanner: scn1.migadu.com X-TUID: 0gHD5v4+SQjg * gnu/packages/linux.scm (ec): New variable. --- gnu/packages/linux.scm | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 5254b20dc4..dd91ca60fc 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -1375,6 +1375,45 @@ (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")) + "sbindir=/sbin") + #: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