Commit Graph

439 Commits

Author SHA1 Message Date
Yann E. MORIN"
37d19f8954 Final touch to the ncurses build step:
- use build tools to build tic, instead of native ones.

 /trunk/scripts/build/debug/300-gdb.sh |    9     6     3     0 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
2009-03-23 23:35:36 +00:00
Yann E. MORIN"
893f21944c xlcwu <xlcwu.taiwan@gmail.com> wrote:
Seems ncurses 5.7 need build host stage for tic step; if use host tic
  (ubuntu) the build process hang in the below step.
  So I guess need to build ncurses host stage to build new tic

and provided a patch to that efect.

And in fact, we do need "tic" to run on the _build_ system to properly
generate the terminfo database.

Note: this is fully functional, but still requires a litle bit of
tweaking so that ${CT_BUILD}-gcc gets used instead of plain gcc.
But that's a minor problem for now...

 /trunk/scripts/build/debug/300-gdb.sh |   35    33     2     0 +++++++++++++++++++++++++++++++++--
 /trunk/scripts/build/internals.sh     |    1     1     0     0 +
 2 files changed, 34 insertions(+), 2 deletions(-)
2009-03-23 23:05:08 +00:00
Yann E. MORIN"
9d6fe97aae Update the config.{guess,sub} files.
/trunk/scripts/config.guess |   21    16     5     0 ++++++++++++++++-----
 /trunk/scripts/config.sub   |   10     8     2     0 ++++++++--
 2 files changed, 24 insertions(+), 7 deletions(-)
2009-03-15 20:52:50 +00:00
Yann E. MORIN"
509b3e52e9 Sanitise using glibc cvs exports:
- recently, tarballs for glibc 2.8 and 2.9 have appeared on the GNU ftp site
- always use a dot in version strings (eg. 2.9, not 2_9)

 /trunk/scripts/build/libc/glibc.sh |  135    76    59     0 +++++++++++++++++++++++++-------------------
 /trunk/config/libc/glibc.in        |   71    45    26     0 +++++++++++++++--------
 2 files changed, 121 insertions(+), 85 deletions(-)
2009-03-15 20:50:40 +00:00
Yann E. MORIN"
24003e416f Do not copy ecj.jar when it's not required.
/trunk/scripts/build/cc/gcc.sh |    4     3     1     0 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
2009-03-15 20:08:06 +00:00
Yann E. MORIN"
6d392339c6 When patching, always assume the package has been previously extraacted (don't check).
"chmod u+w" the full src tree: because of nochdir and cvs snapshots, we can't reliably know were we are...

 /trunk/scripts/functions |   11     3     8     0 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)
2009-03-15 20:06:40 +00:00
Yann E. MORIN"
36871474d3 Correctly use CT_DoExecLog with wget and curl.
/trunk/scripts/functions |   16     8     8     0 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
2009-03-13 10:34:53 +00:00
Yann E. MORIN"
9bd1c96d1f Fix building MPFR >= 2.4.0.
/trunk/scripts/build/mpfr.sh |   51    29    22     0 ++++++++++++++++++++++++++++----------------------
 1 file changed, 29 insertions(+), 22 deletions(-)
2009-03-08 22:13:27 +00:00
Yann E. MORIN"
e1063055a2 Use "grep -E" instead of the deprecated "egrep".
/trunk/scripts/build/debug/200-duma.sh |    2     1     1     0 +-
 /trunk/scripts/build/libc/uClibc.sh    |    2     1     1     0 +-
 /trunk/scripts/crosstool-NG.sh.in      |    4     2     2     0 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
2009-03-08 17:09:39 +00:00
Yann E. MORIN"
8d993f036a Use the common functions (CT_GetSVN, CT_Extract and CT_Patch) to retrieve,
extract and patch sstrip from buildroot.

 /trunk/scripts/build/tools/200-sstrip.sh |   16     3    13     0 +++-------------
 1 file changed, 3 insertions(+), 13 deletions(-)
