Commit Graph

90 Commits

Author SHA1 Message Date
Yann E. MORIN"
d691923e88 config: fix generated config files when GREP_OPTIONS set --color=always
grep is used when generating some .in files (in config.gen). If GREP_OPTIONS
contains --color=always, then the generated files will contains some escape
sequences setting the color, and mconf would choke on those escape sequences.

Always set and export an empty GREP_OPTIONS to avoid that.

Issue reported by Kevin Kirkup <kevin dot kirkup at gmail dot com> :
  http://sourceware.org/ml/crossgcc/2009-12/msg00026.html
2009-12-29 21:16:51 +01:00
Yann E. MORIN"
01240b9fbf scripts: fix updating config.{sub,guess} 2009-10-30 19:49:51 +01:00
Yann E. MORIN"
e89072b5a5 Add a new action: show-tuple
- in a directory containing a crosstool-NG configuration,
  prints the tuple of the configured target to stdout.

 -------- diffstat follows --------
 /trunk/Makefile.in             |    4     3     1     0 +++-
 /trunk/scripts/showTuple.sh.in |   30    30     0     0 ++++++++++++++++++++++++++++++
 /trunk/ct-ng.comp              |    2     1     1     0 +-
 /trunk/ct-ng.in                |   10     9     1     0 +++++++++-
 4 files changed, 43 insertions(+), 3 deletions(-)
2009-05-13 18:10:47 +00:00
Yann E. MORIN"
c7a1e6a4da Use the paths found by ./configure in the ct-ng.in makefile script and its fragments.
/trunk/kconfig/kconfig.mk |    2     1     1     0 +-
 /trunk/samples/samples.mk |   18     9     9     0 +++++++++---------
 /trunk/config/config.mk   |   10     5     5     0 +++++-----
 /trunk/ct-ng.in           |   22    13     9     0 +++++++++++++---------
 4 files changed, 28 insertions(+), 24 deletions(-)
2009-01-26 18:36:02 +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"
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"
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"
eb0d243d03 Update help (mostly eye-candy).
/trunk/ct-ng.in |    4     2     2     0 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
2008-10-31 18:29:15 +00:00
Yann E. MORIN"
2730c0b494 Move steps-related help into steps.mk.
/trunk/steps.mk |    4     4     0     0 ++++
 /trunk/ct-ng.in |    2     0     2     0 --
 2 files changed, 4 insertions(+), 2 deletions(-)
2008-10-29 18:34:14 +00:00
Yann E. MORIN"
993eeb9f8f Use $(MAKE) for recursive calls, don't directly use $(CT_NG).
Pass on the V variable on the $(MAKE) command lines.

 /trunk/steps.mk |    6     3     3     0 +++---
 /trunk/ct-ng.in |    2     1     1     0 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
2008-10-29 10:31:15 +00:00
Yann E. MORIN"
ca905573f3 Also export the V value to sub-makes.
/trunk/ct-ng.in |    2     1     1     0 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
2008-10-28 21:47:12 +00:00
Yann E. MORIN"
5e5a5ef90b Correctly handle V= only from command line, not from environment.
/trunk/ct-ng.in |   17     8     9     0 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)
2008-10-21 16:56:32 +00:00
Yann E. MORIN"
c570927ef3 Eye-candy when {,dist}clean.
/trunk/tools/tools.mk |    1     1     0     0 +
 /trunk/ct-ng.in       |   16    12     4     0 ++++++++++++----
 2 files changed, 13 insertions(+), 4 deletions(-)
2008-10-21 16:13:46 +00:00
Yann E. MORIN"
8d042db1d6 Extract the config files related stuff from the kconfig stuff
- create config/config.mk, with all the config.gen/ rules
- the only common points between config files and configurators:
  - the top-level config file to include, stored in KCONFIG_TOP
  - the config_file rules, which makes config files available to configurators
- dependency-files are renamed from %.d to %.dep (.d is reserved for directories)
- a few eye-candy here and there

 /trunk/kconfig/kconfig.mk |  184    12   172     0 +++--------------------------------------------------
 /trunk/config/config.mk   |  118     9   109     0 +++-------------------------------
 /trunk/ct-ng.in           |    1     1     0     0 +
 3 files changed, 22 insertions(+), 281 deletions(-)
