Commit Graph

1085 Commits

Author SHA1 Message Date
Yann E. MORIN"
1007fb528d On 20090120.2203+0100, Andy Johnson <ajohnson@aecno.com> wrote:
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-25 17:53:14 +00:00
Yann E. MORIN"
1115b43f86 On 20090115.0012+0100, "Andy Johnson" <ajohnson@aecno.com> wrote:
... 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-20 20:37:43 +00:00
Yann E. MORIN"
0fc2762de7 Forced-removing of a non-existing directory breaks the build.
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-20 20:10:50 +00:00
Yann E. MORIN"
28176fe21e Fix building ltrace on PowerPC.
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-20 19:05:52 +00:00
Yann E. MORIN"
991a5070e5 Backport patch for glibc-2.6.1 to glibc-2.6:
- fixes glibc-2.6.1 build on OpenSOLARIS.
2009-01-20 18:55:46 +00:00
Yann E. MORIN"
e11cc118f2 Add latest Linux kernel versions.
/trunk/config/kernel/linux.in |   10    10     0     0 ++++++++++
 1 file changed, 10 insertions(+)
2009-01-20 18:49:12 +00:00
Yann E. MORIN"
f6a8ed369f Small semantic fix in ct.ng(.in): use make builtin variable to know the make-script name.
/trunk/ct-ng.in |   10     6     4     0 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
2009-01-19 21:57:55 +00:00
Yann E. MORIN"
420f3fdd25 Rename scripts/crosstool.sh to scripts/crosstool-NG.sh.
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-18 17:45:10 +00:00
Yann E. MORIN"
9305713521 Fix Makefile.in to use the correct variables.
/trunk/Makefile.in |   16     8     8     0 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
2009-01-18 17:41:58 +00:00
Yann E. MORIN"
eca38a0246 Use ./configure-discovered paths in Makefile.
/trunk/Makefile.in |   55    31    24     0 +++++++++++++++++++++++++++++++------------------------
 /trunk/ct-ng.in    |    2     1     1     0 +-
 2 files changed, 32 insertions(+), 25 deletions(-)
2009-01-18 15:40:02 +00:00
Yann E. MORIN"
363a045e5d ./configure: enable user to specify path to some tools
/trunk/configure |  203   107    96     0 +++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 107 insertions(+), 96 deletions(-)
2009-01-18 15:08:28 +00:00
Yann E. MORIN"
23b61e1541 Add headers from linux-2.6.27.11.
/trunk/config/kernel/linux.in |    5     5     0     0 +++++
 1 file changed, 5 insertions(+)
2009-01-16 09:13:16 +00:00
Yann E. MORIN"
83f0bec915 Fix removing existing directories by chmod'ing them to be user-writeable.
/trunk/scripts/crosstool.sh |   21    10    11     0 ++++++++++-----------
 /trunk/scripts/functions    |    7     7     0     0 +++++++
 2 files changed, 17 insertions(+), 11 deletions(-)
2009-01-12 21:35:23 +00:00
Yann E. MORIN"
25c6b869cf Fix a gcc-4.3.2 patch to correctly remove a file.
Initialy reported by Thomas Jourdan <tjourdan@neuf.fr>

 /trunk/patches/gcc/4.3.2/220-noteGNUstack-01.patch |    2     1     1     0 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
2009-01-12 21:34:11 +00:00
Yann E. MORIN"
96ec8bee12 Add a glibc-2.6.1 patch from Thomas Jourdan <tjourdan@neuf.fr>:
- fixes glibc-2.6.1 build on OpenSOLARIS.

 /trunk/patches/glibc/2.6.1/220-cross-posix_makefile.patch |   65    65     0     0 +++++++++++++++++++++
 1 file changed, 65 insertions(+)
2009-01-12 19:04:41 +00:00
Yann E. MORIN"
3ba25c5996 Fix initialising the workspace:
- 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-12 18:57:45 +00:00
Yann E. MORIN"
4732188b21 Don't print anything about LAN mirror if it is not used.
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-12 18:54:34 +00:00
Yann E. MORIN"
3b804296f5 The uClibc site has been overhauled lately, so the URL to retrieve sstrip 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-11 18:05:25 +00:00
Yann E. MORIN"
e4d8094edb ./configurei: make FORCE work again:
- removed the --force command line option
- use FORCE from the environment

 /trunk/configure |    9     2     7     0 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)
2009-01-07 12:11:37 +00:00
Yann E. MORIN"
f326356874 Add an option to forbid downloads.
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-06 22:34:36 +00:00
Yann E. MORIN"
a45c6b0232 Update all samples to the latest set of config options.
There might be some small issues here and there due to the split of CT_ExtractAndPatch.

 /trunk/samples/x86_64-unknown-linux-gnu/crosstool.config          |   14    11     3     0 ++++++++++---
 /trunk/samples/sh4-unknown-linux-gnu/crosstool.config             |   13    10     3     0 +++++++++---
 /trunk/samples/armeb-unknown-linux-uclibc/crosstool.config        |   10     7     3     0 ++++++---
 /trunk/samples/arm-unknown-elf/crosstool.config                   |    8     4     4     0 +++---
 /trunk/samples/arm-unknown-linux-gnueabi/crosstool.config         |   14    11     3     0 ++++++++++---
 /trunk/samples/armeb-unknown-eabi/crosstool.config                |    8     4     4     0 +++---
 /trunk/samples/ia64-unknown-linux-gnu/crosstool.config            |   13    10     3     0 +++++++++---
 /trunk/samples/x86_64-unknown-linux-uclibc/crosstool.config       |   11     8     3     0 +++++++---
 /trunk/samples/armeb-unknown-linux-gnueabi/crosstool.config       |   14    11     3     0 ++++++++++---
 /trunk/samples/powerpc-e500v2-linux-gnuspe/crosstool.config       |   11     8     3     0 +++++++---
 /trunk/samples/i686-nptl-linux-gnu/crosstool.config               |   14    11     3     0 ++++++++++---
 /trunk/samples/powerpc-unknown-linux-gnu/crosstool.config         |   14    11     3     0 ++++++++++---
 /trunk/samples/arm-unknown-linux-gnu/crosstool.config             |   14    11     3     0 ++++++++++---
 /trunk/samples/mips-unknown-linux-uclibc/crosstool.config         |   10     7     3     0 ++++++---
 /trunk/samples/arm-unknown-linux-uclibcgnueabi/crosstool.config   |   11     8     3     0 +++++++---
 /trunk/samples/arm-iphone-linux-gnueabi/crosstool.config          |    5     2     3     0 ++---
 /trunk/samples/armeb-unknown-linux-gnu/crosstool.config           |   14    11     3     0 ++++++++++---
 /trunk/samples/powerpc-unknown_nofpu-linux-gnu/crosstool.config   |   14    11     3     0 ++++++++++---
 /trunk/samples/powerpc-unknown-linux-uclibc/crosstool.config      |   10     7     3     0 ++++++---
 /trunk/samples/arm-unknown-linux-uclibc/crosstool.config          |   11     8     3     0 +++++++---
 /trunk/samples/i586-geode-linux-uclibc/crosstool.config           |   11     8     3     0 +++++++---
 /trunk/samples/powerpc-405-linux-gnu/crosstool.config             |   14    11     3     0 ++++++++++---
 /trunk/samples/mips-unknown-elf/crosstool.config                  |    8     4     4     0 +++---
 /trunk/samples/armeb-unknown-linux-uclibcgnueabi/crosstool.config |   11     8     3     0 +++++++---
 /trunk/samples/mipsel-unknown-linux-gnu/crosstool.config          |   13    10     3     0 +++++++++---
 /trunk/samples/arm-unknown-eabi/crosstool.config                  |    8     4     4     0 +++---
 /trunk/samples/alphaev56-unknown-linux-gnu/crosstool.config       |   14    11     3     0 ++++++++++---
 /trunk/samples/powerpc-860-linux-gnu/crosstool.config             |   13    10     3     0 +++++++++---
 28 files changed, 237 insertions(+), 88 deletions(-)
2009-01-06 22:22:02 +00:00
Yann E. MORIN"
0cd8441a97 Add the Eclipse Java Compiler to be able to compile Java.
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-06 22:10:17 +00:00
Yann E. MORIN"
0b28fc00e1 Fix building ARM Big Endian toolchain:
- add a patch by Gilles CHANTEPERDRIX.

 /trunk/patches/gcc/4.2.4/241-arm-bigendian2.patch |   33    33     0     0 +++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
2009-01-06 21:05:33 +00:00
Yann E. MORIN"
8b18c7d30d Message beautification when saving locally.
/trunk/scripts/functions |    2     1     1     0 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
2009-01-06 21:00:39 +00:00
Yann E. MORIN"
ebf01acb41 Split CT_ExtractAndPatch in two: CT_Extract and CT_Patch:
- 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-05 23:02:43 +00:00
Yann E. MORIN"
4bcd72fb16 Fix building DUMA:
- 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-05 21:09:37 +00:00
Yann E. MORIN"
e3c489be38 Fix C library addons extraction:
- 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-05 20:37:03 +00:00
Yann E. MORIN"
31cc00829e Get rid of CT_LIBC_FILE, remove useless CT_MakeAbsolutePath.
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-04 22:17:53 +00:00
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