2009-03-08 11:15:58 +00:00
Yann E. MORIN"
8e49c29255 Add CT_GetSVN to commonalise retrieval from SVN (ala CT_GetCVS).
/trunk/scripts/functions |   34    33     1     0 +++++++++++++++++++++++++++++++++-
 1 file changed, 33 insertions(+), 1 deletion(-)
2009-03-08 11:14:54 +00:00
Yann E. MORIN"
a0c6dea176 Fix extracting/patching DUMA:
- DUMA uses an underscore between the name and version, not a dash.

 /trunk/scripts/build/debug/200-duma.sh |    1     1     0     0 +
 1 file changed, 1 insertion(+)
2009-03-06 13:27:40 +00:00
Yann E. MORIN"
5f5cf95dd0 Re-instate the glibc/eglibc config option LIBC_GLIBC_CONFIGPARMS for use by SuperH.
Set appropriate defaults depending on target.

 /trunk/scripts/build/libc/glibc.sh        |   14     7     7     0 +++++++-------
 /trunk/config/libc/glibc-eglibc.in-common |   15    15     0     0 +++++++++++++++
 2 files changed, 22 insertions(+), 7 deletions(-)
2009-03-05 17:50:42 +00:00
Yann E. MORIN"
fec3baeca6 Check that a pacakge was previously extracted prior to patching.
Fix a comment.

 /trunk/scripts/functions |    8     5     3     0 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
2009-03-04 18:25:58 +00:00
Yann E. MORIN"
806a517cc2 Move do_finish from scripts/functions to its own file in scipts/build/internals.sh.
/trunk/scripts/build/internals.sh |  907     4   903     0 ---------------------------------------------
 /trunk/scripts/addToolVersion.sh  |    8     4     4     0
 /trunk/scripts/crosstool-NG.sh.in |    1     1     0     0 +
 /trunk/scripts/functions          |   48     0    48     0 --
 4 files changed, 9 insertions(+), 955 deletions(-)
2009-03-04 17:59:35 +00:00
Yann E. MORIN"
46d3ec734a Warn the user when he/she tries to save a sample that uses local patches
and/or custom Linux kernel headers.

 /trunk/scripts/saveSample.sh.in |   18    17     1     0 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)
2009-03-03 21:53:50 +00:00
Yann E. MORIN"
b6b7925fcb Rename the custom header option.
/trunk/scripts/build/kernel/linux.sh |   12     6     6     0 ++++++------
 /trunk/config/kernel/linux.in        |    4     2     2     0 ++--
 2 files changed, 8 insertions(+), 8 deletions(-)
2009-03-03 20:29:35 +00:00
Yann E. MORIN"
ea604716d9 When using custom Linux kernel headers, allow using a tarball.
/trunk/scripts/build/kernel/linux.sh |   19    16     3     0 ++++++++++++++++---
 /trunk/config/kernel/linux.in        |   35    26     9     0 ++++++++++++++++++++++++++---------
 2 files changed, 42 insertions(+), 12 deletions(-)
2009-03-03 18:43:38 +00:00
Yann E. MORIN"
6822fae02e Allow user to add a directory component in the sys-root path.
Rename CT_DEBUG_INSTALL_DIR to CT_DEBUGROOT_DIR (to match CT_SYSROOT_DIR).
As a side effect, fix creating lib64->lib symlinks.

 /trunk/scripts/build/debug/100-dmalloc.sh |    2     1     1     0 +-
 /trunk/scripts/build/debug/400-ltrace.sh  |    2     1     1     0 +-
 /trunk/scripts/build/debug/300-gdb.sh     |    6     3     3     0 +++---
 /trunk/scripts/build/debug/500-strace.sh  |    2     1     1     0 +-
 /trunk/scripts/build/debug/200-duma.sh    |    6     3     3     0 +++---
 /trunk/scripts/crosstool-NG.sh.in         |   16     7     9     0 +++++++---------
 /trunk/scripts/functions                  |    2     1     1     0 +-
 /trunk/config/toolchain.in                |   17    17     0     0 +++++++++++++++++
 8 files changed, 34 insertions(+), 19 deletions(-)
