forked from mirrors/nixpkgs
Fixing the correct handling of uboot in the initrd and the kernel derivations.
(nixos on sheevaplug) svn path=/nixpkgs/trunk/; revision=20275
This commit is contained in:
parent
11aa65c28a
commit
3b747e92e5
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue