guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: gnu: make-linux-libre: Only use configuration-file when one is pr


From: David Craven
Subject: 01/02: gnu: make-linux-libre: Only use configuration-file when one is provided.
Date: Tue, 13 Sep 2016 20:48:43 +0000 (UTC)

dvc pushed a commit to branch master
in repository guix.

commit 0b759869832817312c40bb0a6e45cc3114b9580b
Author: David Craven <address@hidden>
Date:   Tue Sep 13 22:41:43 2016 +0200

    gnu: make-linux-libre: Only use configuration-file when one is provided.
    
    * gnu/packages/linux.scm (make-linux-libre): Only use configuration-file
      when one is provided.
---
 gnu/packages/linux.scm |   15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 981ac60..8c1cbea 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -236,14 +236,13 @@ for ARCH and optionally VARIANT, or #f if there is no 
such configuration."
        ("bc" ,bc)
        ("openssl" ,openssl)
        ("kmod" ,kmod)
-       ,@(let ((conf (configuration-file
-                      (system->linux-architecture
-                       (or (%current-target-system)
-                           (%current-system)))
-                       #:variant (version-major+minor version))))
-           (if conf
-               `(("kconfig" ,conf))
-               '()))))
+       ,@(if configuration-file
+             `(("kconfig" ,(configuration-file
+                            (system->linux-architecture
+                             (or (%current-target-system)
+                                 (%current-system)))
+                            #:variant (version-major+minor version))))
+             '())))
     (arguments
      `(#:modules ((guix build gnu-build-system)
                   (guix build utils)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]