Commit Graph

1057 Commits

Author SHA1 Message Date
Yann E. MORIN"
ddaf4012ae Get rid of CT_CC_FILE.
/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-04 14:39:39 +00:00
Yann E. MORIN"
f2d6a84135 Remove support for gcc-2.95.3, it has never ever been tested.
/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-04 14:38:41 +00:00
Yann E. MORIN"
7593ffbf36 Fix aborting when neither wget nor curl are present.
/trunk/scripts/functions |    2     1     1     0 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
2009-01-04 14:35:25 +00:00
Yann E. MORIN"
ba9fe0dec8 Get rid of CT_GMP_FILE and CT_MPFR_FILE.
/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-04 14:25:58 +00:00
Yann E. MORIN"
e44e1a82e4 A small layout enhancement in the Linux kernel build script.
/trunk/scripts/build/kernel/linux.sh |    3     2     1     0 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
2009-01-04 14:25:24 +00:00
Yann E. MORIN"
4a06d29717 Get rid of CT_BINUTILS_FILE.
/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-04 14:21:00 +00:00
Yann E. MORIN"
26e96f3ec5 Get rid off CT_KERNEL_FILE.
/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-04 14:18:20 +00:00
Yann E. MORIN"
9d9909d49c Add an experimental iPhone toolchain found on the net.
/trunk/samples/arm-iphone-linux-gnueabi/crosstool.config |  332   332     0     0 ++++++++++++++++++++++
 /trunk/samples/arm-iphone-linux-gnueabi/reported.by      |    3     3     0     0 +
 2 files changed, 335 insertions(+)
2009-01-04 14:14:49 +00:00
Yann E. MORIN"
dc54c40704 Enable using glibc post 2.8:
- 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-04 12:46:13 +00:00
Yann E. MORIN"
87daa7bd58 Add new wrapper fucntions:
- 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-04 12:43:54 +00:00
Yann E. MORIN"
b8b7843bea Get rid of all stuff related to building a /delivery' traball:
- 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-03 21:11:41 +00:00
Yann E. MORIN"
25dcd46fc9 Remove spurious line in gcc script (probably a bad copy-paste with the mouse...).
/trunk/scripts/build/cc/gcc.sh |    1     0     1     0 -
 1 file changed, 1 deletion(-)
2009-01-03 20:53:19 +00:00
Yann E. MORIN"
85ae08bbfe Remove an obsolete, mis-leading comment in the glibc/eglibc common options.
/trunk/config/libc/glibc-eglibc.in-common |    6     0     6     0 ------
 1 file changed, 6 deletions(-)
2009-01-03 20:13:35 +00:00
Yann E. MORIN"
fb4b418266 Small Makefile fixes.
/trunk/Makefile.in |   29    17    12     0 +++++++++++++++++------------
 1 file changed, 17 insertions(+), 12 deletions(-)
2008-12-28 10:19:50 +00:00
Yann E. MORIN"
59f66ebdee Add latest Linux kernel versions:
- 2.6.27.{7,8,9,10}
- 2.6.28

 /trunk/config/kernel/linux.in |   25    25     0     0 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
2008-12-28 09:38:35 +00:00
Yann E. MORIN"
a4e2d34a0f Enable C++ for baremetal.
/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-24 17:34:32 +00:00
Yann E. MORIN"
a3ffccfeff Further enhance the check for needed tools:
- update the tool_pattern to use ' || ' as a pattern separator
- which allows using | in regexp
- add checks for cut and xargs
- manually check for grep and sed because they are needed when checking for tools
- print why a test failed, with each tested tool and regexp
- move tools checks before options parsing
- apply conttibutions before computing the version string
- inform user to run make && make install

 /trunk/configure |  173   111    62     0 ++++++++++++++++++++++++++++++++++++++++----------------------
 1 file changed, 111 insertions(+), 62 deletions(-)
