mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
gnu: make-linux-libre: Add extra-version parameter.
* gnu/packages/linux.scm (make-linux-libre): Add extra-version option.
This commit is contained in:
parent
90c18c321e
commit
a6d0132514
1 changed files with 6 additions and 1 deletions
|
@ -276,11 +276,14 @@ (define* (make-linux-libre version hash
|
|||
#:key
|
||||
;; A function that takes an arch and a variant.
|
||||
;; See kernel-config for an example.
|
||||
(extra-version #f)
|
||||
(configuration-file #f)
|
||||
(defconfig "defconfig")
|
||||
(extra-options %default-extra-linux-options))
|
||||
(package
|
||||
(name "linux-libre")
|
||||
(name (if extra-version
|
||||
(string-append "linux-libre-" extra-version)
|
||||
"linux-libre"))
|
||||
(version version)
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
|
@ -327,6 +330,8 @@ (define* (make-linux-libre version hash
|
|||
(format #t "`CROSS_COMPILE' set to `~a'~%"
|
||||
(getenv "CROSS_COMPILE"))))
|
||||
|
||||
(setenv "EXTRA_VERSION" ,extra-version)
|
||||
|
||||
(let ((build (assoc-ref %standard-phases 'build))
|
||||
(config (assoc-ref inputs "kconfig")))
|
||||
|
||||
|
|
Loading…
Reference in a new issue