gnu: linux-libre: Avoid invalid "kconfig" input on armhf and mips64el.

This fixes a bug whereby:

  guix build linux-libre -s armhf-linux

would fail with:

  guix build: error: gnu/packages/linux.scm:231:2: package `linux-libre-4.8.15' has an invalid input: ("kconfig" #f)

This led 'tests/guix-system.sh' to fail.

* gnu/packages/linux.scm (make-linux-libre)[native-inputs]: Never add #f
as a "kconfig" input.
This commit is contained in:
Ludovic Courtès 2016-12-20 23:36:21 +01:00 committed by Ricardo Wurmus
parent 62a3179395
commit b291b3271a
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 9 additions and 7 deletions

View File

@ -242,13 +242,15 @@ for ARCH and optionally VARIANT, or #f if there is no such configuration."
("bc" ,bc)
("openssl" ,openssl)
("kmod" ,kmod)
,@(if configuration-file
`(("kconfig" ,(configuration-file
,@(match (and configuration-file
(configuration-file
(system->linux-architecture
(or (%current-target-system)
(%current-system)))
#:variant (version-major+minor version))))
'())))
(or (%current-target-system) (%current-system)))
#:variant (version-major+minor version)))
(#f ;no config for this platform
'())
((? string? config)
`(("kconfig" ,config))))))
(arguments
`(#:modules ((guix build gnu-build-system)
(guix build utils)