2008-12-23 22:20:25 +00:00
Yann E. MORIN"
a228413680 Rationalise ./configure
- borrow a lot of ideas from Michael ABBOTT ( http://sourceware.org/ml/crossgcc/2008-12/msg00030.html )
- should be conforming to POSIX 1003.1-2008, non compliance due to bashsims is to be considered a bug
- as a result, it now works with dash
- make a little easier to read in some places
- enforce 4-space indentation
- get rid of futile 'return $?'
- quote all variables assignments
- save and restore IFS prior to and after using alternate values
- simplify the TOOLS_TO_CHECK listing

What's left:
- provide a mean to actually _compare_ version numbers
- change the TOOLS_TO_CHECK pattern style to be able to use '|' in regexp

 /trunk/configure |  243   127   116     0 ++++++++++++++++++++++++++++++++------------------------------
 1 file changed, 127 insertions(+), 116 deletions(-)
2008-12-22 18:21:51 +00:00
Yann E. MORIN"
b91d74858a Make it clear that, if the second argument of CT_GetFile starts with a dot, it is considered to be the preferred extension.
/trunk/scripts/functions |    2     1     1     0 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
2008-12-21 20:07:47 +00:00
Yann E. MORIN"
54ef20b0f8 Fix testing the automake version:
- previously, only version with a more-than-two-digits minor would match
- make versions starting with major in [2-9] also match

 /trunk/configure |    4     2     2     0 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
2008-12-19 19:04:43 +00:00
Yann E. MORIN"
65bb3ac67c Get rid of the tols/ directory:
- 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-16 18:12:34 +00:00
Yann E. MORIN"
7915426092 Better check for automake, check for either curl or wget:
- automake must be at least 1.10 to correctly setup MPFR
- either one of curl or wget is needed to retrieve the tarballs

 /trunk/configure |    7     4     3     0 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
2008-12-16 18:03:28 +00:00
Yann E. MORIN"
59090df851 Move patch-renumber.sh from tools/ to scripts/ 2008-12-15 18:09:22 +00:00
Yann E. MORIN"
4cfd308098 Move toolchain-config.in from tools/ to scripts/
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-11 18:21:18 +00:00
Yann E. MORIN"
790695af6f Move populate.in from tools/ to scripts/
/trunk/scripts/crosstool.sh |    2     1     1     0 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
2008-12-11 18:16:54 +00:00
Yann E. MORIN"
fb642af86f Update config.guess and config.sub with the latest versions from upstream.
/trunk/tools/config.guess |   19    17     2     0 +++++++++++++++++--
 /trunk/tools/config.sub   |   10     6     4     0 ++++++----
 2 files changed, 23 insertions(+), 6 deletions(-)
2008-12-11 18:15:41 +00:00
Yann E. MORIN"
488f5d1e76 Move addToolsVersion.sh from tools/ to scripts/
/trunk/docs/overview.txt |    2     1     1     0 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
2008-12-11 18:12:04 +00:00
Yann E. MORIN"
eb687c65b3 Sanity-check CT_TARGET_VENDOR, CT_TARGET_ALIAS and CT_TARGET_ALIAS_SED_EXPR:
- 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 22:02:20 +00:00
Yann E. MORIN"
7ac365e075 .config is in CT_TOP_DIR, and we *are* in CT_TOP_DIR.
/trunk/scripts/crosstool.sh |    2     1     1     0 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
2008-12-09 21:25:29 +00:00
Yann E. MORIN"
6129d0cabe Use the dedicated function CT_DoConfigSub rather than invoking config.sub directly.
/trunk/scripts/crosstool.sh |    4     2     2     0 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
2008-12-03 22:35:52 +00:00
Yann E. MORIN"
7d37551032 Ignore more in kconfig/:
- on Cygwin, the executables are appended .exe, thus ignore mconf.exe and conf.exe
2008-12-01 18:01:11 +00:00
Yann E. MORIN"
145d0cad94 Make the kconfig stuff build under Cygwin.
/trunk/kconfig/kconfig.mk                 |    7     5     2     0 ++++--
 /trunk/kconfig/lxdialog/check-lxdialog.sh |   44    21    23     0 ++++++++++++++++++-------------------
 2 files changed, 26 insertions(+), 25 deletions(-)
2008-11-30 20:59:15 +00:00
Yann E. MORIN"
d09d633fb2 Don't use /bin/ash in samples.
/trunk/samples/armeb-unknown-eabi/crosstool.config |    6     3     3     0 +++---
 /trunk/samples/mips-unknown-elf/crosstool.config   |    6     3     3     0 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)
2008-11-30 20:46:17 +00:00
Yann E. MORIN"
c2a76991ce Minor POSIX compliance, and typo.
/trunk/scripts/crosstool.sh |    5     2     3     0 ++---
 /trunk/scripts/functions    |    3     2     1     0 ++-
 2 files changed, 4 insertions(+), 4 deletions(-)
