Mercurial > hg > aboriginal
annotate download.sh @ 224:aec2d3ec7506
Linux 2.6.23.
author | Rob Landley <rob@landley.net> |
---|---|
date | Wed, 10 Oct 2007 16:29:08 -0500 |
parents | 8b0d2080707c |
children | 668e4460abca |
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 |
34
ad1cfcb043c7
Cleaup pass: Break out shell functions and variable definitions into include.sh.
Rob Landley <rob@landley.net>
parents:
32
diff
changeset
|
3 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
|
4 source include.sh |
10
7a1c606fd387
Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
5 |
222
8b0d2080707c
Be smarter about extracting tarballs: extract one copy of each tarball
Rob Landley <rob@landley.net>
parents:
211
diff
changeset
|
6 [ x"$1" == x--extract ] && EXTRACT_ALL=yes |
8b0d2080707c
Be smarter about extracting tarballs: extract one copy of each tarball
Rob Landley <rob@landley.net>
parents:
211
diff
changeset
|
7 |
49 | 8 # Dark blue |
9 echo -e "\e[34m" | |
10 | |
163
729dd17a7b74
Point uClibc at the 0.9.29-pre1 I just uploaded, teach include.sh about
Rob Landley <rob@landley.net>
parents:
148
diff
changeset
|
11 rm -rf sources/build-links && |
729dd17a7b74
Point uClibc at the 0.9.29-pre1 I just uploaded, teach include.sh about
Rob Landley <rob@landley.net>
parents:
148
diff
changeset
|
12 mkdir -p sources/build-links && |
729dd17a7b74
Point uClibc at the 0.9.29-pre1 I just uploaded, teach include.sh about
Rob Landley <rob@landley.net>
parents:
148
diff
changeset
|
13 |
34
ad1cfcb043c7
Cleaup pass: Break out shell functions and variable definitions into include.sh.
Rob Landley <rob@landley.net>
parents:
32
diff
changeset
|
14 # 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
|
15 |
168 | 16 # Note: set SHA1= blank to skip checksum validation. |
17 | |
10
7a1c606fd387
Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
18 echo "=== Download source code." && |
7a1c606fd387
Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
19 |
222
8b0d2080707c
Be smarter about extracting tarballs: extract one copy of each tarball
Rob Landley <rob@landley.net>
parents:
211
diff
changeset
|
20 # Note, a blank SHA1 value means accept anything, and the download script |
8b0d2080707c
Be smarter about extracting tarballs: extract one copy of each tarball
Rob Landley <rob@landley.net>
parents:
211
diff
changeset
|
21 # prints out the sha1 of such files after downloading it, so to update to |
8b0d2080707c
Be smarter about extracting tarballs: extract one copy of each tarball
Rob Landley <rob@landley.net>
parents:
211
diff
changeset
|
22 # a new version of a file, set SHA1= and updat the URL, run ./download.sh, |
8b0d2080707c
Be smarter about extracting tarballs: extract one copy of each tarball
Rob Landley <rob@landley.net>
parents:
211
diff
changeset
|
23 # 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
|
24 |
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
|
25 # Required for cross compile toolchain |
224 | 26 URL=http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.23.tar.bz2 \ |
27 SHA1=3a186adf13e44415796ab6381aa8979b16a5d5ca \ | |
10
7a1c606fd387
Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
28 download && |
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 \ |
10
7a1c606fd387
Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
32 download && |
224 | 33 #URL=http://uclibc.org/downloads/snapshots/uClibc-20070924.tar.bz2 \ |
222
8b0d2080707c
Be smarter about extracting tarballs: extract one copy of each tarball
Rob Landley <rob@landley.net>
parents:
211
diff
changeset
|
34 #SHA1= \ |
8b0d2080707c
Be smarter about extracting tarballs: extract one copy of each tarball
Rob Landley <rob@landley.net>
parents:
211
diff
changeset
|
35 #download && |
10
7a1c606fd387
Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
36 |
7a1c606fd387
Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
37 URL=ftp://ftp.gnu.org/gnu/binutils/binutils-2.17.tar.bz2 \ |
7a1c606fd387
Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
38 SHA1=a557686eef68362ea31a3aa41ce274e3eeae1ef0 \ |
7a1c606fd387
Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
39 download && |
7a1c606fd387
Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
40 |
106
f38c6dd2aaaa
Move to gcc 4.1.2 and update uClibc snapshot.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
41 URL=ftp://ftp.gnu.org/gnu/gcc/gcc-4.1.2/gcc-core-4.1.2.tar.bz2 \ |
f38c6dd2aaaa
Move to gcc 4.1.2 and update uClibc snapshot.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
42 SHA1=d6875295f6df1bec4a6f4ab8f0da54bfb8d97306 \ |
f38c6dd2aaaa
Move to gcc 4.1.2 and update uClibc snapshot.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
43 download && |
f38c6dd2aaaa
Move to gcc 4.1.2 and update uClibc snapshot.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
44 |
f38c6dd2aaaa
Move to gcc 4.1.2 and update uClibc snapshot.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
45 URL=http://ftp.gnu.org/gnu/gcc/gcc-4.1.2/gcc-g++-4.1.2.tar.bz2 \ |
f38c6dd2aaaa
Move to gcc 4.1.2 and update uClibc snapshot.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
46 SHA1=e29c6e151050f8b5ac5d680b99483df522606143 \ |
10
7a1c606fd387
Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
47 download && |
7a1c606fd387
Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
48 |
96
137ba51ee993
Delete output directories on re-run, teach build to log and build multiple
Rob Landley <rob@landley.net>
parents:
81
diff
changeset
|
49 URL=http://landley.net/code/toybox/downloads/toybox-0.0.3.tar.bz2 \ |
137ba51ee993
Delete output directories on re-run, teach build to log and build multiple
Rob Landley <rob@landley.net>
parents:
81
diff
changeset
|
50 SHA1= \ |
137ba51ee993
Delete output directories on re-run, teach build to log and build multiple
Rob Landley <rob@landley.net>
parents:
81
diff
changeset
|
51 download && |
137ba51ee993
Delete output directories on re-run, teach build to log and build multiple
Rob Landley <rob@landley.net>
parents:
81
diff
changeset
|
52 |
32
877349490008
Add qemu to the list of downloaded source code.
Rob Landley <rob@landley.net>
parents:
25
diff
changeset
|
53 # Ye olde emulator |
877349490008
Add qemu to the list of downloaded source code.
Rob Landley <rob@landley.net>
parents:
25
diff
changeset
|
54 |
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
|
55 #URL=http://qemu.org/qemu-0.9.0.tar.gz \ |
80d0640ded1e
Comment out qemu source download too. I want to put this back but not
Rob Landley <rob@landley.net>
parents:
131
diff
changeset
|
56 #SHA1=1e57e48a06eb8729913d92601000466eecef06cb \ |
80d0640ded1e
Comment out qemu source download too. I want to put this back but not
Rob Landley <rob@landley.net>
parents:
131
diff
changeset
|
57 #download && |
32
877349490008
Add qemu to the list of downloaded source code.
Rob Landley <rob@landley.net>
parents:
25
diff
changeset
|
58 |
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 # 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
|
60 |
1b1de34e3122
Teach the download script to make symlinks, and update kernel to 2.6.19.
Rob Landley <rob@landley.net>
parents:
10
diff
changeset
|
61 URL=http://superb-east.dl.sourceforge.net/sourceforge/squashfs/squashfs3.1.tar.gz \ |
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 SHA1=89d537fd18190402ff226ff885ddbc14f6227a9b \ |
1b1de34e3122
Teach the download script to make symlinks, and update kernel to 2.6.19.
Rob Landley <rob@landley.net>
parents:
10
diff
changeset
|
63 download && |
1b1de34e3122
Teach the download script to make symlinks, and update kernel to 2.6.19.
Rob Landley <rob@landley.net>
parents:
10
diff
changeset
|
64 |
1b1de34e3122
Teach the download script to make symlinks, and update kernel to 2.6.19.
Rob Landley <rob@landley.net>
parents:
10
diff
changeset
|
65 URL=http://www.busybox.net/downloads/busybox-1.2.2.tar.bz2 \ |
1b1de34e3122
Teach the download script to make symlinks, and update kernel to 2.6.19.
Rob Landley <rob@landley.net>
parents:
10
diff
changeset
|
66 SHA1=59670600121c9dacfd61e72e34f4bd975ec2c36f \ |
1b1de34e3122
Teach the download script to make symlinks, and update kernel to 2.6.19.
Rob Landley <rob@landley.net>
parents:
10
diff
changeset
|
67 download && |
1b1de34e3122
Teach the download script to make symlinks, and update kernel to 2.6.19.
Rob Landley <rob@landley.net>
parents:
10
diff
changeset
|
68 |
10
7a1c606fd387
Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
69 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
|
70 SHA1=41ed86d941b9c8025aee45db56c0283169dcab3d \ |
7a1c606fd387
Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
71 download && |
7a1c606fd387
Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
72 |
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
|
73 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
|
74 SHA1=b3e158877f94e66ec1c8ef604e994851ee388b09 \ |
6d6551a37687
Add make to mini-native (required one more option switched on in uClibc), add
Rob Landley <rob@landley.net>
parents:
49
diff
changeset
|
75 download && |
6d6551a37687
Add make to mini-native (required one more option switched on in uClibc), add
Rob Landley <rob@landley.net>
parents:
49
diff
changeset
|
76 |
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
|
77 URL=http://superb-east.dl.sourceforge.net/sourceforge/strace/strace-4.5.14.tar.bz2 \ |
106
f38c6dd2aaaa
Move to gcc 4.1.2 and update uClibc snapshot.
Rob Landley <rob@landley.net>
parents:
100
diff
changeset
|
78 SHA1=72c17d1dd6786d22ca0aaaa7292b8edcd70a27de \ |
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
|
79 download && |
57f77c25b39d
Hit uClibc build with a large rock so it stops inserting hardwired paths in
Rob Landley <rob@landley.net>
parents:
52
diff
changeset
|
80 |
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
|
81 # We look for things. Things that make us go. (Laxatives, aisle 7.) |
62f6268ff61b
Build uClibc's readelf and ldd by hand to work around inadequate cross-compile
Rob Landley <rob@landley.net>
parents:
106
diff
changeset
|
82 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
|
83 SHA1=88e4c15826bdbc5a3de0f7c1bcb429e558c6976d \ |
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 download && |
62f6268ff61b
Build uClibc's readelf and ldd by hand to work around inadequate cross-compile
Rob Landley <rob@landley.net>
parents:
106
diff
changeset
|
85 |
128
8c6b1e6a94d1
Update uClibc snapshot. This fixes the native gcc for arm.
Rob Landley <rob@landley.net>
parents:
110
diff
changeset
|
86 # 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
|
87 # 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
|
88 # 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
|
89 |
41 | 90 echo === Got all source. && |
91 | |
81
6dd38c925bc4
Upgrade some packages, and other cleanups.
Rob Landley <rob@landley.net>
parents:
76
diff
changeset
|
92 cleanup_oldfiles && |
41 | 93 |
49 | 94 # Set color back to normal. |
95 echo -e "\e[0m" |