2008-10-18 18:37:28 +00:00
Yann E. MORIN"
f31bcd0026 Update the kconfig stuff to match the one in the linux-2.6.27 version.
/trunk/kconfig/zconf.hash.c         |  225   110   115     0 +++----
 /trunk/kconfig/lkc_proto.h          |    4     3     1     0 +
 /trunk/kconfig/mconf.c              |  217   110   107     0 +++---
 /trunk/kconfig/menu.c               |   86    60    26     0 ++-
 /trunk/kconfig/symbol.c             |  212   156    56     0 ++++--
 /trunk/kconfig/kconfig.mk           |   24     9    15     0 -
 /trunk/kconfig/lex.zconf.c          |   97    80    17     0 ++-
 /trunk/kconfig/util.c               |   38    30     8     0 +
 /trunk/kconfig/lkc.h                |   22    18     4     0 +
 /trunk/kconfig/expr.c               |   32    19    13     0 +
 /trunk/kconfig/confdata.c           |  254   172    82     0 +++++---
 /trunk/kconfig/lxdialog/dialog.h    |   12     9     3     0 +
 /trunk/kconfig/lxdialog/inputbox.c  |    6     3     3     0
 /trunk/kconfig/lxdialog/checklist.c |    4     2     2     0
 /trunk/kconfig/lxdialog/menubox.c   |    6     3     3     0
 /trunk/kconfig/lxdialog/textbox.c   |    2     1     1     0
 /trunk/kconfig/lxdialog/util.c      |   47    30    17     0 +
 /trunk/kconfig/lxdialog/yesno.c     |    4     2     2     0
 /trunk/kconfig/expr.h               |   20    10    10     0
 /trunk/kconfig/zconf.tab.c          | 1441   793   648     0 ++++++++++++++++++++++++-------------------
 /trunk/kconfig/conf.c               |  276   124   152     0 ++++----
 /trunk/kconfig/check-gettext.sh     |   14    14     0     0 +
 /trunk/ct-ng.in                     |    2     1     1     0
 23 files changed, 1759 insertions(+), 1286 deletions(-)
2008-10-17 12:47:53 +00:00
Yann E. MORIN"
ffd86b4a72 Woops, typo...
/trunk/ct-ng.in |    2     1     1     0 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
2008-10-15 21:31:35 +00:00
Yann E. MORIN"
4e7d6836a5 Cheesy kconfig stuff:
- silent/quiet/verbose build:
   - ct-ng by default only prints quit messages, such as "CC xxx",
   - if using V=0, nothing is printed,
   - if using V=1, the full command lines are printed,
   - other values are indeterminate,
   - should help in debugging the kconfig stuff;
 - complete kconfig/{,m}conf generation:
   - fully dynamic dependencies on source files,
   - compilation of .c into .o, then linking (instead of direct linking),
   - VPATH usage when not --local;
Typo + a coment moved.

 /trunk/kconfig/kconfig.mk |  140    87    53     0 +++++++++++++++++++++++++++++++++--------------------
 /trunk/tools/tools.mk     |   12     6     6     0 ++--
 /trunk/steps.mk           |    6     3     3     0 +-
 /trunk/samples/samples.mk |   30    15    15     0 +++++-----
 /trunk/ct-ng.in           |   40    28    12     0 +++++++++++----
 5 files changed, 139 insertions(+), 89 deletions(-)
2008-10-15 21:29:56 +00:00
Yann E. MORIN"
6a4dc6568b Eye-candy in the help entries.
/trunk/ct-ng.comp |    2     1     1     0 +-
 /trunk/ct-ng.in   |    6     3     3     0 +++---
 /trunk/steps.mk   |    6     3     3     0 +++---
 3 files changed, 7 insertions(+), 7 deletions(-)
2008-10-14 19:29:25 +00:00
Yann E. MORIN"
c1aa36b009 Eye candy in the help disclaimer.
/trunk/ct-ng.in |    1     1     0     0 +
 1 file changed, 1 insertion(+)
2008-10-14 19:19:20 +00:00
Yann E. MORIN"
356d3677d5 When dumping version, also print some /legal/ blah-blah:
- copyright notice,
 - one-liner boilerplate about free software,
 - disclaimer about waranty, merchantability, fitness...

 /trunk/ct-ng.in |    5     5     0     0 +++++
 1 file changed, 5 insertions(+)
