3
0
Fork 0
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:
Lluís Batlle i Rossell 2010-02-27 18:51:06 +00:00
parent 11aa65c28a
commit 3b747e92e5
2 changed files with 3 additions and 2 deletions

View file

@ -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 {

View file

@ -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;