Mercurial > hg > aboriginal
annotate download.sh @ 631:585c77c9e83f
Upgrade to uClibc-0.9.30.1 (and tweak lots of UNSTABLE URLs).
author | Rob Landley <rob@landley.net> |
---|---|
date | Wed, 11 Mar 2009 17:32:55 -0500 |
parents | fcecc8d854ea |
children | 87ef47d783f5 |
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 |
503
e98ed40c55ef
Move include.sh to sources/include.sh. End user doesn't call it directly, shouldn't be at top level.
Rob Landley <rob@landley.net>
parents:
492
diff
changeset
|
6 source sources/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 |
34
ad1cfcb043c7
Cleaup pass: Break out shell functions and variable definitions into include.sh.
Rob Landley <rob@landley.net>
parents:
32
diff
changeset
|
10 # 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
|
11 |
168 | 12 # Note: set SHA1= blank to skip checksum validation. |
13 | |
485
b0438691e9e1
Move color selection into ./config. (The default colors don't look great on a white background.)
Rob Landley <rob@landley.net>
parents:
475
diff
changeset
|
14 echo -e "$DOWNLOAD_COLOR" |
397
98b6f0746bf7
Minor cleanup, prepare for unstable package logic.
Rob Landley <rob@landley.net>
parents:
394
diff
changeset
|
15 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
|
16 |
582
d66eae57a344
Move mirror list into download.sh.
Rob Landley <rob@landley.net>
parents:
556
diff
changeset
|
17 # List of fallback mirrors for these files |
d66eae57a344
Move mirror list into download.sh.
Rob Landley <rob@landley.net>
parents:
556
diff
changeset
|
18 |
596 | 19 MIRROR_LIST="http://impactlinux.com/firmware/mirror http://landley.net/code/firmware/mirror http://127.0.0.1/code/firmware/mirror" |
582
d66eae57a344
Move mirror list into download.sh.
Rob Landley <rob@landley.net>
parents:
556
diff
changeset
|
20 |
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 # 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
|
22 # 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
|
23 # 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
|
24 # 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
|
25 |
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
|
26 # Required for cross compile toolchain |
622
fcecc8d854ea
Update to 2.6.28.5 kernel and strace 4.5.18.
Rob Landley <rob@landley.net>
parents:
620
diff
changeset
|
27 URL=http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.28.5.tar.bz2 \ |
fcecc8d854ea
Update to 2.6.28.5 kernel and strace 4.5.18.
Rob Landley <rob@landley.net>
parents:
620
diff
changeset
|
28 SHA1=1547b08421d69444373f0038b95c81ae496f5bce \ |
631
585c77c9e83f
Upgrade to uClibc-0.9.30.1 (and tweak lots of UNSTABLE URLs).
Rob Landley <rob@landley.net>
parents:
622
diff
changeset
|
29 UNSTABLE=http://kernel.org/pub/linux/kernel/v2.6/testing/linux-2.6.29-rc7.tar.bz2 \ |
397
98b6f0746bf7
Minor cleanup, prepare for unstable package logic.
Rob Landley <rob@landley.net>
parents:
394
diff
changeset
|
30 download || dienow |
10
7a1c606fd387
Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
31 |
631
585c77c9e83f
Upgrade to uClibc-0.9.30.1 (and tweak lots of UNSTABLE URLs).
Rob Landley <rob@landley.net>
parents:
622
diff
changeset
|
32 URL=http://www.uclibc.org/downloads/uClibc-0.9.30.1.tar.bz2 \ |
585c77c9e83f
Upgrade to uClibc-0.9.30.1 (and tweak lots of UNSTABLE URLs).
Rob Landley <rob@landley.net>
parents:
622
diff
changeset
|
33 SHA1=4b36fec9a0dacbd6fe0fd2cdb7836aaf8b7f4992 \ |
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
|
34 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
|
35 download || dienow |
10
7a1c606fd387
Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
36 |
394
f6802733e627
Binutils 2.18 isn't usable under GPLv2 anymore, revert to 2.17.
Rob Landley <rob@landley.net>
parents:
386
diff
changeset
|
37 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
|
38 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
|
39 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
|
40 download || dienow |
10
7a1c606fd387
Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
41 |
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
|
42 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
|
43 SHA1=d6875295f6df1bec4a6f4ab8f0da54bfb8d97306 \ |
631
585c77c9e83f
Upgrade to uClibc-0.9.30.1 (and tweak lots of UNSTABLE URLs).
Rob Landley <rob@landley.net>
parents:
622
diff
changeset
|
44 UNSTABLE=ftp://ftp.gnu.org/gnu/gcc/gcc-4.2.1/gcc-core-4.2.1.tar.bz2 \ |
397
98b6f0746bf7
Minor cleanup, prepare for unstable package logic.
Rob Landley <rob@landley.net>
parents:
394
diff
changeset
|
45 download || dienow |
106
f38c6dd2aaaa
Move to gcc 4.1.2 and update uClibc snapshot.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
46 |
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
|
47 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
|
48 SHA1=e29c6e151050f8b5ac5d680b99483df522606143 \ |
631
585c77c9e83f
Upgrade to uClibc-0.9.30.1 (and tweak lots of UNSTABLE URLs).
Rob Landley <rob@landley.net>
parents:
622
diff
changeset
|
49 UNSTABLE=http://ftp.gnu.org/gnu/gcc/gcc-4.2.1/gcc-g++-4.2.1.tar.bz2 \ |
397
98b6f0746bf7
Minor cleanup, prepare for unstable package logic.
Rob Landley <rob@landley.net>
parents:
394
diff
changeset
|
50 download || dienow |
10
7a1c606fd387
Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
51 |
603
524215827ef8
Fix toybox to build on a non-x86_64 host (the packaging script was leaving a prebuilt kconfig/conf binary in the tarball) and update to the latest busybox dot release while we're at it.
Rob Landley <rob@landley.net>
parents:
596
diff
changeset
|
52 URL=http://impactlinux.com/code/toybox/downloads/toybox-0.0.9.tar.bz2 \ |
524215827ef8
Fix toybox to build on a non-x86_64 host (the packaging script was leaving a prebuilt kconfig/conf binary in the tarball) and update to the latest busybox dot release while we're at it.
Rob Landley <rob@landley.net>
parents:
596
diff
changeset
|
53 SHA1=a3aed07694149c6582a78cf6de4dfcff0383c9d5 \ |
397
98b6f0746bf7
Minor cleanup, prepare for unstable package logic.
Rob Landley <rob@landley.net>
parents:
394
diff
changeset
|
54 download || dienow |
32
877349490008
Add qemu to the list of downloaded source code.
Rob Landley <rob@landley.net>
parents:
25
diff
changeset
|
55 |
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
|
56 # 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
|
57 |
603
524215827ef8
Fix toybox to build on a non-x86_64 host (the packaging script was leaving a prebuilt kconfig/conf binary in the tarball) and update to the latest busybox dot release while we're at it.
Rob Landley <rob@landley.net>
parents:
596
diff
changeset
|
58 URL=http://www.busybox.net/downloads/busybox-1.13.2.tar.bz2 \ |
524215827ef8
Fix toybox to build on a non-x86_64 host (the packaging script was leaving a prebuilt kconfig/conf binary in the tarball) and update to the latest busybox dot release while we're at it.
Rob Landley <rob@landley.net>
parents:
596
diff
changeset
|
59 SHA1=6659d92b0056971e0faab254fdcbc7fcce872e9e \ |
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
|
60 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
|
61 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
|
62 |
10
7a1c606fd387
Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
63 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
|
64 SHA1=41ed86d941b9c8025aee45db56c0283169dcab3d \ |
397
98b6f0746bf7
Minor cleanup, prepare for unstable package logic.
Rob Landley <rob@landley.net>
parents:
394
diff
changeset
|
65 download || dienow |
10
7a1c606fd387
Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
66 |
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 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
|
68 SHA1=b3e158877f94e66ec1c8ef604e994851ee388b09 \ |
397
98b6f0746bf7
Minor cleanup, prepare for unstable package logic.
Rob Landley <rob@landley.net>
parents:
394
diff
changeset
|
69 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
|
70 |
444
0022aaa9124e
Add uClibc++ to download list, minor cleanup.
Rob Landley <rob@landley.net>
parents:
431
diff
changeset
|
71 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
|
72 SHA1=f5582d206378d7daee6f46609c80204c1ad5c0f7 \ |
397
98b6f0746bf7
Minor cleanup, prepare for unstable package logic.
Rob Landley <rob@landley.net>
parents:
394
diff
changeset
|
73 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
|
74 |
444
0022aaa9124e
Add uClibc++ to download list, minor cleanup.
Rob Landley <rob@landley.net>
parents:
431
diff
changeset
|
75 # Optional but nice |
0022aaa9124e
Add uClibc++ to download list, minor cleanup.
Rob Landley <rob@landley.net>
parents:
431
diff
changeset
|
76 |
490
004f9509349b
Rip out User Mode Linux, switch to genext2fs instead. (Based on an old patch from James Davidson.)
Rob Landley <rob@landley.net>
parents:
485
diff
changeset
|
77 URL=http://downloads.sourceforge.net/genext2fs/genext2fs-1.4.1.tar.gz && |
004f9509349b
Rip out User Mode Linux, switch to genext2fs instead. (Based on an old patch from James Davidson.)
Rob Landley <rob@landley.net>
parents:
485
diff
changeset
|
78 SHA1=9ace486ee1bad0a49b02194515e42573036f7392 \ |
004f9509349b
Rip out User Mode Linux, switch to genext2fs instead. (Based on an old patch from James Davidson.)
Rob Landley <rob@landley.net>
parents:
485
diff
changeset
|
79 download || dienow |
004f9509349b
Rip out User Mode Linux, switch to genext2fs instead. (Based on an old patch from James Davidson.)
Rob Landley <rob@landley.net>
parents:
485
diff
changeset
|
80 |
620
9dd37018e9f2
Update distcc to current version.
Rob Landley <rob@landley.net>
parents:
617
diff
changeset
|
81 URL=http://distcc.googlecode.com/files/distcc-3.1.tar.bz2 \ |
9dd37018e9f2
Update distcc to current version.
Rob Landley <rob@landley.net>
parents:
617
diff
changeset
|
82 SHA1=30663e8ff94f13c0553fbfb928adba91814e1b3a \ |
397
98b6f0746bf7
Minor cleanup, prepare for unstable package logic.
Rob Landley <rob@landley.net>
parents:
394
diff
changeset
|
83 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
|
84 |
622
fcecc8d854ea
Update to 2.6.28.5 kernel and strace 4.5.18.
Rob Landley <rob@landley.net>
parents:
620
diff
changeset
|
85 URL=http://downloads.sourceforge.net/sourceforge/strace/strace-4.5.18.tar.bz2 \ |
fcecc8d854ea
Update to 2.6.28.5 kernel and strace 4.5.18.
Rob Landley <rob@landley.net>
parents:
620
diff
changeset
|
86 SHA1=50081a7201dc240299396f088abe53c07de98e4c \ |
444
0022aaa9124e
Add uClibc++ to download list, minor cleanup.
Rob Landley <rob@landley.net>
parents:
431
diff
changeset
|
87 download || dienow |
0022aaa9124e
Add uClibc++ to download list, minor cleanup.
Rob Landley <rob@landley.net>
parents:
431
diff
changeset
|
88 |
128
8c6b1e6a94d1
Update uClibc snapshot. This fixes the native gcc for arm.
Rob Landley <rob@landley.net>
parents:
110
diff
changeset
|
89 # 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
|
90 # 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
|
91 # 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
|
92 |
397
98b6f0746bf7
Minor cleanup, prepare for unstable package logic.
Rob Landley <rob@landley.net>
parents:
394
diff
changeset
|
93 echo === Got all source. |
41 | 94 |
397
98b6f0746bf7
Minor cleanup, prepare for unstable package logic.
Rob Landley <rob@landley.net>
parents:
394
diff
changeset
|
95 cleanup_oldfiles |
41 | 96 |
49 | 97 # Set color back to normal. |
98 echo -e "\e[0m" |