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.
This commit is contained in:
David Craven 2016-09-13 22:41:43 +02:00
parent 995e5092d8
commit 0b75986983
No known key found for this signature in database
GPG Key ID: C5E051C79C0BECDB
1 changed files with 7 additions and 8 deletions

View File

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