unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
To: 67403@debbugs.gnu.org
Cc: "Denis 'GNUtoo' Carikli" <GNUtoo@cyberdimension.org>
Subject: [bug#67403] [PATCH 8/8] gnu: Add nvramtool.
Date: Thu, 23 Nov 2023 16:27:44 +0100	[thread overview]
Message-ID: <5a249dd2990f7856d7cc8347a8f0786befda20e7.1700752093.git.GNUtoo@cyberdimension.org> (raw)
In-Reply-To: <cover.1700752093.git.GNUtoo@cyberdimension.org>

* gnu/packages/flashing-tools.scm (nvramtool): New variable.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
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 <cpuid.h>.
     (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")
-- 
2.41.0





  parent reply	other threads:[~2023-11-23 15:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-23 15:09 [bug#67403] [PATCH 0/8] Coreboot related patches Denis 'GNUtoo' Carikli
2023-11-23 15:27 ` [bug#67403] [PATCH 1/8] gnu: ifdtool: Update to 4.22 Denis 'GNUtoo' Carikli
2023-11-23 15:27 ` [bug#67403] [PATCH 2/8] gnu: Add bucts Denis 'GNUtoo' Carikli
2023-11-23 15:27 ` [bug#67403] [PATCH 3/8] gnu: intelmetool: Update to 4.22 Denis 'GNUtoo' Carikli
2023-11-23 15:27 ` [bug#67403] [PATCH 4/8] gnu: ifdtool: Update to new style Denis 'GNUtoo' Carikli
2023-11-23 15:27 ` [bug#67403] [PATCH 5/8] gnu: ifdtool: Use cc-for-target Denis 'GNUtoo' Carikli
2023-11-23 15:27 ` [bug#67403] [PATCH 6/8] gnu: intelmetool: Update to new style Denis 'GNUtoo' Carikli
2023-11-23 15:27 ` [bug#67403] [PATCH 7/8] gnu: intelmetool: Use cc-for-target Denis 'GNUtoo' Carikli
2023-11-23 15:27 ` Denis 'GNUtoo' Carikli [this message]
2024-03-22  0:58 ` [bug#67403] [PATCH 0/8] Coreboot related patches Denis 'GNUtoo' Carikli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5a249dd2990f7856d7cc8347a8f0786befda20e7.1700752093.git.GNUtoo@cyberdimension.org \
    --to=gnutoo@cyberdimension.org \
    --cc=67403@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).