Making the cross kernel builds take properly the cross-built uboot, when needed.

svn path=/nixpkgs/trunk/; revision=20455
This commit is contained in:
Lluís Batlle i Rossell 2010-03-06 22:04:21 +00:00
parent 49ba7bee3c
commit 11c20b3a2c

View File

@ -114,7 +114,10 @@ stdenv.mkDerivation {
kernelConfig = kernelConfigFun configCross;
buildInputs = lib.optional (cp.uboot != null) (ubootChooser cp.uboot);
# The substitution of crossAttrs happens *after* the stdenv cross adapter sets
# the parameters for the usual stdenv. Thus, we need to specify
# the ".hostDrv" in the buildInputs here.
buildInputs = lib.optional (cp.uboot != null) (ubootChooser cp.uboot).hostDrv;
};
meta = {