diff options
author | David Craven <david@craven.ch> | 2016-09-08 18:06:22 +0200 |
---|---|---|
committer | David Craven <david@craven.ch> | 2016-09-13 21:01:27 +0200 |
commit | a6d01325141f9718b3d3b9f409a884836118c079 (patch) | |
tree | db12195c8af3ae6d8201597c56ac0cf70dc67958 /gnu/packages/linux.scm | |
parent | 90c18c321e579992a8f4961dd280d8c04f1ea3c2 (diff) | |
download | gnu-guix-a6d01325141f9718b3d3b9f409a884836118c079.tar gnu-guix-a6d01325141f9718b3d3b9f409a884836118c079.tar.gz |
gnu: make-linux-libre: Add extra-version parameter.
* gnu/packages/linux.scm (make-linux-libre): Add extra-version option.
Diffstat (limited to 'gnu/packages/linux.scm')
-rw-r--r-- | gnu/packages/linux.scm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 1cf80cfb3f..fac0cbbae3 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -276,11 +276,14 @@ for ARCH and optionally VARIANT, or #f if there is no such configuration." #: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 @@ for ARCH and optionally VARIANT, or #f if there is no such configuration." (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"))) |