2008-07-16 22:23:46 +00:00
Yann E. MORIN"
9d8b0a6829 Rework a little bit the steps and samples help entries.
/trunk/docs/overview.txt  |    2     1     1     0 +-
 /trunk/steps.mk           |    7     5     2     0 +++++--
 /trunk/samples/samples.mk |    8     5     3     0 +++++---
 /trunk/ct-ng.in           |    5     3     2     0 +++--
 4 files changed, 14 insertions(+), 8 deletions(-)
2008-06-01 21:12:00 +00:00
Yann E. MORIN"
5db396b048 The version strings being computed at ./configure time, store it as is, and don't install a .version file.
/trunk/Makefile.in |    2     0     2     0 --
 /trunk/ct-ng.in    |    2     1     1     0 +-
 2 files changed, 1 insertion(+), 3 deletions(-)
2008-06-01 20:36:36 +00:00
Yann E. MORIN"
3f9386c0a7 Bail out if /bin/bash does not exist, or if it is not bash>=3.0.
Force make to use /bin/bash as shell.
2008-01-16 21:41:53 +00:00
Yann E. MORIN"
e0a9ceef99 make-3.80 does not have $(lastword ...). Fix this when ct-ng calls itself: don't try to be smart, we just _know_ where ct-ng is at configure time!
Fis a latent bug in handling the number parallel jobs.
2007-09-11 17:14:28 +00:00
Yann E. MORIN"
69c757a97d Trying to guess how we were called does not work. Don't try to be smart, and take the full path, even if we are in PATH. 2007-08-31 16:20:03 +00:00
Yann E. MORIN"
ecab7e451f Fix printing the version string when configured with --local. 2007-08-15 15:39:44 +00:00
Yann E. MORIN"
54cca9f2ba Add the possibility to force the number of // jobs without reconfiguring. 2007-08-15 14:59:37 +00:00
Yann E. MORIN"
41708f76f9 Try again to fix the --local behavior. 2007-07-23 09:46:05 +00:00
Yann E. MORIN"
b765f36320 Seems like the --no-builtin-rules and -r options to make are not the same... 2007-07-23 09:21:52 +00:00
Yann E. MORIN"
f38b71646a Re-instate the --local configure switch to not install and use the local crosstool-NG copy. 2007-07-22 17:44:27 +00:00
Yann E. MORIN"
787be08150 No need to expand the host cc every time. 2007-07-22 16:36:20 +00:00
Yann E. MORIN"
2175c8b29d Fix typo in version action. 2007-07-17 07:18:04 +00:00
Yann E. MORIN"
16503c2f06 Add an action to print the version. 2007-07-16 16:34:36 +00:00
Yann E. MORIN"
e9916d58e9 Rename all Makefiles used by ct-ng into (something).mk, to avoid confusion. 2007-07-15 09:09:04 +00:00
Yann E. MORIN"
ba2827e22d Separate clean actions from build actions;
Re-label "Preconfigured actions" to "Preconfigured toolchains";
Small eye-candy fix in the help text for liststeps.
2007-07-09 20:55:32 +00:00
Yann E. MORIN"
15874284b8 Disable tarball creation until it's fixed. 2007-07-07 21:10:30 +00:00
Yann E. MORIN"
9265403b8b Get rid of eclipse fiels once and for all.
Homogenise the references to crosstool-NG:
  - the project is named "crosstool-NG"
  - the front-end is named "ct-ng"
  - don't use shortcuts (such as "ct-ng" to stand for "crosstool-NG")
Default action is to print help.
Don't speak of make rules when dumping help, just speak of actions.
2007-07-02 19:40:54 +00:00
Yann E. MORIN"
1bb07c805c Fix running without installing.
Update README.
Point help to the man page.
2007-07-01 21:21:11 +00:00
Yann E. MORIN"
26713d4210 Merge the build system to trunk: ct-ng is now installable:
- ./configure --prefix=/some/place
 - make
 - make install
 - export PATH="${PATH}:/some/place/bin"
 - ct-ng <action>
2007-07-01 19:04:20 +00:00