diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2009-11-15 22:56:06 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2009-11-15 22:56:06 +0000 |
commit | d82c7e0a69d186b3c83736fd5c2aed7b12a3f7dc (patch) | |
tree | ae909b9ca46d67d964e6886593b24efd7341b8f9 /pkgs/misc/uboot | |
parent | 3c4edd6bfa1ec120c175c8b136eb39cb2bdf6dc5 (diff) | |
download | nixlib-d82c7e0a69d186b3c83736fd5c2aed7b12a3f7dc.tar nixlib-d82c7e0a69d186b3c83736fd5c2aed7b12a3f7dc.tar.gz nixlib-d82c7e0a69d186b3c83736fd5c2aed7b12a3f7dc.tar.bz2 nixlib-d82c7e0a69d186b3c83736fd5c2aed7b12a3f7dc.tar.lz nixlib-d82c7e0a69d186b3c83736fd5c2aed7b12a3f7dc.tar.xz nixlib-d82c7e0a69d186b3c83736fd5c2aed7b12a3f7dc.tar.zst nixlib-d82c7e0a69d186b3c83736fd5c2aed7b12a3f7dc.zip |
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
Diffstat (limited to 'pkgs/misc/uboot')
-rw-r--r-- | pkgs/misc/uboot/default.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/misc/uboot/default.nix b/pkgs/misc/uboot/default.nix index eeb76df62212..ac3f49035a10 100644 --- a/pkgs/misc/uboot/default.nix +++ b/pkgs/misc/uboot/default.nix @@ -1,6 +1,6 @@ {stdenv, fetchurl, unzip}: -assert stdenv.system == "armv5tel-linux"; +# assert stdenv.system == "armv5tel-linux"; # All this file is made for the Marvell Sheevaplug @@ -34,7 +34,11 @@ stdenv.mkDerivation { buildPhase = '' 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 ]; |