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
|
let
|
||||||
inputsFun = ubootName : [perl cpio]
|
inputsFun = ubootName : [perl cpio]
|
||||||
++ stdenv.lib.optional (ubootName != null) [ ubootChooser ubootName ];
|
++ stdenv.lib.optional (ubootName != null) [ (ubootChooser ubootName) ];
|
||||||
makeUInitrdFun = ubootName : (ubootName != null);
|
makeUInitrdFun = ubootName : (ubootName != null);
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
|
|
|
@ -40,6 +40,7 @@
|
||||||
kernelAutoModules = true;
|
kernelAutoModules = true;
|
||||||
kernelTarget = "bzImage";
|
kernelTarget = "bzImage";
|
||||||
}
|
}
|
||||||
|
, ubootChooser ? null
|
||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -82,7 +83,7 @@ stdenv.mkDerivation {
|
||||||
ignoreConfigErrors = (userModeLinux || platform.name != "pc");
|
ignoreConfigErrors = (userModeLinux || platform.name != "pc");
|
||||||
|
|
||||||
buildNativeInputs = [ perl mktemp ];
|
buildNativeInputs = [ perl mktemp ];
|
||||||
buildInputs = lib.optional (platform.uboot != null) platform.uboot;
|
buildInputs = lib.optional (platform.uboot != null) (ubootChooser platform.uboot);
|
||||||
|
|
||||||
platformName = platform.name;
|
platformName = platform.name;
|
||||||
kernelBaseConfig = platform.kernelBaseConfig;
|
kernelBaseConfig = platform.kernelBaseConfig;
|
||||||
|
|
Loading…
Reference in a new issue