@@ -1,59 +0,0 @@
1−{stdenv, fetchurl, fetchgit}:
2−
3−# All this file is made for the Marvell Sheevaplug
4−
5−stdenv.mkDerivation {
6− name = "uboot-qb-2010.06";
7−
8− src = fetchurl {
9− url = "ftp://ftp.denx.de/pub/u-boot/u-boot-2010.06.tar.bz2";
10− sha256 = "1j0bl8x5i5m1pn62z450gbw30pbrj7sgs3fjp2l2giczv49cn33r";
11− };
12−
13− srcPatches = fetchgit {
14− url = "git://projects.qi-hardware.com/openwrt-xburst.git";
15− rev = "3244d5ef9f93802f9b9b6f4405636424abf6fa83";
16− sha256 = "0mg87s10hpz41dr1zbd3bcl8i64gwvh3f1nrz8cb8c49099miqla";
17− };
18−
19− patchPhase = ''
20− cp -R $srcPatches/package/uboot-xburst/files/* .
21− for a in $srcPatches/package/uboot-xburst/patches/*; do
22− patch -p1 < $a
23− done
24− chmod +w -R *
25− sed -i -e 's/console=ttyS0,57600n8//' include/configs/qi_lb60.h
26− # Load more than 2MiB for the kernel
27− sed -i -e 's/0x200000;bootm/0x400000;bootm/' include/configs/qi_lb60.h
28− '';
29−
30− makeFlags = [
31− "CROSS_COMPILE=${stdenv.cc.targetPrefix}"
32− ];
33−
34− # Add reiserfs support
35− configurePhase = ''
36− make mrproper
37− make qi_lb60_config
38− '';
39−
40− preBuild= ''
41− # A variable named 'src' used to affect the build in some uboot...
42− unset -v src
43− '';
44−
45− dontStrip = true;
46−
47− installPhase = ''
48− mkdir -p $out
49− cp u-boot-nand.bin $out
50− cp u-boot u-boot.map $out
51−
52− mkdir -p $out/bin
53− cp tools/{envcrc,mkimage} $out/bin
54− '';
55−
56− meta = {
57− platforms = stdenv.lib.platforms.mips;
58− };
59−}