Fixing the uboot cross-build.

svn path=/nixpkgs/branches/stdenv-updates/; revision=18473
This commit is contained in:
Lluís Batlle i Rossell 2009-11-19 21:43:03 +00:00
parent e85500987b
commit 4dfc635cbb
2 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ doSubstitute() {
--subst-var "cflagsLink" \
--subst-var "ldflags" \
--subst-var "ldflagsBefore" \
--subst-var-by "ld" "$ldPath/ld"
--subst-var-by "ld" "$ldPath/$crossConfig-ld"
}

View File

@ -35,14 +35,14 @@ stdenv.mkDerivation {
buildPhase = ''
unset src
if test -z "$crossTarget"; then
if test -z "$crossConfig"; then
make clean all
else
make clean all ARCH=arm CROSS_COMPILE=$crossConfig-
fi
'';
buildInputs = [ unzip ];
buildNativeInputs = [ unzip ];
dontStrip = true;
NIX_STRIP_DEBUG = false;