annotate download.sh @ 1545:49be0eeedda9

Upgrade binutils to the last GPLv2 commit in the .git repository (397a64b3, right before they poisoned gas). This includes the -Bsymbolic-functions thing musl needs (and oddly enough the first drop of armv7l support). Since "make dist" inexplicably doesn't work (because maintainers are _special_) the tarball was made via: git clean -fdx && git checkout -f && patch -p1 -i ~/aboriginal/sources/patches/binutils-screwinfo.patch && ./configure --disable-werror && make configure-host && find . -name Makefile | xargs sed -i 's/^all:/& $(DIST_COMMON) $(EXTRA_DIST) $(DIST_SOURCES)/' && make && patch -p1 -Ri ~/aboriginal/aboriginal/sources/patches/binutils-screwinfo.patch && make distclean This resurrects several of the things I worked out to build 2.18 back before I worked out the license on that had been changed by stealth. (This also gets us away from the 2.17 on the FSF website which the FSF retroactively replaced with a version containing GPLv3 source files last year).
author Rob Landley <rob@landley.net>
date Tue, 25 Sep 2012 19:42:33 -0500
parents 1c0053453b83
children 09f18f222c92
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
888
626288dd5cf3 Lots of comments.
Rob Landley <rob@landley.net>
parents: 862
diff changeset
3 # Download all the source tarballs we haven't got up-to-date copies of.
744
759adf5a0fe9 Refactor so include.sh mostly just sets environment variables. Move read_arch_dir to function and call it explicitly (no more need for $NO_ARCH). Make blank_tempdir a function, called explicitly by stages when needed, with some sanity checks. Insert prerequisite tests to later stages so they can detect failure early and provide an explicit erro rmessage, and have those tests happen before blanking $WORK dir, to preserve debugging info. Make buildall.sh depend on prerequisite tests rather than trying to avoid calling later stages (and thus do flow control from asynchronous context). Add FAIL_QUIET option so buildall.sh doesn't spam the log with the new prerequisite error messages.
Rob Landley <rob@landley.net>
parents: 730
diff changeset
4
888
626288dd5cf3 Lots of comments.
Rob Landley <rob@landley.net>
parents: 862
diff changeset
5 # The tarballs are downloaded into the "packages" directory, which is
626288dd5cf3 Lots of comments.
Rob Landley <rob@landley.net>
parents: 862
diff changeset
6 # created as needed.
626288dd5cf3 Lots of comments.
Rob Landley <rob@landley.net>
parents: 862
diff changeset
7
669
1cf41855bb85 More error checking.
Rob Landley <rob@landley.net>
parents: 657
diff changeset
8 source sources/include.sh || exit 1
10
7a1c606fd387 Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff changeset
9
744
759adf5a0fe9 Refactor so include.sh mostly just sets environment variables. Move read_arch_dir to function and call it explicitly (no more need for $NO_ARCH). Make blank_tempdir a function, called explicitly by stages when needed, with some sanity checks. Insert prerequisite tests to later stages so they can detect failure early and provide an explicit erro rmessage, and have those tests happen before blanking $WORK dir, to preserve debugging info. Make buildall.sh depend on prerequisite tests rather than trying to avoid calling later stages (and thus do flow control from asynchronous context). Add FAIL_QUIET option so buildall.sh doesn't spam the log with the new prerequisite error messages.
Rob Landley <rob@landley.net>
parents: 730
diff changeset
10 mkdir -p "$SRCDIR" || dienow
168
d7cae31e3876 Update kernel to 2.6.21.
Rob Landley <rob@landley.net>
parents: 166
diff changeset
11
397
98b6f0746bf7 Minor cleanup, prepare for unstable package logic.
Rob Landley <rob@landley.net>
parents: 394
diff changeset
12 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
13
744
759adf5a0fe9 Refactor so include.sh mostly just sets environment variables. Move read_arch_dir to function and call it explicitly (no more need for $NO_ARCH). Make blank_tempdir a function, called explicitly by stages when needed, with some sanity checks. Insert prerequisite tests to later stages so they can detect failure early and provide an explicit erro rmessage, and have those tests happen before blanking $WORK dir, to preserve debugging info. Make buildall.sh depend on prerequisite tests rather than trying to avoid calling later stages (and thus do flow control from asynchronous context). Add FAIL_QUIET option so buildall.sh doesn't spam the log with the new prerequisite error messages.
Rob Landley <rob@landley.net>
parents: 730
diff changeset
14 # Note: set SHA1= blank to skip checksum validation.
759adf5a0fe9 Refactor so include.sh mostly just sets environment variables. Move read_arch_dir to function and call it explicitly (no more need for $NO_ARCH). Make blank_tempdir a function, called explicitly by stages when needed, with some sanity checks. Insert prerequisite tests to later stages so they can detect failure early and provide an explicit erro rmessage, and have those tests happen before blanking $WORK dir, to preserve debugging info. Make buildall.sh depend on prerequisite tests rather than trying to avoid calling later stages (and thus do flow control from asynchronous context). Add FAIL_QUIET option so buildall.sh doesn't spam the log with the new prerequisite error messages.
Rob Landley <rob@landley.net>
parents: 730
diff changeset
15
759adf5a0fe9 Refactor so include.sh mostly just sets environment variables. Move read_arch_dir to function and call it explicitly (no more need for $NO_ARCH). Make blank_tempdir a function, called explicitly by stages when needed, with some sanity checks. Insert prerequisite tests to later stages so they can detect failure early and provide an explicit erro rmessage, and have those tests happen before blanking $WORK dir, to preserve debugging info. Make buildall.sh depend on prerequisite tests rather than trying to avoid calling later stages (and thus do flow control from asynchronous context). Add FAIL_QUIET option so buildall.sh doesn't spam the log with the new prerequisite error messages.
Rob Landley <rob@landley.net>
parents: 730
diff changeset
16 # A blank SHA1 value means accept anything, and the download script
759adf5a0fe9 Refactor so include.sh mostly just sets environment variables. Move read_arch_dir to function and call it explicitly (no more need for $NO_ARCH). Make blank_tempdir a function, called explicitly by stages when needed, with some sanity checks. Insert prerequisite tests to later stages so they can detect failure early and provide an explicit erro rmessage, and have those tests happen before blanking $WORK dir, to preserve debugging info. Make buildall.sh depend on prerequisite tests rather than trying to avoid calling later stages (and thus do flow control from asynchronous context). Add FAIL_QUIET option so buildall.sh doesn't spam the log with the new prerequisite error messages.
Rob Landley <rob@landley.net>
parents: 730
diff changeset
17 # 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
18 # 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
19 # 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
20
645
555a4cc67438 Reorder download entries into groups, add comments, add squashfs, bump qemu version.
Rob Landley <rob@landley.net>
parents: 644
diff changeset
21 # Building a cross compile toolchain requires linux headers, uClibc,
555a4cc67438 Reorder download entries into groups, add comments, add squashfs, bump qemu version.
Rob Landley <rob@landley.net>
parents: 644
diff changeset
22 # binutils, and gcc.
555a4cc67438 Reorder download entries into groups, add comments, add squashfs, bump qemu version.
Rob Landley <rob@landley.net>
parents: 644
diff changeset
23
1525
ec9a72351c38 Upgrade uClibc to next dot-release, which has a bugfix for the LFS build.
Rob Landley <rob@landley.net>
parents: 1523
diff changeset
24 URL=http://uclibc.org/downloads/uClibc-0.9.33.2.tar.bz2 \
ec9a72351c38 Upgrade uClibc to next dot-release, which has a bugfix for the LFS build.
Rob Landley <rob@landley.net>
parents: 1523
diff changeset
25 SHA1=4d8d67d6754409bd10015d67d1ce7a04c0b001ba \
1519
83de80c10db8 Upgrade to uClibc 0.9.33.1 (and use NPTL), and busybox 1.19.4.
Rob Landley <rob@landley.net>
parents: 1508
diff changeset
26 ALT=http://uclibc.org/downloads/uClibc-snapshot.tar.bz2 \
83de80c10db8 Upgrade to uClibc 0.9.33.1 (and use NPTL), and busybox 1.19.4.
Rob Landley <rob@landley.net>
parents: 1508
diff changeset
27 maybe_fork "download || dienow"
83de80c10db8 Upgrade to uClibc 0.9.33.1 (and use NPTL), and busybox 1.19.4.
Rob Landley <rob@landley.net>
parents: 1508
diff changeset
28
1530
2b3c892dc25e The 3.5 kernel and toybox 0.4.0. Some fixes likely to be required.
Rob Landley <rob@landley.net>
parents: 1526
diff changeset
29 URL=http://www.kernel.org/pub/linux/kernel/v3.x/linux-3.5.tar.bz2 \
2b3c892dc25e The 3.5 kernel and toybox 0.4.0. Some fixes likely to be required.
Rob Landley <rob@landley.net>
parents: 1526
diff changeset
30 SHA1=d80e85147417605e125fc3fb263af85d7ffd1ad5 \
1461
ad5303b6d35a Switch USE_UNSTABLE to USE_ALT and download.sh's UNSTABLE= to ALT= so naming is consistent with the alt- prefixes on packages and patches.
Rob Landley <rob@landley.net>
parents: 1451
diff changeset
31 ALT=http://kernel.org/pub/linux/kernel/v3.0/testing/linux-3.0-rc1.tar.bz2 \
990
00704bb2c556 Add FORK=1 support to download.sh, and work around bash's $$ refusing to give an actual unique $PID for subshells by groveling around in /proc to find something usable.
Rob Landley <rob@landley.net>
parents: 972
diff changeset
32 maybe_fork "download || dienow"
10
7a1c606fd387 Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff changeset
33
7a1c606fd387 Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff changeset
34
1545
49be0eeedda9 Upgrade binutils to the last GPLv2 commit in the .git repository (397a64b3, right before they poisoned gas). This includes the -Bsymbolic-functions thing musl needs (and oddly enough the first drop of armv7l support).
Rob Landley <rob@landley.net>
parents: 1542
diff changeset
35 # 2.17 was the last GPLv2 release of binutils, but git commit
49be0eeedda9 Upgrade binutils to the last GPLv2 commit in the .git repository (397a64b3, right before they poisoned gas). This includes the -Bsymbolic-functions thing musl needs (and oddly enough the first drop of armv7l support).
Rob Landley <rob@landley.net>
parents: 1542
diff changeset
36 # 397a64b350470350c8e0adb2af84439ea0f89272 was the last GPLv2
49be0eeedda9 Upgrade binutils to the last GPLv2 commit in the .git repository (397a64b3, right before they poisoned gas). This includes the -Bsymbolic-functions thing musl needs (and oddly enough the first drop of armv7l support).
Rob Landley <rob@landley.net>
parents: 1542
diff changeset
37 # _version_ of binutils. This tarball has prebuilt release files
49be0eeedda9 Upgrade binutils to the last GPLv2 commit in the .git repository (397a64b3, right before they poisoned gas). This includes the -Bsymbolic-functions thing musl needs (and oddly enough the first drop of armv7l support).
Rob Landley <rob@landley.net>
parents: 1542
diff changeset
38 # so it builds without optional dependencies such as lex and yacc.
645
555a4cc67438 Reorder download entries into groups, add comments, add squashfs, bump qemu version.
Rob Landley <rob@landley.net>
parents: 644
diff changeset
39
1545
49be0eeedda9 Upgrade binutils to the last GPLv2 commit in the .git repository (397a64b3, right before they poisoned gas). This includes the -Bsymbolic-functions thing musl needs (and oddly enough the first drop of armv7l support).
Rob Landley <rob@landley.net>
parents: 1542
diff changeset
40 URL=http://landley.net/aboriginal/mirror/binutils-397a64b3.tar.bz2
49be0eeedda9 Upgrade binutils to the last GPLv2 commit in the .git repository (397a64b3, right before they poisoned gas). This includes the -Bsymbolic-functions thing musl needs (and oddly enough the first drop of armv7l support).
Rob Landley <rob@landley.net>
parents: 1542
diff changeset
41 SHA1=efc2a12da60ebf56b98cb5edb8d9daaae6a49152 \
990
00704bb2c556 Add FORK=1 support to download.sh, and work around bash's $$ refusing to give an actual unique $PID for subshells by groveling around in /proc to find something usable.
Rob Landley <rob@landley.net>
parents: 972
diff changeset
42 maybe_fork "download || dienow"
10
7a1c606fd387 Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff changeset
43
645
555a4cc67438 Reorder download entries into groups, add comments, add squashfs, bump qemu version.
Rob Landley <rob@landley.net>
parents: 644
diff changeset
44 # 4.2.1 was the last GPLv2 release of gcc
555a4cc67438 Reorder download entries into groups, add comments, add squashfs, bump qemu version.
Rob Landley <rob@landley.net>
parents: 644
diff changeset
45
749
34f9a88336a8 Move stable to gcc-4.2.1, and use an even _bigger_ hammer to make canadian builds work with that. (./configure sucks even _more_ in this version, big shock there.)
Rob Landley <rob@landley.net>
parents: 744
diff changeset
46 URL=ftp://ftp.gnu.org/gnu/gcc/gcc-4.2.1/gcc-core-4.2.1.tar.bz2 \
34f9a88336a8 Move stable to gcc-4.2.1, and use an even _bigger_ hammer to make canadian builds work with that. (./configure sucks even _more_ in this version, big shock there.)
Rob Landley <rob@landley.net>
parents: 744
diff changeset
47 SHA1=43a138779e053a864bd16dfabcd3ffff04103213 \
1461
ad5303b6d35a Switch USE_UNSTABLE to USE_ALT and download.sh's UNSTABLE= to ALT= so naming is consistent with the alt- prefixes on packages and patches.
Rob Landley <rob@landley.net>
parents: 1451
diff changeset
48 #ALT=ftp://ftp.gnu.org/gnu/gcc/gcc-4.4.1/gcc-core-4.4.1.tar.bz2 \
990
00704bb2c556 Add FORK=1 support to download.sh, and work around bash's $$ refusing to give an actual unique $PID for subshells by groveling around in /proc to find something usable.
Rob Landley <rob@landley.net>
parents: 972
diff changeset
49 maybe_fork "download || dienow"
106
f38c6dd2aaaa Move to gcc 4.1.2 and update uClibc snapshot.
Rob Landley <rob@landley.net>
parents: 100
diff changeset
50
749
34f9a88336a8 Move stable to gcc-4.2.1, and use an even _bigger_ hammer to make canadian builds work with that. (./configure sucks even _more_ in this version, big shock there.)
Rob Landley <rob@landley.net>
parents: 744
diff changeset
51 # The g++ version must match gcc version.
34f9a88336a8 Move stable to gcc-4.2.1, and use an even _bigger_ hammer to make canadian builds work with that. (./configure sucks even _more_ in this version, big shock there.)
Rob Landley <rob@landley.net>
parents: 744
diff changeset
52
34f9a88336a8 Move stable to gcc-4.2.1, and use an even _bigger_ hammer to make canadian builds work with that. (./configure sucks even _more_ in this version, big shock there.)
Rob Landley <rob@landley.net>
parents: 744
diff changeset
53 URL=http://ftp.gnu.org/gnu/gcc/gcc-4.2.1/gcc-g++-4.2.1.tar.bz2 \
34f9a88336a8 Move stable to gcc-4.2.1, and use an even _bigger_ hammer to make canadian builds work with that. (./configure sucks even _more_ in this version, big shock there.)
Rob Landley <rob@landley.net>
parents: 744
diff changeset
54 SHA1=8f3785bd0e092f563e14ecd26921cd04275496a6 \
1461
ad5303b6d35a Switch USE_UNSTABLE to USE_ALT and download.sh's UNSTABLE= to ALT= so naming is consistent with the alt- prefixes on packages and patches.
Rob Landley <rob@landley.net>
parents: 1451
diff changeset
55 #ALT=http://ftp.gnu.org/gnu/gcc/gcc-4.4.1/gcc-g++-4.4.1.tar.bz2 \
990
00704bb2c556 Add FORK=1 support to download.sh, and work around bash's $$ refusing to give an actual unique $PID for subshells by groveling around in /proc to find something usable.
Rob Landley <rob@landley.net>
parents: 972
diff changeset
56 maybe_fork "download || dienow"
10
7a1c606fd387 Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff changeset
57
645
555a4cc67438 Reorder download entries into groups, add comments, add squashfs, bump qemu version.
Rob Landley <rob@landley.net>
parents: 644
diff changeset
58 # Building a native root filesystem requires linux and uClibc (above) plus
555a4cc67438 Reorder download entries into groups, add comments, add squashfs, bump qemu version.
Rob Landley <rob@landley.net>
parents: 644
diff changeset
59 # BusyBox. Adding a native toolchain requires binutils and gcc (above) plus
555a4cc67438 Reorder download entries into groups, add comments, add squashfs, bump qemu version.
Rob Landley <rob@landley.net>
parents: 644
diff changeset
60 # make and bash.
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
61
1530
2b3c892dc25e The 3.5 kernel and toybox 0.4.0. Some fixes likely to be required.
Rob Landley <rob@landley.net>
parents: 1526
diff changeset
62 URL=http://landley.net/toybox/downloads/toybox-0.4.0.tar.bz2 \
2b3c892dc25e The 3.5 kernel and toybox 0.4.0. Some fixes likely to be required.
Rob Landley <rob@landley.net>
parents: 1526
diff changeset
63 SHA1=2c495d9c951e6b70c4c6172be8b1c56426a54a47 \
1519
83de80c10db8 Upgrade to uClibc 0.9.33.1 (and use NPTL), and busybox 1.19.4.
Rob Landley <rob@landley.net>
parents: 1508
diff changeset
64 maybe_fork "download || dienow"
83de80c10db8 Upgrade to uClibc 0.9.33.1 (and use NPTL), and busybox 1.19.4.
Rob Landley <rob@landley.net>
parents: 1508
diff changeset
65
1542
1c0053453b83 Busybox version update.
Rob Landley <rob@landley.net>
parents: 1530
diff changeset
66 URL=http://www.busybox.net/downloads/busybox-1.20.2.tar.bz2 \
1c0053453b83 Busybox version update.
Rob Landley <rob@landley.net>
parents: 1530
diff changeset
67 SHA1=dd2e3684b13c0071d480e97b569041e69538e798 \
1461
ad5303b6d35a Switch USE_UNSTABLE to USE_ALT and download.sh's UNSTABLE= to ALT= so naming is consistent with the alt- prefixes on packages and patches.
Rob Landley <rob@landley.net>
parents: 1451
diff changeset
68 #ALT=http://busybox.net/downloads/busybox-snapshot.tar.bz2 \
990
00704bb2c556 Add FORK=1 support to download.sh, and work around bash's $$ refusing to give an actual unique $PID for subshells by groveling around in /proc to find something usable.
Rob Landley <rob@landley.net>
parents: 972
diff changeset
69 maybe_fork "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
70
10
7a1c606fd387 Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff changeset
71 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
72 SHA1=41ed86d941b9c8025aee45db56c0283169dcab3d \
990
00704bb2c556 Add FORK=1 support to download.sh, and work around bash's $$ refusing to give an actual unique $PID for subshells by groveling around in /proc to find something usable.
Rob Landley <rob@landley.net>
parents: 972
diff changeset
73 maybe_fork "download || dienow"
10
7a1c606fd387 Script to download all the source code needed by the build.
Rob Landley <rob@landley.net>
parents:
diff changeset
74
645
555a4cc67438 Reorder download entries into groups, add comments, add squashfs, bump qemu version.
Rob Landley <rob@landley.net>
parents: 644
diff changeset
75 # This version of bash is ancient, but it provides everything most package
555a4cc67438 Reorder download entries into groups, add comments, add squashfs, bump qemu version.
Rob Landley <rob@landley.net>
parents: 644
diff changeset
76 # builds need and is less than half the size of current versions. Eventually,
555a4cc67438 Reorder download entries into groups, add comments, add squashfs, bump qemu version.
Rob Landley <rob@landley.net>
parents: 644
diff changeset
77 # either busybox ash or toysh should grow enough features to replace bash.
555a4cc67438 Reorder download entries into groups, add comments, add squashfs, bump qemu version.
Rob Landley <rob@landley.net>
parents: 644
diff changeset
78
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
79 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
80 SHA1=b3e158877f94e66ec1c8ef604e994851ee388b09 \
990
00704bb2c556 Add FORK=1 support to download.sh, and work around bash's $$ refusing to give an actual unique $PID for subshells by groveling around in /proc to find something usable.
Rob Landley <rob@landley.net>
parents: 972
diff changeset
81 maybe_fork "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
82
645
555a4cc67438 Reorder download entries into groups, add comments, add squashfs, bump qemu version.
Rob Landley <rob@landley.net>
parents: 644
diff changeset
83 # These are optional parts of the native root filesystem.
555a4cc67438 Reorder download entries into groups, add comments, add squashfs, bump qemu version.
Rob Landley <rob@landley.net>
parents: 644
diff changeset
84
444
0022aaa9124e Add uClibc++ to download list, minor cleanup.
Rob Landley <rob@landley.net>
parents: 431
diff changeset
85 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
86 SHA1=f5582d206378d7daee6f46609c80204c1ad5c0f7 \
990
00704bb2c556 Add FORK=1 support to download.sh, and work around bash's $$ refusing to give an actual unique $PID for subshells by groveling around in /proc to find something usable.
Rob Landley <rob@landley.net>
parents: 972
diff changeset
87 maybe_fork "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
88
620
9dd37018e9f2 Update distcc to current version.
Rob Landley <rob@landley.net>
parents: 617
diff changeset
89 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
90 SHA1=30663e8ff94f13c0553fbfb928adba91814e1b3a \
990
00704bb2c556 Add FORK=1 support to download.sh, and work around bash's $$ refusing to give an actual unique $PID for subshells by groveling around in /proc to find something usable.
Rob Landley <rob@landley.net>
parents: 972
diff changeset
91 maybe_fork "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
92
645
555a4cc67438 Reorder download entries into groups, add comments, add squashfs, bump qemu version.
Rob Landley <rob@landley.net>
parents: 644
diff changeset
93 # The following packages are built and run on the host only. (host-tools.sh
555a4cc67438 Reorder download entries into groups, add comments, add squashfs, bump qemu version.
Rob Landley <rob@landley.net>
parents: 644
diff changeset
94 # also builds host versions of many packages in the native root filesystem,
555a4cc67438 Reorder download entries into groups, add comments, add squashfs, bump qemu version.
Rob Landley <rob@landley.net>
parents: 644
diff changeset
95 # but the following packages are not cross compiled for the target, and thus
555a4cc67438 Reorder download entries into groups, add comments, add squashfs, bump qemu version.
Rob Landley <rob@landley.net>
parents: 644
diff changeset
96 # do not wind up in the system image.)
555a4cc67438 Reorder download entries into groups, add comments, add squashfs, bump qemu version.
Rob Landley <rob@landley.net>
parents: 644
diff changeset
97
802
d3b42dfc4d40 Minor version bumps for kernel, busybox, and e2fsprogs, add dropbear to the download list, and use shorter version of sourceforge download links.
Rob Landley <rob@landley.net>
parents: 799
diff changeset
98 URL=http://downloads.sf.net/genext2fs/genext2fs-1.4.1.tar.gz &&
645
555a4cc67438 Reorder download entries into groups, add comments, add squashfs, bump qemu version.
Rob Landley <rob@landley.net>
parents: 644
diff changeset
99 SHA1=9ace486ee1bad0a49b02194515e42573036f7392 \
990
00704bb2c556 Add FORK=1 support to download.sh, and work around bash's $$ refusing to give an actual unique $PID for subshells by groveling around in /proc to find something usable.
Rob Landley <rob@landley.net>
parents: 972
diff changeset
100 maybe_fork "download || dienow"
645
555a4cc67438 Reorder download entries into groups, add comments, add squashfs, bump qemu version.
Rob Landley <rob@landley.net>
parents: 644
diff changeset
101
1462
61b784a003c3 e2fsprogs version bump, because it's there.
Rob Landley <rob@landley.net>
parents: 1461
diff changeset
102 URL=http://downloads.sf.net/e2fsprogs/e2fsprogs-1.41.14.tar.gz \
61b784a003c3 e2fsprogs version bump, because it's there.
Rob Landley <rob@landley.net>
parents: 1461
diff changeset
103 SHA1=24f9364fa3d4c0d7d00cb627b819d0e51055d6c5 \
990
00704bb2c556 Add FORK=1 support to download.sh, and work around bash's $$ refusing to give an actual unique $PID for subshells by groveling around in /proc to find something usable.
Rob Landley <rob@landley.net>
parents: 972
diff changeset
104 maybe_fork "download || dienow"
645
555a4cc67438 Reorder download entries into groups, add comments, add squashfs, bump qemu version.
Rob Landley <rob@landley.net>
parents: 644
diff changeset
105
1077
910785c683d5 New zlib release, and fix fallback mirror since new domain names aren't quite working yet.
Rob Landley <rob@landley.net>
parents: 1037
diff changeset
106 URL=http://zlib.net/zlib-1.2.5.tar.bz2 \
910785c683d5 New zlib release, and fix fallback mirror since new domain names aren't quite working yet.
Rob Landley <rob@landley.net>
parents: 1037
diff changeset
107 SHA1=543fa9abff0442edca308772d6cef85557677e02 \
1024
0fd90ff771dc Build zlib for squashfs, so we don't depend on the host having it.
Rob Landley <rob@landley.net>
parents: 1019
diff changeset
108 maybe_fork "download || dienow"
0fd90ff771dc Build zlib for squashfs, so we don't depend on the host having it.
Rob Landley <rob@landley.net>
parents: 1019
diff changeset
109
1348
5a33fe4127fd Update to squashfs 4.2.
Rob Landley <rob@landley.net>
parents: 1339
diff changeset
110 URL=http://downloads.sf.net/squashfs/squashfs4.2.tar.gz \
5a33fe4127fd Update to squashfs 4.2.
Rob Landley <rob@landley.net>
parents: 1339
diff changeset
111 SHA1=e0944471ff68e215d3fecd464f30ea6ceb635fd7 \
647
6886c9fcb89b Add download RENAME support and make squashfs use it to give a packagename-version filename like all the others.
Rob Landley <rob@landley.net>
parents: 645
diff changeset
112 RENAME="s/(squashfs)(.*)/\1-\2/" \
990
00704bb2c556 Add FORK=1 support to download.sh, and work around bash's $$ refusing to give an actual unique $PID for subshells by groveling around in /proc to find something usable.
Rob Landley <rob@landley.net>
parents: 972
diff changeset
113 maybe_fork "download || dienow"
00704bb2c556 Add FORK=1 support to download.sh, and work around bash's $$ refusing to give an actual unique $PID for subshells by groveling around in /proc to find something usable.
Rob Landley <rob@landley.net>
parents: 972
diff changeset
114
972
cfa6262528f3 Genericize native build.
Rob Landley <rob@landley.net>
parents: 962
diff changeset
115 rm -f "$SRCDIR"/MANIFEST # So cleanup_oldfiles doesn't warn about it.
397
98b6f0746bf7 Minor cleanup, prepare for unstable package logic.
Rob Landley <rob@landley.net>
parents: 394
diff changeset
116 cleanup_oldfiles
41
3baa8ab7ee6d Largeish update.
Rob Landley <rob@landley.net>
parents: 37
diff changeset
117
1421
5ab861584165 Cosmetic tweak, with FORK=1 download.sh shouldn't announce it's done until it is.
Rob Landley <rob@landley.net>
parents: 1419
diff changeset
118 echo === Got all source.
5ab861584165 Cosmetic tweak, with FORK=1 download.sh shouldn't announce it's done until it is.
Rob Landley <rob@landley.net>
parents: 1419
diff changeset
119
657
a56fa2df4d82 Add MANIFEST file to mini-native-$ARCH/usr/src.
Rob Landley <rob@landley.net>
parents: 649
diff changeset
120 # Create a MANIFEST file listing package versions.
a56fa2df4d82 Add MANIFEST file to mini-native-$ARCH/usr/src.
Rob Landley <rob@landley.net>
parents: 649
diff changeset
121
a56fa2df4d82 Add MANIFEST file to mini-native-$ARCH/usr/src.
Rob Landley <rob@landley.net>
parents: 649
diff changeset
122 # This can optionally call source control systems (hg and svn) to get version
1461
ad5303b6d35a Switch USE_UNSTABLE to USE_ALT and download.sh's UNSTABLE= to ALT= so naming is consistent with the alt- prefixes on packages and patches.
Rob Landley <rob@landley.net>
parents: 1451
diff changeset
123 # information for the build scripts and any USE_ALT packages. These
896
edc150001472 New FAQ entry, comment updates.
Rob Landley <rob@landley.net>
parents: 888
diff changeset
124 # are intentionally excluded from the new path setup by host-tools.sh, so
edc150001472 New FAQ entry, comment updates.
Rob Landley <rob@landley.net>
parents: 888
diff changeset
125 # just in case we've already run that use $OLDPATH for this.
657
a56fa2df4d82 Add MANIFEST file to mini-native-$ARCH/usr/src.
Rob Landley <rob@landley.net>
parents: 649
diff changeset
126
1390
ac60cab45463 Remove FWL debris and rename do_rename to do_manifest while we're at it. (Based on prompting from Alessio Bogani).
Rob Landley <rob@landley.net>
parents: 1364
diff changeset
127 PATH="$OLDPATH" do_manifest > "$SRCDIR"/MANIFEST || dienow