summary refs log tree commit diff
path: root/pkgs/misc/uboot
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/misc/uboot')
-rw-r--r--pkgs/misc/uboot/default.nix8
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 ];