1 {stdenv, fetchurl, unzip}:
3 # We should enable this check once we have the cross target system information
4 # assert stdenv.system == "armv5tel-linux" || crossConfig == "armv5tel-linux";
6 # All this file is made for the Marvell Sheevaplug
9 name = "uboot-sheevaplug-3.4.19";
12 url = "ftp://ftp.denx.de/pub/u-boot/u-boot-1.1.4.tar.bz2";
13 sha256 = "19vp4rlikz7h72pqsjhgz7nmgjy4c6vabvxkw67wni70vy5ddy8s";
17 url = "http://www.plugcomputer.org/data/uboot/u-boot-3.4.19.zip";
18 sha256 = "1wag1l6agr8dbnnfaw6bgcrwynwwgry4ihb3gp438699wmkmy91k";
22 mv u-boot-1.1.4 u-boot-3.4.19
24 sourceRoot=u-boot-3.4.19
27 patches = [ ./gas220.patch ];
29 # Remove the cross compiler prefix, and add reiserfs support
32 make rd88f6281Sheevaplug_config NBOOT=1 LE=1
33 sed -i /CROSS_COMPILE/d include/config.mk
38 if test -z "$crossConfig"; then
41 make clean all ARCH=arm CROSS_COMPILE=$crossConfig-
45 buildNativeInputs = [ unzip ];
48 NIX_STRIP_DEBUG = false;
52 cp u-boot-rd88f6281Sheevaplug_400db_nand.bin $out
53 cp u-boot u-boot.map $out
56 cp tools/{envcrc,mkimage} $out/bin