2008-11-28 23:33:04 +00:00
Yann E. MORIN"
b93e4d727b Canonicalise CT_BUILD and CT_HOST:
- 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-28 23:31:02 +00:00
Yann E. MORIN"
c101cbccac Make it easy to use \n
/trunk/scripts/functions |    5     4     1     0 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
2008-11-28 17:51:39 +00:00
Yann E. MORIN"
7029a674e3 Update all these samples.
/trunk/samples/x86_64-unknown-linux-gnu/crosstool.config        |    9     5     4     0 +++++----
 /trunk/samples/sh4-unknown-linux-gnu/crosstool.config           |   11     6     5     0 ++++++-----
 /trunk/samples/armeb-unknown-linux-uclibc/crosstool.config      |    9     5     4     0 +++++----
 /trunk/samples/arm-unknown-elf/crosstool.config                 |    9     5     4     0 +++++----
 /trunk/samples/arm-unknown-linux-gnueabi/crosstool.config       |    9     5     4     0 +++++----
 /trunk/samples/armeb-unknown-eabi/crosstool.config              |    9     5     4     0 +++++----
 /trunk/samples/ia64-unknown-linux-gnu/crosstool.config          |   11     6     5     0 ++++++-----
 /trunk/samples/x86_64-unknown-linux-uclibc/crosstool.config     |    9     5     4     0 +++++----
 /trunk/samples/armeb-unknown-linux-gnueabi/crosstool.config     |    9     5     4     0 +++++----
 /trunk/samples/powerpc-e500v2-linux-gnuspe/crosstool.config     |    9     5     4     0 +++++----
 /trunk/samples/powerpc-e500v2-linux-gnuspe/reported.by          |    7     1     6     0 +------
 /trunk/samples/i686-nptl-linux-gnu/crosstool.config             |    9     5     4     0 +++++----
 /trunk/samples/powerpc-unknown-linux-gnu/crosstool.config       |    9     5     4     0 +++++----
 /trunk/samples/arm-unknown-linux-gnu/crosstool.config           |    9     5     4     0 +++++----
 /trunk/samples/mips-unknown-linux-uclibc/crosstool.config       |    9     5     4     0 +++++----
 /trunk/samples/arm-unknown-linux-uclibcgnueabi/crosstool.config |    9     5     4     0 +++++----
 /trunk/samples/armeb-unknown-linux-gnu/crosstool.config         |    9     5     4     0 +++++----
 /trunk/samples/powerpc-unknown_nofpu-linux-gnu/crosstool.config |    9     5     4     0 +++++----
 /trunk/samples/powerpc-unknown-linux-uclibc/crosstool.config    |    9     5     4     0 +++++----
 /trunk/samples/arm-unknown-linux-uclibc/crosstool.config        |    9     5     4     0 +++++----
 /trunk/samples/i586-geode-linux-uclibc/crosstool.config         |    9     5     4     0 +++++----
 /trunk/samples/powerpc-405-linux-gnu/crosstool.config           |    9     5     4     0 +++++----
 /trunk/samples/mips-unknown-elf/crosstool.config                |   11     6     5     0 ++++++-----
 /trunk/samples/mipsel-unknown-linux-gnu/crosstool.config        |   11     6     5     0 ++++++-----
 /trunk/samples/arm-unknown-eabi/crosstool.config                |    9     5     4     0 +++++----
 /trunk/samples/powerpc-860-linux-gnu/crosstool.config           |    2     1     1     0 +-
 26 files changed, 126 insertions(+), 107 deletions(-)
2008-11-25 18:41:49 +00:00
Yann E. MORIN"
98a8ba0b4b Remove the version number from .version in /trunk.
/trunk/.version |    2     1     1     0 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
2008-11-25 18:37:02 +00:00
Yann E. MORIN"
1daa4db721 Build dmalloc with -fPIC to sucessfully build the shared library with newer binutils.
/trunk/scripts/build/debug/100-dmalloc.sh |    1     1     0     0 +
 1 file changed, 1 insertion(+)
2008-11-24 12:13:36 +00:00
Yann E. MORIN"
44a2186e47 Remove a patch for binutils-2.19 that makes the cross MIPS case fail.
- it is not necessary to use the gnu_hash section by default.
- renumber following patches

 /trunk/patches/binutils/2.19/170-use-relro.patch     |   14    14     0     0 ++++++++++++++
 /trunk/patches/binutils/2.19/180-libiberty-pic.patch |   14    14     0     0 ++++++++++++++
 2 files changed, 28 insertions(+)
