diff options
Diffstat (limited to 'pkgs/os-specific/linux/kernel/generic.nix')
-rw-r--r-- | pkgs/os-specific/linux/kernel/generic.nix | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pkgs/os-specific/linux/kernel/generic.nix b/pkgs/os-specific/linux/kernel/generic.nix index 8a0c1820717cb..31af236ffae6e 100644 --- a/pkgs/os-specific/linux/kernel/generic.nix +++ b/pkgs/os-specific/linux/kernel/generic.nix @@ -37,15 +37,13 @@ , preConfigure ? "" , extraMeta ? {} -, uboot ? null +, platform ? { uboot = null; } , ... }: assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux" || stdenv.system == "armv5tel-linux"; -assert stdenv.system == "armv5tel-linux" -> uboot != null; - let lib = stdenv.lib; @@ -76,7 +74,7 @@ stdenv.mkDerivation { in lib.concatStrings (addNewlines (configFromPatches ++ extraConfig)); buildInputs = [perl mktemp] - ++ lib.optional (stdenv.system == "armv5tel-linux") [uboot]; + ++ lib.optional (platform.uboot != null) [platform.uboot]; arch = if xen then "xen" else @@ -93,7 +91,7 @@ stdenv.mkDerivation { allowLocalVersion = false; # don't allow patches to set a suffix inherit localVersion; # but do allow the user to set one. - makeUImage = if (stdenv.system == "armv5tel-linux") then true else false; + makeUImage = if (platform.uboot != null) then true else false; meta = { description = |