2009-03-03 17:41:59 +00:00
Yann E. MORIN"
fd268ea38b Fix extracting tarballs.
/trunk/scripts/functions |    6     5     1     0 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
2009-02-19 07:38:32 +00:00
Yann E. MORIN"
f962e240a3 On some hosts (eg. Cygwin), it's not possible to build the uClibc hostutils. Offer an option to enable/disable the uClibc hostutils build.
/trunk/scripts/build/libc/uClibc.sh |   39    12    27     0 ++++++++++++---------------------------
 /trunk/config/libc/uClibc.in        |   10    10     0     0 ++++++++++
 2 files changed, 22 insertions(+), 27 deletions(-)
2009-02-11 10:40:26 +00:00
Yann E. MORIN"
f621e51c3d "chmod -R u+w" extracted tarballs, as some may have read-only files in them (ncurses-5.7 does).
/trunk/scripts/functions |    3     3     0     0 +++
 1 file changed, 3 insertions(+)
2009-02-10 08:52:13 +00:00
Yann E. MORIN"
2177fb68ca Put the uclibc munged config file in the "state" directory, so it survives a restart.
/trunk/scripts/build/libc/uClibc.sh |    8     4     4     0 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
2009-02-08 12:15:52 +00:00
Yann E. MORIN"
2e0b9c9e31 Make MPFR build under Cygwin.
/trunk/scripts/build/mpfr.sh |   24    20     4     0 ++++++++++++++++++++----
 1 file changed, 20 insertions(+), 4 deletions(-)
2009-02-07 20:11:13 +00:00
Yann E. MORIN"
cb8cfd3d80 Don't add versions that already exist.
/trunk/scripts/addToolVersion.sh |   15    14     1     0 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)
2009-02-02 21:56:30 +00:00
Yann E. MORIN"
7fc16eff80 Fix patch-renumber:
- look at the patch directory when using svnversion, not at current directory
- some code beautification.

 /trunk/scripts/patch-renumber.sh |    9     7     2     0 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
2009-02-01 23:15:59 +00:00
Yann E. MORIN"
8eed91405e Fix populate to correctly use tools discovered via ./configure.
/trunk/scripts/functions   |   11     8     3     0 ++++++++---
 /trunk/scripts/populate.in |    6     4     2     0 ++++--
 2 files changed, 12 insertions(+), 5 deletions(-)
2009-02-01 22:41:16 +00:00
Yann E. MORIN"
692749b67e Use tools discovered by ./configure in scripts/toolchain-config.in.
/trunk/scripts/crosstool-NG.sh.in  |    1     1     0     0 +
 /trunk/scripts/toolchain-config.in |    2     1     1     0 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
2009-02-01 18:51:19 +00:00
Yann E. MORIN"
d80eda68dd Use tools discovered via ./configure in scripts/showSample.sh; make it a POSIX shell script.
/trunk/scripts/showSamples.sh |   10     7     3     0 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
2009-02-01 18:43:45 +00:00
Yann E. MORIN"
430ce931e1 Use tools discovered by ./configure in scripts/saveSample.sh
/trunk/Makefile.in              |    7     6     1     0 ++++++-
 /trunk/scripts/saveSample.sh.in |   23    13    10     0 +++++++++++++----------
 2 files changed, 19 insertions(+), 11 deletions(-)
2009-02-01 17:11:46 +00:00
Yann E. MORIN"
3f4bf75a27 Fix removing directories.
/trunk/scripts/functions |    7     4     3     0 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
2009-02-01 17:04:00 +00:00
Yann E. MORIN"
94e376af77 Add support for powerpc64, along with an EXPERIMENTAL sample.
/trunk/scripts/build/arch/powerpc64.sh                      |   21     1    20     0 -
 /trunk/scripts/build/arch/powerpc.sh                        |   21     1    20     0 -
 /trunk/samples/powerpc64-unknown-linux-gnu/crosstool.config |  388   388     0     0 +++++++++++++++++++
 /trunk/samples/powerpc64-unknown-linux-gnu/reported.by      |    3     3     0     0 +
 /trunk/config/arch/powerpc-powerpc64.in-common              |   12     4     8     0 -
 /trunk/config/arch/powerpc.in                               |   15     0    15     0 -
 /trunk/config/arch/powerpc64.in                             |   19     3    16     0 -
 7 files changed, 400 insertions(+), 79 deletions(-)
