From patchwork Thu Nov 23 15:27:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Denis 'GNUtoo' Carikli X-Patchwork-Id: 56766 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 8315727BBE9; Thu, 23 Nov 2023 15:29:34 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED 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 EC94F27BBEB for ; Thu, 23 Nov 2023 15:29:31 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r6BdZ-0003ZO-H5; Thu, 23 Nov 2023 10:29:05 -0500 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 1r6BdV-0003YZ-Ss for guix-patches@gnu.org; Thu, 23 Nov 2023 10:29:01 -0500 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 1r6BdV-0007Zf-K8 for guix-patches@gnu.org; Thu, 23 Nov 2023 10:29:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r6BdZ-0002jn-Fs for guix-patches@gnu.org; Thu, 23 Nov 2023 10:29:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67403] [PATCH 8/8] gnu: Add nvramtool. Resent-From: Denis 'GNUtoo' Carikli Original-Sender: "Debbugs-submit" Resent-CC: , guix-patches@gnu.org Resent-Date: Thu, 23 Nov 2023 15:29:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67403 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67403@debbugs.gnu.org Cc: Denis 'GNUtoo' Carikli , ( , Christopher Baines , Ludovic =?utf-8?q?Court=C3=A8s?= , Mathieu Othacehe , Raghav Gururajan , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice , jgart X-Debbugs-Original-Xcc: ( , Christopher Baines , Ludovic =?utf-8?q?Court=C3=A8s?= , Mathieu Othacehe , Raghav Gururajan , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice , jgart Received: via spool by 67403-submit@debbugs.gnu.org id=B67403.170075331110433 (code B ref 67403); Thu, 23 Nov 2023 15:29:05 +0000 Received: (at 67403) by debbugs.gnu.org; 23 Nov 2023 15:28:31 +0000 Received: from localhost ([127.0.0.1]:34717 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r6Bd0-0002i8-Im for submit@debbugs.gnu.org; Thu, 23 Nov 2023 10:28:30 -0500 Received: from [2001:910:1314:ffff::1] (port=60338 helo=gnutoo.cyberdimension.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r6Bcv-0002ga-NV for 67403@debbugs.gnu.org; Thu, 23 Nov 2023 10:28:26 -0500 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id b67d99fc; Thu, 23 Nov 2023 15:28:19 +0000 (UTC) Received: from localhost.localdomain (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id 673dba84; Thu, 23 Nov 2023 15:28:18 +0000 (UTC) From: Denis 'GNUtoo' Carikli Date: Thu, 23 Nov 2023 16:27:44 +0100 Message-ID: <5a249dd2990f7856d7cc8347a8f0786befda20e7.1700752093.git.GNUtoo@cyberdimension.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 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/flashing-tools.scm (nvramtool): New variable. Signed-off-by: Denis 'GNUtoo' Carikli Change-Id: I4f1391d51cf861b281abb0cf7d46022b50e70c4e --- gnu/packages/flashing-tools.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/flashing-tools.scm b/gnu/packages/flashing-tools.scm index 705fd76d6f..bf6726d40b 100644 --- a/gnu/packages/flashing-tools.scm +++ b/gnu/packages/flashing-tools.scm @@ -496,6 +496,34 @@ (define-public intelmetool ;; This is obviously an Intel thing, plus it requires . (supported-systems '("x86_64-linux" "i686-linux")))) +(define-public nvramtool + (package + (name "nvramtool") + (version coreboot-version) + (source coreboot-source) + (build-system gnu-build-system) + (arguments + (list + #:make-flags + #~(list (string-append "CC=" #$(cc-for-target)) + "INSTALL=install" + (string-append "PREFIX=" #$output)) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "util/nvramtool"))) + (delete 'configure)) ; no configure script + #:tests? #f)) ; no test suite + (home-page "https://coreboot.org") + (synopsis "Tool to read/write Coreboot settings") + (description "This package provides @command{nvramtool}. It can list the +available values for each Coreboot settings, read/write them, and restore +their default values. It also has lower level features like the ability to +correct checksum if the settings data were corrupted, or ability to read/write +individual bits in the CMOS memory holding the settings.") + (license license:gpl2))) + (define-public me-cleaner (package (name "me-cleaner")