diff --git a/pkgs/build-support/kernel/make-initrd.nix b/pkgs/build-support/kernel/make-initrd.nix index f2cf894b8630..2c0ca37553df 100644 --- a/pkgs/build-support/kernel/make-initrd.nix +++ b/pkgs/build-support/kernel/make-initrd.nix @@ -16,7 +16,7 @@ let inputsFun = ubootName : [perl cpio] - ++ stdenv.lib.optional (ubootName != null) [ ubootChooser ubootName ]; + ++ stdenv.lib.optional (ubootName != null) [ (ubootChooser ubootName) ]; makeUInitrdFun = ubootName : (ubootName != null); in stdenv.mkDerivation { diff --git a/pkgs/os-specific/linux/kernel/generic.nix b/pkgs/os-specific/linux/kernel/generic.nix index ff6099e74570..f54af384816b 100644 --- a/pkgs/os-specific/linux/kernel/generic.nix +++ b/pkgs/os-specific/linux/kernel/generic.nix @@ -40,6 +40,7 @@ kernelAutoModules = true; kernelTarget = "bzImage"; } +, ubootChooser ? null , ... }: @@ -82,7 +83,7 @@ stdenv.mkDerivation { ignoreConfigErrors = (userModeLinux || platform.name != "pc"); buildNativeInputs = [ perl mktemp ]; - buildInputs = lib.optional (platform.uboot != null) platform.uboot; + buildInputs = lib.optional (platform.uboot != null) (ubootChooser platform.uboot); platformName = platform.name; kernelBaseConfig = platform.kernelBaseConfig;