annotate download.sh @ 444:0022aaa9124e

Add uClibc++ to download list, minor cleanup.
author Rob Landley <rob@landley.net>
date Mon, 03 Nov 2008 01:21:57 -0600
parents d1170bea3336
children f3df264b45a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
176
9f778e7cd3fd dash->bash and revert to 2.6.20 kernel until arm scsi works under qemu again.
Rob Landley <rob@landley.net>
parents: 169
diff changeset
1 #!/bin/bash
10
7a1c606fd387 Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff changeset
2
260
668e4460abca Switch to 2.6.24 kernel and toybox 0.0.4.
Rob Landley <rob@landley.net>
parents: 224
diff changeset
3 # Use "./download.sh --extract" to extract all tarballs.
668e4460abca Switch to 2.6.24 kernel and toybox 0.0.4.
Rob Landley <rob@landley.net>
parents: 224
diff changeset
4
34
ad1cfcb043c7 Cleaup pass: Break out shell functions and variable definitions into include.sh.
Rob Landley <rob@landley.net>
parents: 32
diff changeset
5 NO_ARCH=none
ad1cfcb043c7 Cleaup pass: Break out shell functions and variable definitions into include.sh.
Rob Landley <rob@landley.net>
parents: 32
diff changeset
6 source include.sh
10
7a1c606fd387 Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff changeset
7
431
d1170bea3336 Use nightly busybox and uClibc snapshots for unstable versions (to prepare for automated nightly builds).
Rob Landley <rob@landley.net>
parents: 420
diff changeset
8 [ "$1" == "--extract" ] && EXTRACT_ALL=yes
222
8b0d2080707c Be smarter about extracting tarballs: extract one copy of each tarball
Rob Landley <rob@landley.net>
parents: 211
diff changeset
9
49
84341b143dbb Turnerize.
Rob Landley <rob@landley.net>
parents: 45
diff changeset
10 # Dark blue
84341b143dbb Turnerize.
Rob Landley <rob@landley.net>
parents: 45
diff changeset
11 echo -e "\e[34m"
84341b143dbb Turnerize.
Rob Landley <rob@landley.net>
parents: 45
diff changeset
12
34
ad1cfcb043c7 Cleaup pass: Break out shell functions and variable definitions into include.sh.
Rob Landley <rob@landley.net>
parents: 32
diff changeset
13 # Download everything we haven't already got a copy of.
10
7a1c606fd387 Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff changeset
14
168
d7cae31e3876 Update kernel to 2.6.21.
Rob Landley <rob@landley.net>
parents: 166
diff changeset
15 # Note: set SHA1= blank to skip checksum validation.
d7cae31e3876 Update kernel to 2.6.21.
Rob Landley <rob@landley.net>
parents: 166
diff changeset
16
397
98b6f0746bf7 Minor cleanup, prepare for unstable package logic.
Rob Landley <rob@landley.net>
parents: 394
diff changeset
17 echo "=== Download source code."
10
7a1c606fd387 Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff changeset
18
385
4e331a1d678b Upgrade binutils to 2.18 (needed to work around powerpc linking bug in 2.6.26).
Rob Landley <rob@landley.net>
parents: 366
diff changeset
19 # Note: a blank SHA1 value means accept anything, and the download script
222
8b0d2080707c Be smarter about extracting tarballs: extract one copy of each tarball
Rob Landley <rob@landley.net>
parents: 211
diff changeset
20 # prints out the sha1 of such files after downloading it, so to update to
385
4e331a1d678b Upgrade binutils to 2.18 (needed to work around powerpc linking bug in 2.6.26).
Rob Landley <rob@landley.net>
parents: 366
diff changeset
21 # a new version of a file, set SHA1= and update the URL, run ./download.sh,
222
8b0d2080707c Be smarter about extracting tarballs: extract one copy of each tarball
Rob Landley <rob@landley.net>
parents: 211
diff changeset
22 # then cut and paste the sha1 from the output and run it again to confirm.
8b0d2080707c Be smarter about extracting tarballs: extract one copy of each tarball
Rob Landley <rob@landley.net>
parents: 211
diff changeset
23
11
1b1de34e3122 Teach the download script to make symlinks, and update kernel to 2.6.19.
Rob Landley <rob@landley.net>
parents: 10
diff changeset
24 # Required for cross compile toolchain
407
e64eb9ff27b9 Use unstable infrastructure to back off non-unstable kernel to 2.6.25 (where powerpc works) and bring back binutils 2.18 build as unstable version.
Rob Landley <rob@landley.net>
parents: 400
diff changeset
25 URL=http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.25.10.tar.bz2 \
e64eb9ff27b9 Use unstable infrastructure to back off non-unstable kernel to 2.6.25 (where powerpc works) and bring back binutils 2.18 build as unstable version.
Rob Landley <rob@landley.net>
parents: 400
diff changeset
26 SHA1=2911e1c01cd75d7e0fad2afb8329cd8ad1e742fb \
420
3ec2fa866280 Checkpoint the unstable packages I'm actually testing.
Rob Landley <rob@landley.net>
parents: 412
diff changeset
27 UNSTABLE=http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.27.1.tar.bz2 \
397
98b6f0746bf7 Minor cleanup, prepare for unstable package logic.
Rob Landley <rob@landley.net>
parents: 394
diff changeset
28 download || dienow
10
7a1c606fd387 Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff changeset
29
169
18f52910e676 Update to uClibc 0.9.29. (YES!)
Rob Landley <rob@landley.net>
parents: 168
diff changeset
30 URL=http://www.uclibc.org/downloads/uClibc-0.9.29.tar.bz2 \
18f52910e676 Update to uClibc 0.9.29. (YES!)
Rob Landley <rob@landley.net>
parents: 168
diff changeset
31 SHA1=1c5a36dc2cfa58b41db413190e45675c44ca4691 \
431
d1170bea3336 Use nightly busybox and uClibc snapshots for unstable versions (to prepare for automated nightly builds).
Rob Landley <rob@landley.net>
parents: 420
diff changeset
32 UNSTABLE=http://uclibc.org/downloads/uClibc-snapshot.tar.bz2 \
397
98b6f0746bf7 Minor cleanup, prepare for unstable package logic.
Rob Landley <rob@landley.net>
parents: 394
diff changeset
33 download || dienow
10
7a1c606fd387 Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff changeset
34
394
f6802733e627 Binutils 2.18 isn't usable under GPLv2 anymore, revert to 2.17.
Rob Landley <rob@landley.net>
parents: 386
diff changeset
35 URL=ftp://ftp.gnu.org/gnu/binutils/binutils-2.17.tar.bz2 \
f6802733e627 Binutils 2.18 isn't usable under GPLv2 anymore, revert to 2.17.
Rob Landley <rob@landley.net>
parents: 386
diff changeset
36 SHA1=a557686eef68362ea31a3aa41ce274e3eeae1ef0 \
407
e64eb9ff27b9 Use unstable infrastructure to back off non-unstable kernel to 2.6.25 (where powerpc works) and bring back binutils 2.18 build as unstable version.
Rob Landley <rob@landley.net>
parents: 400
diff changeset
37 UNSTABLE=ftp://ftp.gnu.org/gnu/binutils/binutils-2.18.tar.bz2 \
397
98b6f0746bf7 Minor cleanup, prepare for unstable package logic.
Rob Landley <rob@landley.net>
parents: 394
diff changeset
38 download || dienow
10
7a1c606fd387 Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff changeset
39
294
87df194d555d Back to gcc 4.1.2 until I find a large enough rock to fix the soft-float thing.
Rob Landley <rob@landley.net>
parents: 293
diff changeset
40 URL=ftp://ftp.gnu.org/gnu/gcc/gcc-4.1.2/gcc-core-4.1.2.tar.bz2 \
87df194d555d Back to gcc 4.1.2 until I find a large enough rock to fix the soft-float thing.
Rob Landley <rob@landley.net>
parents: 293
diff changeset
41 SHA1=d6875295f6df1bec4a6f4ab8f0da54bfb8d97306 \
397
98b6f0746bf7 Minor cleanup, prepare for unstable package logic.
Rob Landley <rob@landley.net>
parents: 394
diff changeset
42 download || dienow
106
f38c6dd2aaaa Move to gcc 4.1.2 and update uClibc snapshot.
Rob Landley <rob@landley.net>
parents: 100
diff changeset
43
294
87df194d555d Back to gcc 4.1.2 until I find a large enough rock to fix the soft-float thing.
Rob Landley <rob@landley.net>
parents: 293
diff changeset
44 URL=http://ftp.gnu.org/gnu/gcc/gcc-4.1.2/gcc-g++-4.1.2.tar.bz2 \
87df194d555d Back to gcc 4.1.2 until I find a large enough rock to fix the soft-float thing.
Rob Landley <rob@landley.net>
parents: 293
diff changeset
45 SHA1=e29c6e151050f8b5ac5d680b99483df522606143 \
397
98b6f0746bf7 Minor cleanup, prepare for unstable package logic.
Rob Landley <rob@landley.net>
parents: 394
diff changeset
46 download || dienow
10
7a1c606fd387 Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff changeset
47
334
c1f9966a73b9 Update to linux-2.6.25.4 and toybox 0.0.6.
Rob Landley <rob@landley.net>
parents: 322
diff changeset
48 URL=http://landley.net/code/toybox/downloads/toybox-0.0.6.tar.bz2 \
340
595332f94fea Add timeout to wget, and add another mirror (impactlinux.com) so there's a
Rob Landley <rob@landley.net>
parents: 334
diff changeset
49 SHA1=188c602a89dc6a53144a65e2fed92696a3d24444 \
420
3ec2fa866280 Checkpoint the unstable packages I'm actually testing.
Rob Landley <rob@landley.net>
parents: 412
diff changeset
50 UNSTABLE=http://landley.net/code/firmware/mirror/alt-toybox-0.tar.bz2 \
397
98b6f0746bf7 Minor cleanup, prepare for unstable package logic.
Rob Landley <rob@landley.net>
parents: 394
diff changeset
51 download || dienow
32
877349490008 Add qemu to the list of downloaded source code.
Rob Landley <rob@landley.net>
parents: 25
diff changeset
52
11
1b1de34e3122 Teach the download script to make symlinks, and update kernel to 2.6.19.
Rob Landley <rob@landley.net>
parents: 10
diff changeset
53 # Required for native build environment
1b1de34e3122 Teach the download script to make symlinks, and update kernel to 2.6.19.
Rob Landley <rob@landley.net>
parents: 10
diff changeset
54
411
7748d0b4b38d Update Busybox to 1.12.1.
Rob Landley <rob@landley.net>
parents: 407
diff changeset
55 URL=http://www.busybox.net/downloads/busybox-1.12.1.tar.bz2 \
7748d0b4b38d Update Busybox to 1.12.1.
Rob Landley <rob@landley.net>
parents: 407
diff changeset
56 SHA1=e405e2d6587714626c8eb7d181f63208f3997845 \
431
d1170bea3336 Use nightly busybox and uClibc snapshots for unstable versions (to prepare for automated nightly builds).
Rob Landley <rob@landley.net>
parents: 420
diff changeset
57 UNSTABLE=http://busybox.net/downloads/busybox-snapshot.tar.bz2 \
397
98b6f0746bf7 Minor cleanup, prepare for unstable package logic.
Rob Landley <rob@landley.net>
parents: 394
diff changeset
58 download || dienow
11
1b1de34e3122 Teach the download script to make symlinks, and update kernel to 2.6.19.
Rob Landley <rob@landley.net>
parents: 10
diff changeset
59
10
7a1c606fd387 Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff changeset
60 URL=ftp://ftp.gnu.org/gnu/make/make-3.81.tar.bz2 \
7a1c606fd387 Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff changeset
61 SHA1=41ed86d941b9c8025aee45db56c0283169dcab3d \
397
98b6f0746bf7 Minor cleanup, prepare for unstable package logic.
Rob Landley <rob@landley.net>
parents: 394
diff changeset
62 download || dienow
10
7a1c606fd387 Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff changeset
63
52
6d6551a37687 Add make to mini-native (required one more option switched on in uClibc), add
Rob Landley <rob@landley.net>
parents: 49
diff changeset
64 URL=http://ftp.gnu.org/gnu/bash/bash-2.05b.tar.gz \
6d6551a37687 Add make to mini-native (required one more option switched on in uClibc), add
Rob Landley <rob@landley.net>
parents: 49
diff changeset
65 SHA1=b3e158877f94e66ec1c8ef604e994851ee388b09 \
397
98b6f0746bf7 Minor cleanup, prepare for unstable package logic.
Rob Landley <rob@landley.net>
parents: 394
diff changeset
66 download || dienow
52
6d6551a37687 Add make to mini-native (required one more option switched on in uClibc), add
Rob Landley <rob@landley.net>
parents: 49
diff changeset
67
444
0022aaa9124e Add uClibc++ to download list, minor cleanup.
Rob Landley <rob@landley.net>
parents: 431
diff changeset
68 URL=http://cxx.uclibc.org/src/uClibc++-0.2.2.tar.bz2 \
0022aaa9124e Add uClibc++ to download list, minor cleanup.
Rob Landley <rob@landley.net>
parents: 431
diff changeset
69 SHA1=f5582d206378d7daee6f46609c80204c1ad5c0f7 \
397
98b6f0746bf7 Minor cleanup, prepare for unstable package logic.
Rob Landley <rob@landley.net>
parents: 394
diff changeset
70 download || dienow
66
57f77c25b39d Hit uClibc build with a large rock so it stops inserting hardwired paths in
Rob Landley <rob@landley.net>
parents: 52
diff changeset
71
444
0022aaa9124e Add uClibc++ to download list, minor cleanup.
Rob Landley <rob@landley.net>
parents: 431
diff changeset
72 # Optional but nice
0022aaa9124e Add uClibc++ to download list, minor cleanup.
Rob Landley <rob@landley.net>
parents: 431
diff changeset
73
110
62f6268ff61b Build uClibc's readelf and ldd by hand to work around inadequate cross-compile
Rob Landley <rob@landley.net>
parents: 106
diff changeset
74 URL=http://distcc.samba.org/ftp/distcc/distcc-2.18.3.tar.bz2 \
62f6268ff61b Build uClibc's readelf and ldd by hand to work around inadequate cross-compile
Rob Landley <rob@landley.net>
parents: 106
diff changeset
75 SHA1=88e4c15826bdbc5a3de0f7c1bcb429e558c6976d \
397
98b6f0746bf7 Minor cleanup, prepare for unstable package logic.
Rob Landley <rob@landley.net>
parents: 394
diff changeset
76 download || dienow
110
62f6268ff61b Build uClibc's readelf and ldd by hand to work around inadequate cross-compile
Rob Landley <rob@landley.net>
parents: 106
diff changeset
77
444
0022aaa9124e Add uClibc++ to download list, minor cleanup.
Rob Landley <rob@landley.net>
parents: 431
diff changeset
78 URL=http://superb-east.dl.sourceforge.net/sourceforge/strace/strace-4.5.14.tar.bz2 \
0022aaa9124e Add uClibc++ to download list, minor cleanup.
Rob Landley <rob@landley.net>
parents: 431
diff changeset
79 SHA1=72c17d1dd6786d22ca0aaaa7292b8edcd70a27de \
0022aaa9124e Add uClibc++ to download list, minor cleanup.
Rob Landley <rob@landley.net>
parents: 431
diff changeset
80 download || dienow
0022aaa9124e Add uClibc++ to download list, minor cleanup.
Rob Landley <rob@landley.net>
parents: 431
diff changeset
81
128
8c6b1e6a94d1 Update uClibc snapshot. This fixes the native gcc for arm.
Rob Landley <rob@landley.net>
parents: 110
diff changeset
82 # ftp://ftp.denx.de/pub/u-boot/u-boot-1.2.0.tar.bz2
8c6b1e6a94d1 Update uClibc snapshot. This fixes the native gcc for arm.
Rob Landley <rob@landley.net>
parents: 110
diff changeset
83 # http://tinderbox.dev.gentoo.org/portage/scripts/bootstrap.sh
135
80d0640ded1e Comment out qemu source download too. I want to put this back but not
Rob Landley <rob@landley.net>
parents: 131
diff changeset
84 # http://cxx.uclibc.org/src/uClibc++-0.2.1.tar.bz2
128
8c6b1e6a94d1 Update uClibc snapshot. This fixes the native gcc for arm.
Rob Landley <rob@landley.net>
parents: 110
diff changeset
85
397
98b6f0746bf7 Minor cleanup, prepare for unstable package logic.
Rob Landley <rob@landley.net>
parents: 394
diff changeset
86 echo === Got all source.
41
3baa8ab7ee6d Largeish update.
Rob Landley <rob@landley.net>
parents: 37
diff changeset
87
397
98b6f0746bf7 Minor cleanup, prepare for unstable package logic.
Rob Landley <rob@landley.net>
parents: 394
diff changeset
88 cleanup_oldfiles
41
3baa8ab7ee6d Largeish update.
Rob Landley <rob@landley.net>
parents: 37
diff changeset
89
49
84341b143dbb Turnerize.
Rob Landley <rob@landley.net>
parents: 45
diff changeset
90 # Set color back to normal.
84341b143dbb Turnerize.
Rob Landley <rob@landley.net>
parents: 45
diff changeset
91 echo -e "\e[0m"