linux: Don't try to install firmware on newer kernels.

This was disabled in torvalds/linux@5620a0d1aa
This commit is contained in:
Shea Levy 2018-02-19 17:08:24 -05:00
parent 7cb7d2a4dc
commit bd7d5b3657
No known key found for this signature in database
GPG Key ID: 5C0BD6957D86FE27

View File

@ -79,7 +79,8 @@ let
isModular = config.isYes "MODULES";
installsFirmware = (config.isEnabled "FW_LOADER") &&
(isModular || (config.isDisabled "FIRMWARE_IN_KERNEL"));
(isModular || (config.isDisabled "FIRMWARE_IN_KERNEL")) &&
(stdenv.lib.versionOlder version "4.14");
in (optionalAttrs isModular { outputs = [ "out" "dev" ]; }) // {
passthru = {
inherit version modDirVersion config kernelPatches configfile