From b04cba9ee533945f90ffd72637f064c60188f945 Mon Sep 17 00:00:00 2001 From: Stefan Date: Sat, 19 Jun 2021 20:03:11 +0200 Subject: [PATCH] gnu: linux-libre: Correct name of EXTRAVERSION, and prepend "-" to content. * gnu/packages/linux.scm (make-linux-libre): Move the comment for the configuration-file argument to the correct position. (make-linux-libre*): Move the comment for the configuration-file argument to the correct position. Fix name of environment variable EXTRAVERSION. Prepend a hyphen to the content of EXTRAVERSION. Signed-off-by: Danny Milosavljevic --- gnu/packages/linux.scm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 699a01ee41..904338da73 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -727,9 +727,9 @@ (define (config->string options) (define* (make-linux-libre version hash-string supported-systems #:key + (extra-version #f) ;; 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) @@ -748,9 +748,9 @@ (define* (make-linux-libre version hash-string supported-systems (define* (make-linux-libre* version source supported-systems #:key + (extra-version #f) ;; 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)) @@ -816,7 +816,8 @@ (define* (make-linux-libre* version source supported-systems (format #t "`CROSS_COMPILE' set to `~a'~%" (getenv "CROSS_COMPILE")))) - (setenv "EXTRA_VERSION" ,extra-version) + (setenv "EXTRAVERSION" ,(and extra-version + (string-append "-" extra-version))) (let ((build (assoc-ref %standard-phases 'build)) (config (assoc-ref (or native-inputs inputs) "kconfig")))