summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)AuthorFilesLines
2009-01-25On 20090120.2203+0100, Andy Johnson <ajohnson@aecno.com> wrote:Yann E. MORIN"1-4/+4
The glibc.sh script doesn't handle the glibc versions with an underscore very well (bash expected integer error). I have attached a small patch for that. Instead of looking for "not period" I changed the sense to look for numbers. I initially tried to make it look for either a period or an underscore, but that didn't work like I wanted (probably because I did something wrong). Original patch modified to be more robust. /trunk/scripts/build/libc/glibc.sh | 8 4 4 0 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
2009-01-20On 20090115.0012+0100, "Andy Johnson" <ajohnson@aecno.com> wrote:Yann E. MORIN"2-38/+42
... I added a step after "debug" called "finish", and moved the code in crosstool.sh after the loop that processes the steps from crosstool.sh into a do_finish function in functions. Thus, it is now possible to restart after the "debug" step to re-do the final few things (clean and compress). /trunk/scripts/crosstool-NG.sh | 38 0 38 0 -------------------------------------- /trunk/scripts/functions | 42 42 0 0 ++++++++++++++++++++++++++++++++++++++++++ /trunk/steps.mk | 3 2 1 0 ++- 3 files changed, 44 insertions(+), 39 deletions(-)
2009-01-20Forced-removing of a non-existing directory breaks the build.Yann E. MORIN"1-3/+10
Noticed by "Andy Johnson" <ajohnson@aecno.com>, who provided a patch that I adapted. /trunk/scripts/functions | 13 10 3 0 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-)
2009-01-20Fix building ltrace on PowerPC.Yann E. MORIN"1-0/+5
On 20090115.0012+0100, "Andy Johnson" <ajohnson@aecno.com> wrote: ltrace wouldn't build on PowerPC because in the sysdeps/linux-gnu directory in the ltrace source tree the powerpc directory is called ppc. I added some code in 400-ltrace.sh to create a symlink for it so it will build now. Patch slightly modified by me before applying. /trunk/scripts/build/debug/400-ltrace.sh | 5 5 0 0 +++++ 1 file changed, 5 insertions(+)
2009-01-18Rename scripts/crosstool.sh to scripts/crosstool-NG.sh.Yann E. MORIN"1-0/+0
After all, this is not crosstool, but really crosstool-NG! /trunk/steps.mk | 2 1 1 0 +- /trunk/ct-ng.in | 2 1 1 0 +- 2 files changed, 2 insertions(+), 2 deletions(-)
2009-01-12Fix removing existing directories by chmod'ing them to be user-writeable.Yann E. MORIN"2-11/+17
/trunk/scripts/crosstool.sh | 21 10 11 0 ++++++++++----------- /trunk/scripts/functions | 7 7 0 0 +++++++ 2 files changed, 17 insertions(+), 11 deletions(-)
2009-01-12Fix initialising the workspace:Yann E. MORIN"1-57/+43
- don't remove directories in the background: - it is highly dangerous - it can lead to data loss in case of frequent stop/restart with a slow disk - log actions with CT_DoExecLog as much as possible, instead of using |CT_DoLog /trunk/scripts/crosstool.sh | 100 43 57 0 ++++++++++++++++++++++----------------------------- 1 file changed, 43 insertions(+), 57 deletions(-)
2009-01-12Don't print anything about LAN mirror if it is not used.Yann E. MORIN"1-7/+9
Don't re-compute a variable that has already been computed. /trunk/scripts/functions | 16 9 7 0 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-)
2009-01-11The uClibc site has been overhauled lately, so the URL to retrieve sstrip ↵Yann E. MORIN"1-3/+10
has changed. Thanks to Thomas Monjalon <thomas@monjalon.net> and John Utz <john@utzweb.net> for spotting this. /trunk/scripts/build/tools/200-sstrip.sh | 13 10 3 0 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-)
2009-01-06Add an option to forbid downloads.Yann E. MORIN"1-0/+6
Idea and code-base from Don Elwell <don@manifoldlabs.com>, adapted by me. /trunk/scripts/functions | 6 6 0 0 ++++++ /trunk/config/global/download.in | 18 18 0 0 ++++++++++++++++++ 2 files changed, 24 insertions(+)
2009-01-06Add the Eclipse Java Compiler to be able to compile Java.Yann E. MORIN"2-1/+13
Andy JOHNSON wrote: The Java compiler for GCC versions 4.3.0 and up requires the Eclipse compiler "ecj1" to be built as well. I added "gcj" to the list of utilities to make the initial link. /trunk/scripts/build/cc/gcc.sh | 12 12 0 0 ++++++++++++ /trunk/scripts/crosstool.sh | 2 1 1 0 +- /trunk/config/cc/gcc.in | 6 6 0 0 ++++++ 3 files changed, 19 insertions(+), 1 deletion(-)
2009-01-06Message beautification when saving locally.Yann E. MORIN"1-1/+1
/trunk/scripts/functions | 2 1 1 0 +- 1 file changed, 1 insertion(+), 1 deletion(-)
2009-01-05Split CT_ExtractAndPatch in two: CT_Extract and CT_Patch:Yann E. MORIN"18-70/+109
- it is unworkable to have CT_ExtactAndPAtch cope with all those silly glibc addons: - they can have 'short' (as 'ports') or 'long' (as glibc-ports-2.7) names - patches are against eithe the short or long name, but non-uniformly use one or the other - it is the reposibility of the component (glibc in this case) to handle corner cases such as those - update all components to use the new functions /trunk/scripts/build/tools/000-template.sh | 3 2 1 0 +- /trunk/scripts/build/tools/100-libelf.sh | 3 2 1 0 +- /trunk/scripts/build/tools/200-sstrip.sh | 3 2 1 0 +- /trunk/scripts/build/kernel/linux.sh | 3 2 1 0 +- /trunk/scripts/build/binutils.sh | 3 2 1 0 +- /trunk/scripts/build/cc/gcc.sh | 3 2 1 0 +- /trunk/scripts/build/debug/000-template.sh | 3 2 1 0 +- /trunk/scripts/build/debug/100-dmalloc.sh | 3 2 1 0 +- /trunk/scripts/build/debug/400-ltrace.sh | 3 2 1 0 +- /trunk/scripts/build/debug/300-gdb.sh | 9 6 3 0 +++-- /trunk/scripts/build/debug/500-strace.sh | 7 3 4 0 ++-- /trunk/scripts/build/debug/200-duma.sh | 19 8 11 0 ++++------ /trunk/scripts/build/libc/glibc.sh | 14 12 2 0 ++++++- /trunk/scripts/build/libc/uClibc.sh | 13 9 4 0 +++++-- /trunk/scripts/build/libc/eglibc.sh | 14 12 2 0 ++++++- /trunk/scripts/build/gmp.sh | 3 2 1 0 +- /trunk/scripts/build/mpfr.sh | 3 2 1 0 +- /trunk/scripts/functions | 68 36 32 0 +++++++++++++++++++----------------- 18 files changed, 108 insertions(+), 69 deletions(-)
2009-01-05Fix building DUMA:Yann E. MORIN"1-1/+2
- DUMA separates its name from its version with an underscore, not with a dash. /trunk/scripts/build/debug/200-duma.sh | 3 2 1 0 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
2009-01-05Fix C library addons extraction:Yann E. MORIN"3-3/+1
- renaming the dircetory in CT_ExtratAndPatch is wrong: - patches against the C library addons may be build against the short *or* long name... :-( - symlink is more robust, even if less nice - renaming the directory _after_ CT_ExtractAndPatch is too late: - if patches are against the short name, and we renamed too the long name, patches don't apply - so we'll never reach the point where we rename /trunk/scripts/build/libc/glibc.sh | 1 0 1 0 - /trunk/scripts/build/libc/eglibc.sh | 1 0 1 0 - /trunk/scripts/functions | 2 1 1 0 +- 3 files changed, 1 insertion(+), 3 deletions(-)
2009-01-04Get rid of CT_LIBC_FILE, remove useless CT_MakeAbsolutePath.Yann E. MORIN"6-131/+84
CT_LIBC_FILE: - that one was not easy, as it had sneaked into CT_ExtractAndPatch - which in turn made CT_ExtractAndPatch have references to C library addons - which in turn relieved the C library _extract functions from doing their own job - which in turn imposed some nasty tricks in CT_ExtractAndPatch - which in turn made life easier for the DUMA _get and _extract functions - which unveiled some bizare behavior for pushd and popd: - if using smthg ike: 'pushd foo |bar': - the directory is *neither* changed - *nor* is it pushed onto the stack - which made popd fail CT_MakeAbsolutePath: - used only to make CT_LOCAL_TARBALLS_DIR canonical - which is ((almost) useless: - hopefully, the user entered a full path already - if it's not the case, too bad... /trunk/scripts/build/debug/200-duma.sh | 5 1 4 0 +-- /trunk/scripts/build/libc/glibc.sh | 61 32 29 0 +++++++++++++++++--------------- /trunk/scripts/build/libc/uClibc.sh | 16 10 6 0 +++++--- /trunk/scripts/build/libc/eglibc.sh | 48 26 22 0 ++++++++++++++----------- /trunk/scripts/crosstool.sh | 8 0 8 0 ---- /trunk/scripts/functions | 77 15 62 0 ++++++++-------------------------------- 6 files changed, 84 insertions(+), 131 deletions(-)
2009-01-04Get rid of CT_CC_FILE.Yann E. MORIN"2-27/+26
/trunk/scripts/build/cc/gcc.sh | 52 26 26 0 ++++++++++++++++++++++++------------------------ /trunk/scripts/crosstool.sh | 1 0 1 0 - 2 files changed, 26 insertions(+), 27 deletions(-)
2009-01-04Remove support for gcc-2.95.3, it has never ever been tested.Yann E. MORIN"2-8/+0
/trunk/config/cc/gcc.in | 6 0 6 0 ------ /trunk/scripts/build/libc/glibc.sh | 4 0 4 0 ---- /trunk/scripts/build/libc/uClibc.sh | 4 0 4 0 ---- 3 files changed, 14 deletions(-)
2009-01-04Fix aborting when neither wget nor curl are present.Yann E. MORIN"1-1/+1
/trunk/scripts/functions | 2 1 1 0 +- 1 file changed, 1 insertion(+), 1 deletion(-)
2009-01-04Get rid of CT_GMP_FILE and CT_MPFR_FILE.Yann E. MORIN"3-37/+35
/trunk/scripts/build/gmp.sh | 32 16 16 0 ++++++++++++++++---------------- /trunk/scripts/build/mpfr.sh | 38 19 19 0 +++++++++++++++++++------------------- /trunk/scripts/crosstool.sh | 2 0 2 0 -- 3 files changed, 35 insertions(+), 37 deletions(-)
2009-01-04A small layout enhancement in the Linux kernel build script.Yann E. MORIN"1-1/+2
/trunk/scripts/build/kernel/linux.sh | 3 2 1 0 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
2009-01-04Get rid of CT_BINUTILS_FILE.Yann E. MORIN"2-29/+28
/trunk/scripts/build/binutils.sh | 56 28 28 0 +++++++++++++++++++++++----------------------- /trunk/scripts/crosstool.sh | 1 0 1 0 - 2 files changed, 28 insertions(+), 29 deletions(-)
2009-01-04Get rid off CT_KERNEL_FILE.Yann E. MORIN"2-16/+15
/trunk/scripts/build/kernel/linux.sh | 30 15 15 0 +++++++++++++++--------------- /trunk/scripts/crosstool.sh | 1 0 1 0 - 2 files changed, 15 insertions(+), 16 deletions(-)
2009-01-04Enable using glibc post 2.8:Yann E. MORIN"1-11/+39
- retrieve tarballs from FTP/HTTP for glibc 2.7 and older - checkout from CVS for glibc 2.8 and later - add config options for glibc-2_8 and glibc-2_9 /trunk/scripts/build/libc/glibc.sh | 50 39 11 0 ++++++++++++++++++++++++++++++++++---------- /trunk/config/libc/glibc.in | 49 49 0 0 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+), 11 deletions(-)
2009-01-04Add new wrapper fucntions:Yann E. MORIN"1-35/+91
- retrieve from local storage (CT_GetLocal) - save to local storage (CT_SaveLocal) - retrieve from CVS (CT_GetCVS) - make CT_GetFile and CT_GetCVS use CT_GetLocal and CT_SaveLocal /trunk/scripts/functions | 126 91 35 0 +++++++++++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 91 insertions(+), 35 deletions(-)
2009-01-03Get rid of all stuff related to building a /delivery' traball:Yann E. MORIN"20-221/+1
- building a delivery tarball has long been broken (since crostool-Ng is installable) - get rid of implied do_print_filename, that can be mis-leading now tarballs can not be built /trunk/scripts/build/kernel/bare-metal.sh | 4 0 4 0 ---- /trunk/scripts/build/kernel/linux.sh | 4 0 4 0 ---- /trunk/scripts/build/tools/000-template.sh | 11 0 11 0 ----------- /trunk/scripts/build/tools/100-libelf.sh | 4 0 4 0 ---- /trunk/scripts/build/tools/200-sstrip.sh | 11 1 10 0 +---------- /trunk/scripts/build/binutils.sh | 4 0 4 0 ---- /trunk/scripts/build/cc/gcc.sh | 5 0 5 0 ----- /trunk/scripts/build/debug/000-template.sh | 11 0 11 0 ----------- /trunk/scripts/build/debug/100-dmalloc.sh | 4 0 4 0 ---- /trunk/scripts/build/debug/400-ltrace.sh | 4 0 4 0 ---- /trunk/scripts/build/debug/300-gdb.sh | 7 0 7 0 ------- /trunk/scripts/build/debug/500-strace.sh | 4 0 4 0 ---- /trunk/scripts/build/debug/200-duma.sh | 4 0 4 0 ---- /trunk/scripts/build/libc/none.sh | 5 0 5 0 ----- /trunk/scripts/build/libc/glibc.sh | 10 0 10 0 ---------- /trunk/scripts/build/libc/uClibc.sh | 6 0 6 0 ------ /trunk/scripts/build/libc/eglibc.sh | 10 0 10 0 ---------- /trunk/scripts/build/gmp.sh | 6 0 6 0 ------ /trunk/scripts/build/mpfr.sh | 6 0 6 0 ------ /trunk/docs/overview.txt | 9 0 9 0 --------- 20 files changed, 1 insertion(+), 128 deletions(-)
2009-01-03Remove spurious line in gcc script (probably a bad copy-paste with the ↵Yann E. MORIN"1-1/+0
mouse...). /trunk/scripts/build/cc/gcc.sh | 1 0 1 0 - 1 file changed, 1 deletion(-)
2008-12-24Enable C++ for baremetal.Yann E. MORIN"1-2/+5
/trunk/scripts/build/cc/gcc.sh | 7 5 2 0 +++++-- /trunk/config/cc.in | 8 2 6 0 ++------ 2 files changed, 7 insertions(+), 8 deletions(-)
2008-12-21Make it clear that, if the second argument of CT_GetFile starts with a dot, ↵Yann E. MORIN"1-1/+1
it is considered to be the preferred extension. /trunk/scripts/functions | 2 1 1 0 +- 1 file changed, 1 insertion(+), 1 deletion(-)
2008-12-16Get rid of the tols/ directory:Yann E. MORIN"4-8/+3286
- move config.guess and config.sub from tools/ into scripts/ - update the scripts and makefile fragments accordingly /trunk/Makefile.in | 10 5 5 0 +++++----- /trunk/scripts/functions | 16 8 8 0 ++++++++-------- /trunk/scripts/scripts.mk | 28 13 15 0 +++++++++++++--------------- /trunk/ct-ng.in | 4 2 2 0 ++-- 4 files changed, 28 insertions(+), 30 deletions(-)
2008-12-15Move patch-renumber.sh from tools/ to scripts/Yann E. MORIN"1-0/+32
2008-12-11Move toolchain-config.in from tools/ to scripts/Yann E. MORIN"2-1/+9
Small documentation fix. /trunk/scripts/crosstool.sh | 2 1 1 0 +- /trunk/docs/overview.txt | 1 1 0 0 + 2 files changed, 2 insertions(+), 1 deletion(-)
2008-12-11Move populate.in from tools/ to scripts/Yann E. MORIN"2-1/+201
/trunk/scripts/crosstool.sh | 2 1 1 0 +- 1 file changed, 1 insertion(+), 1 deletion(-)
2008-12-11Move addToolsVersion.sh from tools/ to scripts/Yann E. MORIN"1-0/+93
/trunk/docs/overview.txt | 2 1 1 0 +- 1 file changed, 1 insertion(+), 1 deletion(-)
2008-12-09Sanity-check CT_TARGET_VENDOR, CT_TARGET_ALIAS and CT_TARGET_ALIAS_SED_EXPR:Yann E. MORIN"1-1/+16
- vendor and alias must not contain spaces - vendor must not contain dashes '-' - sed_expr must not generate an alias with a space in it /trunk/scripts/functions | 17 16 1 0 ++++++++++++++++- /trunk/config/toolchain.in | 1 1 0 0 + 2 files changed, 17 insertions(+), 1 deletion(-)
2008-12-09.config is in CT_TOP_DIR, and we *are* in CT_TOP_DIR.Yann E. MORIN"1-1/+1
/trunk/scripts/crosstool.sh | 2 1 1 0 +- 1 file changed, 1 insertion(+), 1 deletion(-)
2008-12-03Use the dedicated function CT_DoConfigSub rather than invoking config.sub ↵Yann E. MORIN"1-2/+2
directly. /trunk/scripts/crosstool.sh | 4 2 2 0 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
2008-11-28Minor POSIX compliance, and typo.Yann E. MORIN"2-4/+4
/trunk/scripts/crosstool.sh | 5 2 3 0 ++--- /trunk/scripts/functions | 3 2 1 0 ++- 2 files changed, 4 insertions(+), 4 deletions(-)
2008-11-28Canonicalise CT_BUILD and CT_HOST:Yann E. MORIN"1-22/+7
- Not only will it give us full-qualified tuples, but it will also ensure that they are valid tuples (in case of typo with user-provided tuples) That's way better than trying to rewrite config.sub ourselves... - use CT_BUILD_PREFIX and CT_BUILD_SUFFIX to call "gcc -dumpmachine" /trunk/scripts/crosstool.sh | 29 7 22 0 +++++++---------------------- 1 file changed, 7 insertions(+), 22 deletions(-)
2008-11-28Make it easy to use \nYann E. MORIN"1-1/+4
/trunk/scripts/functions | 5 4 1 0 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
2008-11-24Build dmalloc with -fPIC to sucessfully build the shared library with newer ↵Yann E. MORIN"1-0/+1
binutils. /trunk/scripts/build/debug/100-dmalloc.sh | 1 1 0 0 + 1 file changed, 1 insertion(+)
2008-11-20Overide locale to C so as to have readable logs.Yann E. MORIN"1-3/+7
Offer a DEBUG & EXPERIMENTAL setting to not overide locale. /trunk/scripts/crosstool.sh | 10 7 3 0 +++++++--- /trunk/config/global/ct-behave.in | 17 17 0 0 +++++++++++++++++ 2 files changed, 24 insertions(+), 3 deletions(-)
2008-11-20MPFR: correctly re-install config.{guess,sub} with autotools >=2.0.0.Yann E. MORIN"1-1/+13
/trunk/scripts/build/mpfr.sh | 14 13 1 0 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)
2008-11-19Do not mangle Cygwin tuples.Yann E. MORIN"1-0/+5
/trunk/scripts/crosstool.sh | 5 5 0 0 +++++ 1 file changed, 5 insertions(+)
2008-11-17Build and install a uClibc cross-ldd.Yann E. MORIN"1-1/+27
Based on a patch by Joachim NILSSON: http://sourceware.org/ml/crossgcc/2008-11/msg00025.html /trunk/scripts/build/libc/uClibc.sh | 28 27 1 0 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-)
2008-11-14Add a fast Linux kernel mirror.Yann E. MORIN"1-1/+1
/trunk/scripts/build/kernel/linux.sh | 2 1 1 0 +- 1 file changed, 1 insertion(+), 1 deletion(-)
2008-11-13Merge #1195, #1196 and #1203 from /devel/YEM-build_host_target_cleanup:Yann E. MORIN"7-74/+131
- Get rid of CT_CC_NATIVE - Get rid of CT_CANADIAN_OPT - Sanitise CT_BUILD vs. CT_HOST /trunk/scripts/build/tools/200-sstrip.sh | 4 2 2 0 /trunk/scripts/build/binutils.sh | 1 0 1 0 - /trunk/scripts/build/cc/gcc.sh | 11 6 5 0 +- /trunk/scripts/build/debug/200-duma.sh | 3 1 2 0 - /trunk/scripts/build/libc/glibc.sh | 10 5 5 0 +- /trunk/scripts/build/libc/eglibc.sh | 8 4 4 0 +- /trunk/scripts/crosstool.sh | 168 113 55 0 ++++++++++++++++++++++++++------------ /trunk/config/toolchain.in | 160 137 23 0 +++++++++++++++++++++++++++++++----- 8 files changed, 268 insertions(+), 97 deletions(-)
2008-11-07Do not autodetect 64-bit archs, have them tell be 'select'-ing ARCH_64 in ↵Yann E. MORIN"1-7/+5
the configuration. /trunk/scripts/crosstool.sh | 12 5 7 0 +++++------- /trunk/docs/overview.txt | 6 6 0 0 ++++++ /trunk/config/target.in | 4 4 0 0 ++++ /trunk/config/arch/x86_64.in | 1 1 0 0 + /trunk/config/arch/ia64.in | 1 1 0 0 + 5 files changed, 17 insertions(+), 7 deletions(-)
2008-11-07Do not take lib64/ in account when fixing the glibc linker scripts:Yann E. MORIN"1-1/+3
- lib64 dirs are symlinks to the corresponding lib/ dirs. /trunk/scripts/build/libc/glibc.sh | 4 3 1 0 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
2008-11-04Use target GMP and MPFR when building target binutils:Yann E. MORIN"1-0/+7
- this is not really used yet, as only the iberty and bfd libraries are built - if we ever are to build the full binutils for the target, then it is already configured to use the target GMP and MPFR. /trunk/scripts/build/binutils.sh | 7 7 0 0 +++++++ 1 file changed, 7 insertions(+)