diff options
| author | Cayetano Santos <csantosb@inventati.org> | 2026-04-12 20:35:59 +0200 |
|---|---|---|
| committer | Cayetano Santos <csantosb@inventati.org> | 2026-04-15 11:52:22 +0200 |
| commit | ac316e522a12c1ead39f3f906cbf14896d2acead (patch) | |
| tree | d2e8741ba4684cfddd20bf841995bf32713567e1 /gnu | |
| parent | 99fdbdef6a3311d202f3a35b710363986ec5c794 (diff) | |
gnu: coreboot.scm: Use local variables.
* gnu/packages/coreboot.scm (%coreboot-version, %coreboot-origin): New
variables.
* gnu/packages/coreboot.scm (bincfg, ifdtool, intelmetool,
nvramtool)[version]: Replace by %coreboot-version.
[source]: Replace by %coreboot-source.
Merges guix/guix!7862
Change-Id: I9b586347823729680a1958524985abadfa67ab09
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/coreboot.scm | 64 |
1 files changed, 21 insertions, 43 deletions
diff --git a/gnu/packages/coreboot.scm b/gnu/packages/coreboot.scm index 8cedab2fd68..b701161c90f 100644 --- a/gnu/packages/coreboot.scm +++ b/gnu/packages/coreboot.scm | |||
| @@ -42,20 +42,24 @@ | |||
| 42 | #:use-module (guix utils) | 42 | #:use-module (guix utils) |
| 43 | #:use-module (srfi srfi-26)) | 43 | #:use-module (srfi srfi-26)) |
| 44 | 44 | ||
| 45 | (define %coreboot-version "25.09") | ||
| 46 | |||
| 47 | (define %coreboot-origin | ||
| 48 | (origin | ||
| 49 | (method git-fetch) | ||
| 50 | (uri (git-reference | ||
| 51 | (url "https://review.coreboot.org/coreboot") | ||
| 52 | (commit %coreboot-version))) | ||
| 53 | (file-name (git-file-name "coreboot" %coreboot-version)) | ||
| 54 | (sha256 | ||
| 55 | (base32 | ||
| 56 | "1a1n64dwr5fzdnaj45bjci85ap5yra5gwz4x056zn6481xwvbsmv")))) | ||
| 57 | |||
| 45 | (define-public bincfg | 58 | (define-public bincfg |
| 46 | (package | 59 | (package |
| 47 | (name "bincfg") | 60 | (name "bincfg") |
| 48 | (version "25.09") | 61 | (version %coreboot-version) |
| 49 | (source | 62 | (source %coreboot-origin) |
| 50 | (origin | ||
| 51 | (method git-fetch) | ||
| 52 | (uri (git-reference | ||
| 53 | (url "https://review.coreboot.org/coreboot") | ||
| 54 | (commit version))) | ||
| 55 | (file-name (git-file-name name version)) | ||
| 56 | (sha256 | ||
| 57 | (base32 | ||
| 58 | "1a1n64dwr5fzdnaj45bjci85ap5yra5gwz4x056zn6481xwvbsmv")))) | ||
| 59 | (build-system gnu-build-system) | 63 | (build-system gnu-build-system) |
| 60 | (arguments | 64 | (arguments |
| 61 | (list | 65 | (list |
| @@ -126,17 +130,8 @@ It also comes with example files generated by bincfg.") | |||
| 126 | (define-public ifdtool | 130 | (define-public ifdtool |
| 127 | (package | 131 | (package |
| 128 | (name "ifdtool") | 132 | (name "ifdtool") |
| 129 | (version "25.09") | 133 | (version %coreboot-version) |
| 130 | (source | 134 | (source %coreboot-origin) |
| 131 | (origin | ||
| 132 | (method git-fetch) | ||
| 133 | (uri (git-reference | ||
| 134 | (url "https://review.coreboot.org/coreboot") | ||
| 135 | (commit version))) | ||
| 136 | (file-name (git-file-name name version)) | ||
| 137 | (sha256 | ||
| 138 | (base32 | ||
| 139 | "1a1n64dwr5fzdnaj45bjci85ap5yra5gwz4x056zn6481xwvbsmv")))) | ||
| 140 | (build-system gnu-build-system) | 135 | (build-system gnu-build-system) |
| 141 | (arguments | 136 | (arguments |
| 142 | (list | 137 | (list |
| @@ -160,16 +155,8 @@ dump Intel Firmware Descriptor data of an image file.") | |||
| 160 | (define-public intelmetool | 155 | (define-public intelmetool |
| 161 | (package | 156 | (package |
| 162 | (name "intelmetool") | 157 | (name "intelmetool") |
| 163 | (version "25.09") | 158 | (version %coreboot-version) |
| 164 | (source (origin | 159 | (source %coreboot-origin) |
| 165 | (method git-fetch) | ||
| 166 | (uri (git-reference | ||
| 167 | (url "https://review.coreboot.org/coreboot") | ||
| 168 | (commit version))) | ||
| 169 | (file-name (git-file-name name version)) | ||
| 170 | (sha256 | ||
| 171 | (base32 | ||
| 172 | "1a1n64dwr5fzdnaj45bjci85ap5yra5gwz4x056zn6481xwvbsmv")))) | ||
| 173 | (build-system gnu-build-system) | 160 | (build-system gnu-build-system) |
| 174 | (arguments | 161 | (arguments |
| 175 | (list | 162 | (list |
| @@ -201,17 +188,8 @@ Management Engine (ME). You need to @code{sudo rmmod mei_me} and | |||
| 201 | (define-public nvramtool | 188 | (define-public nvramtool |
| 202 | (package | 189 | (package |
| 203 | (name "nvramtool") | 190 | (name "nvramtool") |
| 204 | (version "25.09") | 191 | (version %coreboot-version) |
| 205 | (source | 192 | (source %coreboot-origin) |
| 206 | (origin | ||
| 207 | (method git-fetch) | ||
| 208 | (uri (git-reference | ||
| 209 | (url "https://review.coreboot.org/coreboot") | ||
| 210 | (commit version))) | ||
| 211 | (file-name (git-file-name name version)) | ||
| 212 | (sha256 | ||
| 213 | (base32 | ||
| 214 | "1a1n64dwr5fzdnaj45bjci85ap5yra5gwz4x056zn6481xwvbsmv")))) | ||
| 215 | (build-system gnu-build-system) | 193 | (build-system gnu-build-system) |
| 216 | (arguments | 194 | (arguments |
| 217 | (list | 195 | (list |
