Commit Graph

1343 Commits

Author SHA1 Message Date
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
Yann E. MORIN"
195830c106 Do not mangle Cygwin tuples.
/trunk/scripts/crosstool.sh |    5     5     0     0 +++++
 1 file changed, 5 insertions(+)
2008-11-19 20:16:54 +00:00
Yann E. MORIN"
bd8804ec58 Update this sample.
/trunk/samples/sh4-unknown-linux-gnu/crosstool.config |   27    19     8     0 ++++++++++++++++++-------
 1 file changed, 19 insertions(+), 8 deletions(-)
2008-11-18 12:39:14 +00:00
Yann E. MORIN"
0d4e7a48b6 Update this sample.
/trunk/samples/mips-unknown-elf/crosstool.config |   14    10     4     0 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)
2008-11-18 12:22:18 +00:00
Yann E. MORIN"
2ee94f8e75 Update this sample.
/trunk/samples/mipsel-unknown-linux-gnu/crosstool.config |   26    18     8     0 +++++++++++++++-------
 1 file changed, 18 insertions(+), 8 deletions(-)
2008-11-18 12:09:32 +00:00
Yann E. MORIN"
599eb5c61f Update this sample.
/trunk/samples/ia64-unknown-linux-gnu/crosstool.config |   27    19     8     0 +++++++++++++++++-------
 1 file changed, 19 insertions(+), 8 deletions(-)
2008-11-18 10:33:35 +00:00
Yann E. MORIN"
48c2f812eb Update this sample.
/trunk/samples/i686-nptl-linux-gnu/crosstool.config |   29    20     9     0 +++++++++++++++++++--------
 1 file changed, 20 insertions(+), 9 deletions(-)
2008-11-18 10:07:38 +00:00
Yann E. MORIN"
d3f173b196 Update this sample to use uClibc-0.9.30.
/trunk/samples/i586-geode-linux-uclibc/uClibc-0.9.30.config |  263   263     0     0 +++++++++++++++++++
 /trunk/samples/i586-geode-linux-uclibc/crosstool.config     |   40    24    16     0 ++-
 2 files changed, 287 insertions(+), 16 deletions(-)
2008-11-18 08:46:49 +00:00
Yann E. MORIN"
6b1f3a55e9 These sample are no longer EXPERIMENTAL.
/trunk/samples/armeb-unknown-linux-uclibc/crosstool.config |   10     2     8     0 ++--------
 /trunk/samples/arm-unknown-linux-uclibc/crosstool.config   |   10     2     8     0 ++--------
 2 files changed, 4 insertions(+), 16 deletions(-)
2008-11-18 07:41:13 +00:00
Yann E. MORIN"
a968b7d5b6 Bare-metal is no longer EXPERIMENTAL.
/trunk/samples/arm-unknown-elf/crosstool.config  |    6     2     4     0 ++----
 /trunk/samples/arm-unknown-eabi/crosstool.config |    6     2     4     0 ++----
 2 files changed, 4 insertions(+), 8 deletions(-)
2008-11-18 07:37:23 +00:00
Yann E. MORIN"
9ce896e6d3 Update all these samples. Those using uClinc are now using 0.9.30.
/trunk/samples/armeb-unknown-linux-uclibc/uClibc-0.9.30.config |  243   243     0     0 +++++++++++++++
 /trunk/samples/armeb-unknown-linux-uclibc/crosstool.config     |   34    24    10     0 +-
 /trunk/samples/arm-unknown-elf/crosstool.config                |   13    10     3     0 +
 /trunk/samples/armeb-unknown-eabi/crosstool.config             |   12     9     3     0 +
 /trunk/samples/arm-unknown-linux-gnueabi/crosstool.config      |   27    20     7     0 +-
 /trunk/samples/armeb-unknown-linux-gnueabi/crosstool.config    |   29    20     9     0 +-
 /trunk/samples/arm-unknown-linux-gnu/crosstool.config          |   31    21    10     0 +-
 /trunk/samples/armeb-unknown-linux-gnu/crosstool.config        |   29    20     9     0 +-
 /trunk/samples/arm-unknown-linux-uclibc/uClibc-0.9.30.config   |  253   253     0     0 ++++++++++++++++
 /trunk/samples/arm-unknown-linux-uclibc/crosstool.config       |   34    24    10     0 +-
 /trunk/samples/arm-unknown-eabi/crosstool.config               |   13    10     3     0 +
 /trunk/samples/alphaev56-unknown-linux-gnu/crosstool.config    |   29    20     9     0 +-
 12 files changed, 674 insertions(+), 73 deletions(-)
2008-11-18 06:50:29 +00:00
Yann E. MORIN"
620b980474 Build and install a uClibc cross-ldd.
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-17 18:46:09 +00:00
Yann E. MORIN"
4f5952aebf There's no EXPERIMENTAL stuff in this sample.
/trunk/samples/arm-unknown-linux-uclibcgnueabi/crosstool.config |   12     3     9     0 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)
2008-11-17 10:26:45 +00:00
Yann E. MORIN"
7eaa4edfae Update this ARM sample to use uClibc-0.9.30.
/trunk/samples/arm-unknown-linux-uclibcgnueabi/uClibc-0.9.30.config |  253   253     0     0 +++++++++++
 /trunk/samples/arm-unknown-linux-uclibcgnueabi/crosstool.config     |   34    24    10     0 +
 2 files changed, 277 insertions(+), 10 deletions(-)
2008-11-17 10:01:14 +00:00
Yann E. MORIN"
b282b4e3ed Update this MIPS sample to use uClibc-0.9.30.
/trunk/samples/mips-unknown-linux-uclibc/uClibc-0.9.30.config |  254   254     0     0 +++++++++++++++++
 /trunk/samples/mips-unknown-linux-uclibc/crosstool.config     |   42    24    18     0 ++-
 2 files changed, 278 insertions(+), 18 deletions(-)
2008-11-17 09:01:38 +00:00