diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 827ee8b37c..5d6fbbb148 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -242,13 +242,15 @@ (define* (make-linux-libre version hash supported-systems ("bc" ,bc) ("openssl" ,openssl) ("kmod" ,kmod) - ,@(if configuration-file - `(("kconfig" ,(configuration-file - (system->linux-architecture - (or (%current-target-system) - (%current-system))) - #:variant (version-major+minor version)))) - '()))) + ,@(match (and configuration-file + (configuration-file + (system->linux-architecture + (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)