2009-01-31 17:39:35 +00:00
Yann E. MORIN"
04fa7e0569 Further handle the lib64 -> lib symlinks.
It at least helps powerpc64 to build, and should innocuous to other archs.

 /trunk/scripts/crosstool-NG.sh.in |    8     6     2     0 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
2009-01-31 17:38:26 +00:00
Yann E. MORIN"
1a346ed273 Fix downloading with CT_GetFile when no mirror is set.
/trunk/scripts/functions |    8     5     3     0 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
2009-01-31 13:15:18 +00:00
Yann E. MORIN"
2aaa5b8b68 Update populate:
- use tools found by ./configure
- some POSIX and eye-candy cleanups

 /trunk/scripts/functions   |    7     4     3     0 +++--
 /trunk/scripts/populate.in |   70    46    24     0 ++++++++++++++++++++++++++++++++++------------------
 2 files changed, 50 insertions(+), 27 deletions(-)
2009-01-29 22:35:26 +00:00
Yann E. MORIN"
0cdb819a4e If compiling the Java frontend, we'll require a native gcj, but only in this case.
/trunk/scripts/crosstool-NG.sh.in |    8     7     1     0 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
2009-01-29 22:09:55 +00:00
Yann E. MORIN"
c310dd7605 Use the path discovered by ./configure in scripts/patch-renumber.sh
It now requires that "./configure && make" be run beforehand.

 /trunk/scripts/patch-renumber.sh |    6     5     1     0 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
2009-01-29 19:00:08 +00:00
Yann E. MORIN"
1b05494c83 Use the path discovered by ./configure in scripts/addToolVersion.sh
It now requires that "./configure && make" be run beforehand.

 /trunk/scripts/addToolVersion.sh |   10     7     3     0 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
2009-01-29 18:53:32 +00:00
Yann E. MORIN"
fcd59328f4 Fix scripts/addToolVersion.sh:
- make it a PSOX shell script (hopefully)
- enhance the command line parsing

 /trunk/scripts/addToolVersion.sh |  161   102    59     0 +++++++++++++++++++++++++++++-----------------
 1 file changed, 102 insertions(+), 59 deletions(-)
2009-01-29 18:48:05 +00:00
Yann E. MORIN"
a2d32f2257 Add a missing line continuation '\' in the gcc retrieval function.
Spotted by Doug Reiland <dreiland@hotmail.com>.

 /trunk/scripts/build/cc/gcc.sh |    2     1     1     0 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
2009-01-28 22:36:44 +00:00
Yann E. MORIN"
af244eaf45 The gcc team seems to no longer make releases available at the ftp.gnu.org site, but only on mirrors. Add such a mirror to the list of retrieval sites.
/trunk/scripts/build/cc/gcc.sh |    1     1     0     0 +
 1 file changed, 1 insertion(+)
2009-01-27 21:36:18 +00:00
Yann E. MORIN"
6912bc6a2c Finally used the discovered paths from ./configure in scripts/crosstool-NG.sh:
- fix Makefile to really, really not used built-in rules and variables
- have scripts/crosstool-NG.sh generated from scripts/crosstool-NG.sh.in
- create a bin-overide directory ( in ${CT_WORK_DIR}/bin ) that contains shell wrappers to the actual discovered tools

 /trunk/scripts/crosstool-NG.sh.in |   27    23     4     0 +++++++++++++++++++++---
 /trunk/Makefile.in                |   50    48     2     0 +++++++++++++++++++++++++++++++++++++++++++--
 2 files changed, 71 insertions(+), 6 deletions(-)
2009-01-26 22:43:08 +00:00
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"
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"
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"
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