git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #98607 from samueldr/u-boot/remove-downstream-u-boots

Remove all non-mainline U-Boots

commit433db454f3f6925addb1d7e26f134ef67567ac02 authorSamuel Dionne-Riel <samuel@dionne-riel.com> dateWed 7 Oct 2020, 02:39 (6 years ago) parent41c0f493d2d18c
2 files changed−62
pkgs/misc/uboot/nanonote.nix−59 pkgs/top-level/all-packages.nix−3
pkgs/misc/uboot/nanonote.nixdeleted−59
@@ -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−}
pkgs/top-level/all-packages.nix−3
@@ -18641,9 +18641,6 @@ in
1864118641 ubootWandboard
1864218642 ;
1864318643
18644− # Non-upstream U-Boots:
18645− ubootNanonote = callPackage ../misc/uboot/nanonote.nix { };
18646−
1864718644 uclibc = callPackage ../os-specific/linux/uclibc { };
1864818645
1864918646 uclibcCross = callPackage ../os-specific/linux/uclibc {