Adding uboot cross compilation. I had to adapt the package a bit, because it

does not use autotools.


svn path=/nixpkgs/branches/stdenv-updates/; revision=18362
This commit is contained in:
Lluís Batlle i Rossell 2009-11-15 22:56:06 +00:00
parent 3c4edd6bfa
commit d82c7e0a69
2 changed files with 11 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{stdenv, fetchurl, unzip}: {stdenv, fetchurl, unzip}:
assert stdenv.system == "armv5tel-linux"; # assert stdenv.system == "armv5tel-linux";
# All this file is made for the Marvell Sheevaplug # All this file is made for the Marvell Sheevaplug
@ -34,7 +34,11 @@ stdenv.mkDerivation {
buildPhase = '' buildPhase = ''
unset src unset src
make clean all if test -z "$crossTarget"; then
make clean all
else
make clean all ARCH=arm CROSS_COMPILE=$crossTarget-
fi
''; '';
buildInputs = [ unzip ]; buildInputs = [ unzip ];

View File

@ -6096,10 +6096,14 @@ let
inherit (xlibs) libX11 xproto; inherit (xlibs) libX11 xproto;
};*/ };*/
uboot = import ../misc/uboot { uboot = makeOverridable (import ../misc/uboot) {
inherit fetchurl stdenv unzip; inherit fetchurl stdenv unzip;
}; };
ubootArm = uboot.override {
stdenv = stdenvCross "armv5tel-unknown-linux-gnueabi";
};
uclibc = import ../os-specific/linux/uclibc { uclibc = import ../os-specific/linux/uclibc {
inherit fetchurl stdenv kernelHeaders; inherit fetchurl stdenv kernelHeaders;
}; };