2008-11-24 10:17:05 +00:00
Yann E. MORIN"
b0cc001a0a Update this Alpha sample to use binutils-2.19.
/trunk/samples/alphaev56-unknown-linux-gnu/crosstool.config |    9     5     4     0 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
2008-11-23 18:00:59 +00:00
Yann E. MORIN"
3208de7fba Update this sample.
/trunk/samples/powerpc-860-linux-gnu/crosstool.config |   17     6    11     0 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)
2008-11-23 17:24:26 +00:00
Yann E. MORIN"
d8696993ec Update this sample to use binutils-2.19.
/trunk/samples/armeb-unknown-linux-uclibcgnueabi/crosstool.config |    9     5     4     0 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
2008-11-23 16:35:12 +00:00
Yann E. MORIN"
161a19e423 Add binutils-2.19 and associated patchset (vampirised from Gentoo).
/trunk/patches/binutils/2.19/120-sh-targets.patch             |   52    52     0     0 ++++
 /trunk/patches/binutils/2.19/180-use-relro.patch              |   14    14     0     0 +
 /trunk/patches/binutils/2.19/160-use-new-ld-dtags.patch       |   14    14     0     0 +
 /trunk/patches/binutils/2.19/100-ppc64-pie.patch              |   20    20     0     0 +
 /trunk/patches/binutils/2.19/190-libiberty-pic.patch          |   14    14     0     0 +
 /trunk/patches/binutils/2.19/170-generate-gnu-hash.patch      |   16    16     0     0 +
 /trunk/patches/binutils/2.19/110-RPATH_ENVVAR-smack.patch     |   17    17     0     0 +
 /trunk/patches/binutils/2.19/140-pt-pax-flags-20081101.patch  |  249   249     0     0 +++++++++++++++++
 /trunk/patches/binutils/2.19/150-warn-textrel.patch           |   48    48     0     0 +++
 /trunk/patches/binutils/2.19/130-check_ldrunpath_length.patch |   31    31     0     0 ++
 /trunk/config/binutils.in                                     |    5     5     0     0 +
 11 files changed, 480 insertions(+)
2008-11-23 16:34:49 +00:00
Yann E. MORIN"
c2803e1a04 Update the two x86_64 samples.
/trunk/samples/x86_64-unknown-linux-gnu/crosstool.config        |   38    22    16     0 +-
 /trunk/samples/x86_64-unknown-linux-uclibc/uClibc-0.9.30.config |  245   245     0     0 +++++++++++++++
 /trunk/samples/x86_64-unknown-linux-uclibc/crosstool.config     |   40    24    16     0 +-
 3 files changed, 291 insertions(+), 32 deletions(-)
2008-11-21 17:46:42 +00:00
Yann E. MORIN"
4ffd919be2 Be less verbose when a sample is directly built with build-sample-name.
/trunk/samples/samples.mk |    7     3     4     0 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
2008-11-21 15:37:46 +00:00
Yann E. MORIN"
f2ea0ade3a Update the PowerPC samples.
/trunk/samples/powerpc-e500v2-linux-gnuspe/crosstool.config      |   43    26    17     0 +-
 /trunk/samples/powerpc-unknown-linux-gnu/crosstool.config        |   24    17     7     0 +
 /trunk/samples/powerpc-unknown_nofpu-linux-gnu/crosstool.config  |   24    17     7     0 +
 /trunk/samples/powerpc-unknown-linux-uclibc/uClibc-0.9.30.config |  248   248     0     0 ++++++++++++++
 /trunk/samples/powerpc-unknown-linux-uclibc/crosstool.config     |   28    20     8     0 +-
 /trunk/samples/powerpc-860-linux-gnu/crosstool.config            |   30    19    11     0 +-
 6 files changed, 347 insertions(+), 50 deletions(-)
2008-11-21 06:39:52 +00:00
Yann E. MORIN"
70fa0c34ce Update this sample.
/trunk/samples/powerpc-405-linux-gnu/crosstool.config |   24    17     7     0 +++++++++++++++++-------
 1 file changed, 17 insertions(+), 7 deletions(-)
2008-11-20 21:34:30 +00:00
Yann E. MORIN"
42fe84cd15 Overide locale to C so as to have readable logs.
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-20 17:48:10 +00:00
Yann E. MORIN"
8cd606ddc2 MPFR: correctly re-install config.{guess,sub} with autotools >=2.0.0.
/trunk/scripts/build/mpfr.sh |   14    13     1     0 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)
2008-11-20 17:10:09 +00:00