2009-09-09gcc: add patch to fix EABI for armv4t
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 09 Sep 2009 00:02:01 +0200] rev 1525
gcc: add patch to fix EABI for armv4t

As pointed out by Martin GUY, gcc incorrectly generates armv5t
instrcutions for EABI, even for cores that are an armv4t.
The new patch (for the 4.3 series) fixes the problem by downgrading
the default CPU for EABI to being an armv4t core.

2009-09-08kconfig: allow stdin/stdout redirection
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 08 Sep 2009 22:42:48 +0200] rev 1524
kconfig: allow stdin/stdout redirection

Allow stdin/stdout redirection for the CLI conf (not mconf).
This allows to recall a sample and automatically apply the defaults
to new configuration option, with something like the following:
yes "" |ct-ng "sample_name"

2009-09-07docs: add a tutorial on how to build a toolchain on Mac OS-X
Blair Burtan <info@northernlightstactical.com> [Mon, 07 Sep 2009 23:12:25 +0200] rev 1523
docs: add a tutorial on how to build a toolchain on Mac OS-X

Add a step-bystep tutorial to build a cross-toolchain on Mac OS-X.

2009-09-07companion libs: add latest CLooG/PPL versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 07 Sep 2009 22:03:06 +0200] rev 1522
companion libs: add latest CLooG/PPL versions

Add the latest 0.15.{4,5,6,7} CLoog/PPL.

2009-09-07samples: show the PPL, GLoog/ppl and MPC versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 07 Sep 2009 19:03:09 +0200] rev 1521
samples: show the PPL, GLoog/ppl and MPC versions

When displaying a sample, do show the PPL, CLoog/ppl and MPC versions

2009-09-07samples: fix displaying selected tools
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 07 Sep 2009 18:55:11 +0200] rev 1520
samples: fix displaying selected tools

Do display selected tools / debug facilities when displaying a sample.

2009-09-07samples: replace usage of echo with printf
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 07 Sep 2009 18:40:30 +0200] rev 1519
samples: replace usage of echo with printf

Using printf instead of echo allows easier and better formatting.

2009-09-06tools wrapper: fix building
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 06 Sep 2009 17:58:05 +0200] rev 1518
tools wrapper: fix building

Remove the build tools only after the wrapper is built.
Use the corect C compiler to build the tools wrapper.
Use the correct log level.

2009-09-06crosstool.sh.in: better mesage when creating script-overrides
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 06 Sep 2009 16:49:54 +0200] rev 1517
crosstool.sh.in: better mesage when creating script-overrides

2009-09-06log functions: fix CT_DoLog and CT_DoExecLog
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 06 Sep 2009 16:49:20 +0200] rev 1516
log functions: fix CT_DoLog and CT_DoExecLog

$@ and $* are different when in double quotes; use $* to print the message.

2009-09-06tools wrapper: move choice selection to a more appropriate place
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 06 Sep 2009 11:47:40 +0200] rev 1515
tools wrapper: move choice selection to a more appropriate place

Move the tools wrapper choice selection down to the companion libraries
sub-menu, to avoid the user going back and forth in the menu.

2009-09-06tools wrapper: fix config dependency
Joachim Nilsson <jocke@vmlinux.org> [Sun, 06 Sep 2009 11:13:28 +0200] rev 1514
tools wrapper: fix config dependency

The tools wrapper is not needed only for canadian crosses, but also
for every other type of toolchain.

2009-09-06docs: typo in overview.txt
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 06 Sep 2009 10:45:31 +0200] rev 1513
docs: typo in overview.txt

2009-09-04TODO: update
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 04 Sep 2009 17:27:16 +0200] rev 1512
TODO: update

Add TODO list for m4, autoconf, automake and libtool.
Building our own versions would remove burden from the users
who have older versions on their distributions, and are not
ready/able/allowed to upgrade.

2009-09-01config.{gues,sub}: update
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 01 Sep 2009 10:41:44 +0200] rev 1511
config.{gues,sub}: update

2009-08-31config: move the patch choice to the extract section
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 31 Aug 2009 22:55:26 +0200] rev 1510
config: move the patch choice to the extract section

Choosing the origin of the patches to apply is best
done in the 'extract' section.

2009-08-31config: add fallback to patch order
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 31 Aug 2009 12:47:58 +0200] rev 1509
config: add fallback to patch order

Add the possibility to fallback to either bundled or local patches
if local or bundled are missing.

2009-08-31config: add the local,bundled patch order
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 31 Aug 2009 12:51:53 +0200] rev 1508
config: add the local,bundled patch order

This ordering first applies the local patches, then the bundeld ones.

2009-08-31config: make selecting the patch origin a choice rather than a bool
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 31 Aug 2009 12:05:52 +0200] rev 1507
config: make selecting the patch origin a choice rather than a bool

2009-08-31functions: do not over-detect error when patching
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 31 Aug 2009 11:57:13 +0200] rev 1506
functions: do not over-detect error when patching

2009-08-30Merge.
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 30 Aug 2009 20:07:39 +0200] rev 1505
Merge.

2009-08-30tools wrapper: fix error due to unused argument
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 30 Aug 2009 19:58:41 +0200] rev 1504
tools wrapper: fix error due to unused argument

In the C wrapper, the argc argument is not used, causing an error
(as we treat warnings as errors). Use a dummy allocation to get
rid of the warning.

2009-08-30tools wrapper: correctly install the C wrapper
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 30 Aug 2009 19:54:51 +0200] rev 1503
tools wrapper: correctly install the C wrapper

When building the C wrapper, specify the source file to be compiled.

2009-08-30config: move the "build shared libraries" option to the OS menu
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 30 Aug 2009 16:54:30 +0200] rev 1502
config: move the "build shared libraries" option to the OS menu

The "Build shared libraries" config option is dependant on the type of
"Target OS".

Moving this options to the "Target OS" sub-menu is also better in the user
perspective: he/she no longer needs to go back and forth to see if he/she
missed any option.

2009-08-30config: make "Build shared libraries" depend on KERNEL_SUPPORTS_SHARED_LIBS
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 30 Aug 2009 16:50:30 +0200] rev 1501
config: make "Build shared libraries" depend on KERNEL_SUPPORTS_SHARED_LIBS

Now that all kernels that support shared libraries select the correct config
option, we can change the dependency rules of SHARED_LIBS accordingly.

2009-08-30config: Linux kernel selectes shared libraries support
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 30 Aug 2009 16:47:51 +0200] rev 1500
config: Linux kernel selectes shared libraries support

The Linux kernel supports using shared libraries, so prompt the user.

2009-08-30config: introduce the KERNEL_SUPPORTS_SHARED_LIBS silent config option
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 30 Aug 2009 16:44:59 +0200] rev 1499
config: introduce the KERNEL_SUPPORTS_SHARED_LIBS silent config option

The target OSes will be able to select this option if they support shared
libraries, instead of having "Build shared libaries" depend on each OS.

2009-08-30config: swap the debug and tools sub-menus
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 30 Aug 2009 19:34:08 +0200] rev 1498
config: swap the debug and tools sub-menus

ltrace, in the debug sub-menu, selects libelf, in the tools sub-menu.
Inverse the order of the two sub-menus, so that the user does not have
to go back and forth between the two sub-menus.

2009-08-30config: move down companion libraries sub-menu
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 30 Aug 2009 19:33:48 +0200] rev 1497
config: move down companion libraries sub-menu

Move the companion libraries sub-menu down the main menu.
That way, the user does not need to go back and forth in the menu
to change options set by the different components that select the
companion libraries (binutils, gcc, gdb).

2009-08-30companion-libs: PPL/CLooG/MPC require GMP and MPFR
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 30 Aug 2009 01:00:19 +0200] rev 1496
companion-libs: PPL/CLooG/MPC require GMP and MPFR

The PPL, CLoog/ppl and MPC libraries require GMP and MPFR.
Select GMP/MPFR appropriately.

2009-08-30tools wrapper: introduce the silent WRAPPER_NEEDED config option
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 30 Aug 2009 00:57:40 +0200] rev 1495
tools wrapper: introduce the silent WRAPPER_NEEDED config option

Add the WRAPPER_NEEDED silent config option, that can be selected by
components that require it (companion libs so far).
Rely on this config option when deciding to install the wrapper,
instead of checking GMP/MPFR or PPL/CLoog/MPC.

2009-08-30Merge the C wrapper.
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 30 Aug 2009 00:35:58 +0200] rev 1494
Merge the C wrapper.

2009-08-30config: choose whether to use the shell or the C wrapper
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 30 Aug 2009 00:27:12 +0200] rev 1493
config: choose whether to use the shell or the C wrapper

Offer a config choice on whether to isntall the script wrapper, or
the compiled C wrapper. Update docs/overview.txt accordingly.

2009-08-29tool wrapper: add initial wrapper coded in C
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 29 Aug 2009 18:27:47 +0200] rev 1492
tool wrapper: add initial wrapper coded in C

Add an initial wrapper:
- find the realpath of the tool being called
- add the '.' in front of the tool name
- add the '/lib' dir to the base dir of the tool
- set and export LD_LIBRARY_PATH
- execve the real tool

2009-08-30overview: fix table of content, fix the hacker's way
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 30 Aug 2009 00:30:45 +0200] rev 1491
overview: fix table of content, fix the hacker's way

table of content: add missing entry
the hacker's way: no need to "make install"

2009-08-28README: fix some space alignment
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 28 Aug 2009 12:09:04 +0200] rev 1490
README: fix some space alignment

2009-08-28duma: fix downloading by forcing extension to .tar.gz
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 28 Aug 2009 11:57:29 +0200] rev 1489
duma: fix downloading by forcing extension to .tar.gz

Downoading a non-existing file from sourceforge gives you a "200 OK"
and an index.html. As we try to retrieve a .tar.bz2 first, and duma
is bundled in a .tar.gz, we won't get appropriate content, so
just force the extension to avoid the problem.

Thanks to Ingmar Schraub <is@eseco.de> for pointing out the issue.

2009-08-28x86_64: is a MMU-aware arch, so select ARCH_USE_MMU
Ingmar Schraub <is@eseco.de> [Fri, 28 Aug 2009 11:34:49 +0200] rev 1488
x86_64: is a MMU-aware arch, so select ARCH_USE_MMU

2009-08-28duma: fix version string.
Ingmar Schraub <is@eseco.de> [Fri, 28 Aug 2009 11:33:56 +0200] rev 1487
duma: fix version string.

DUMA uses '_' not '.' for major/minor/sub separation.

2009-08-24glibc: fix build error caused by incorrect variable assignment
Jim F <jimfriel@gmail.com> [Mon, 24 Aug 2009 19:20:57 +0200] rev 1486
glibc: fix build error caused by incorrect variable assignment

During the conversion to using bash arrays, the glibc build script
was improperly converted, and contains an incorrect variable
assignment to the config_options array.

2009-08-19Merge the bash_array branch.
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 19 Aug 2009 19:52:04 +0200] rev 1485
Merge the bash_array branch.

For every components where it makes sense, use bash arrays (instead
of a string with space-separated values) to store the options pased
to ./configure.

2009-08-19Allow setting --enable-cxx-flags on gcc ./configure bash_array
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 19 Aug 2009 19:44:45 +0200] rev 1484
Allow setting --enable-cxx-flags on gcc ./configure

Some setups require one to pass extra CXX flags at the time of ./configure.
Make it easy.

2009-08-19Use bash arrays to store binutils config options bash_array
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 19 Aug 2009 19:44:44 +0200] rev 1483
Use bash arrays to store binutils config options

2009-08-19Make glibc's extra_config an array containing ./configure options bash_array
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 19 Aug 2009 19:44:43 +0200] rev 1482
Make glibc's extra_config an array containing ./configure options

Change extra_config from a string to a array of options.

2009-08-19Make gdb's extra_config an array containing ./configure options bash_array
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 19 Aug 2009 19:44:43 +0200] rev 1481
Make gdb's extra_config an array containing ./configure options

Change extra_config from a string to a array of options.

2009-08-19Make dmalloc's extra_config an array containing ./configure options bash_array
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 19 Aug 2009 19:44:42 +0200] rev 1480
Make dmalloc's extra_config an array containing ./configure options

Change extra_config from a string to a array of options.

2009-08-19Make gcc's extra_config an array containing ./configure options bash_array
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 19 Aug 2009 19:44:42 +0200] rev 1479
Make gcc's extra_config an array containing ./configure options

Change extra_config from a string to a array of options.

2009-08-19Make eglibc's extra_config an array containing ./configure options bash_array
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 19 Aug 2009 19:44:30 +0200] rev 1478
Make eglibc's extra_config an array containing ./configure options

Change extra_config from a string to a array of options.

2009-08-19configure: check for bash-3.1 or above bash_array
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 19 Aug 2009 19:41:24 +0200] rev 1477
configure: check for bash-3.1 or above

This is required to use the array variables that came with bash-3.1.

2009-07-27[libc-eglibc] Rewrite part of the code bash_array
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 27 Jul 2009 22:16:07 +0200] rev 1476
[libc-eglibc] Rewrite part of the code

Rewrite part of the code to better match the rest.
Most notably, rewrite handling of:
if [ ... ] && [ ... ]
to:
if [ ... -a ... ]

This has the positive side effect of calling "[" only once, although
"[" is probably a shell built-in.

2009-07-27[libc-eglibc] Fix testing for existing files bash_array
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 27 Jul 2009 22:14:08 +0200] rev 1475
[libc-eglibc] Fix testing for existing files

To test for existing files, use "[ -f blabla ]", not "[ -a blabla ]"
Checking for a file exsitence with "-a" is a bashism.
Althoug we _are_ using bash, it's disturbing as it can be misread as
the 'and' operator. Fix by using "-f".

2009-07-21samples: add eglibc-based toolchain for MIPS.
Giammarco Zacheo <g.zacheo@gmail.com> [Tue, 21 Jul 2009 01:05:59 +0200] rev 1474
samples: add eglibc-based toolchain for MIPS.

2009-08-19config: add Linux kernel 2.6.30.5
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 19 Aug 2009 17:05:42 +0200] rev 1473
config: add Linux kernel 2.6.30.5

2009-08-19config: update Linux kernel long-term stable to 2.6.27.31.
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 19 Aug 2009 17:05:17 +0200] rev 1472
config: update Linux kernel long-term stable to 2.6.27.31.

2009-08-08Merge the AVR32 support branch to the default branch.
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 08 Aug 2009 22:15:25 +0200] rev 1471
Merge the AVR32 support branch to the default branch.

2009-06-20Removed debug line avr32
Martin Lund <mgl@doredevelopment.dk> [Sat, 20 Jun 2009 19:42:00 +0200] rev 1470
Removed debug line

2009-06-20Fix libc config avr32
Martin Lund <mgl@doredevelopment.dk> [Sat, 20 Jun 2009 18:54:56 +0200] rev 1469
Fix libc config

2009-06-20Misc AVR32 cleanups. avr32
Martin Lund <mgl@doredevelopment.dk> [Sat, 20 Jun 2009 17:16:54 +0200] rev 1468
Misc AVR32 cleanups.

2009-06-14Changed copyright avr32
Martin Lund <mgl@doredevelopment.dk> [Sun, 14 Jun 2009 22:43:33 +0200] rev 1467
Changed copyright

2009-08-07Update README on how to send proper patches
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 07 Aug 2009 18:24:25 +0200] rev 1466
Update README on how to send proper patches

Add a few lines of explanations on how to correctly setup
and use Mercurial to send proper patches.

2009-08-07Add sections to the README
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 07 Aug 2009 18:30:45 +0200] rev 1465
Add sections to the README

2009-08-07Fix typo in README
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 07 Aug 2009 18:25:54 +0200] rev 1464
Fix typo in README

2009-08-07Update the README with the new URL to the project homepage
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 07 Aug 2009 17:25:20 +0200] rev 1463
Update the README with the new URL to the project homepage

The URL for the crosstool-NG homepage has changed. Update the
README accordingly. The old URL is still valid, though.

2009-08-07config/gcc: re-order versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 07 Aug 2009 18:21:29 +0200] rev 1462
config/gcc: re-order versions

Move the gcc-4.3.4 version to its place.

2009-08-06gcc: add support for 4.3.4
Thomas Petazzoni <thomas.petazzoni@free-electrons.com> [Thu, 06 Aug 2009 18:17:01 +0200] rev 1461
gcc: add support for 4.3.4

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

2009-08-05gcc: add patch to fix PR37436
Thomas Petazzoni <thomas.petazzoni@free-electrons.com> [Wed, 05 Aug 2009 15:23:52 +0200] rev 1460
gcc: add patch to fix PR37436

When compiling some C++ code, GCC 4.3.x fails with an internal
compiler error. The bug report is available at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37436. The included patch
is the one that has been merged in the trunk of gcc.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

2009-08-06config: make CONFIG_SHELL default to bash
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 06 Aug 2009 19:40:26 +0200] rev 1459
config: make CONFIG_SHELL default to bash

Some components (eg. GMP) will fail to correctly build if
the CONFIG_SHELL is not bash (eg. ash or dash). So make bash
the default CONFIG_SHELL.

Keep ash as a possible selection, as future versions of those
currently /broken/ tools may come fixed wrt to CONFIG_SHELL
being POSIX-ly compliant.

2009-08-05Tagging release 1.4.2 1.4
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 05 Aug 2009 23:21:36 +0200] rev 1458
Tagging release 1.4.2

2009-08-051.4: update version to 1.4.2 1.4 crosstool-ng-1.4.2
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 05 Aug 2009 23:55:10 +0200] rev 1457
1.4: update version to 1.4.2

2009-08-03[complib:mpfr] Fix building MPFR in some weird cases 1.4
Oron Peled <oron@actcom.co.il> [Mon, 03 Aug 2009 00:49:25 +0200] rev 1456
[complib:mpfr] Fix building MPFR in some weird cases

The tmul test uses a compiled-in input file in $(srcdir).
The problem is that the Makefile passes it unquoted. The C code
tries to stringify it using clever macros, which may *usually* work.

In my case the source directory was named:
.../toolchain-powerpc-e500v2-linux-gnuspe-1.0-2.fc10/.../tests
And guess what? During testing I found out the program fails because
it tries to open:
.../toolchain-powerpc-e500v2-1-gnuspe-1.0-2.fc10/.../tests

Yes, CPP tokenized the macro before stringifying it and not surprisingly
the 'linux' part was converted to 1.
[on Fedora-10: cpp (GCC) 4.3.2 20081105 (Red Hat 4.3.2-7)]

So the attached patch simplify the macros and pass the path as string
from the Makefile.

Manually backported from 1449:8ad2773e7ae3

2009-08-03[configure] Fix automake version check 1.4
Oron Peled <oron@actcom.co.il> [Mon, 03 Aug 2009 23:11:53 +0200] rev 1455
[configure] Fix automake version check

The configure script fails on automake-1.11 (in Fedora-11) since
it looks for 3-digit version number.

"Yann E. MORIN", added the following comment:

The check for the automake version is not against a 3-digit number,
but really against a 3-part version number, a-la 'x.y.z'. Versions
such as 1.10 and 1.11 are also valid.

2009-06-23Fix creating the .../lib/ directory structure in the non-sysroot case 1.4
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Jun 2009 22:52:14 +0200] rev 1454
Fix creating the .../lib/ directory structure in the non-sysroot case

The symbol link that is created in the sysroot directory only needs
to be made when the cross compiler is build with the sysroot option

Signed-off-by: Bart van der Meulen <bartvdrmeulen@gmail.com>
(transplanted from 0e49e6eddac4f5bbde6394eb3e6e36be75fc550c)

2009-06-23Also set CT_DEBUGROOT_DIR for non sysroot-ed toolchains. 1.4
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Jun 2009 22:52:13 +0200] rev 1453
Also set CT_DEBUGROOT_DIR for non sysroot-ed toolchains.

In the non-sysroot-ed case, the debuf-root directory would not be set;
debug tools would have been installed God-only-knows-where...

Spotted by Bart van der Meulen <bartvdrmeulen@gmail.com>.
(transplanted from 634ffd14d936154464fd714ed29ed44c8e16ae02)

2009-06-17Add .hgignore file. 1.4
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 17 Jun 2009 15:27:55 +0200] rev 1452
Add .hgignore file.

List all generated or temp files in .hgignore, so they
don't clutter the screen when running hg status.
(transplanted from befdb88324e18e1e80260906d0459a56ea0eb37a)

2009-06-11populate: fix installing dynamic linker 'ld.so' 1.4
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 11 Jun 2009 21:47:19 +0000] rev 1451
populate: fix installing dynamic linker 'ld.so'

The dynamic linker, ld.so, needs the execute bit to be set.
Detect tht the library being installed is in fact ld.so and
install it with 0755 instead of 0644.

Fix detecting src == dst.

Use a simpler command to copy src -> dst.

Also change echo to printf, get rid of 'echo -n', which is
highly non-portable.


-------- diffstat follows --------
/trunk/scripts/populate.in | 76 43 33 0 +++++++++++++++++++++++++++++-----------------------
1 file changed, 43 insertions(+), 33 deletions(-)
(transplanted from d7ddcb75e0f703e2ba6d17169167356389224870)

2009-08-03[configure] Use hg, instead of svn, to compute the version string 1.4
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 03 Aug 2009 22:47:53 +0200] rev 1450
[configure] Use hg, instead of svn, to compute the version string

Now we moved from Subversion to Mercurial, use the hg command to
compute the version string.

Manually backported from 1409:7264ce426be4 plus 1430:933eee133cbf
as too much changes have been made to ./configure in the meantime.

2009-08-03[complib:mpfr] Fix building MPFR in some weird cases
Oron Peled <oron@actcom.co.il> [Mon, 03 Aug 2009 00:49:25 +0200] rev 1449
[complib:mpfr] Fix building MPFR in some weird cases

The tmul test uses a compiled-in input file in $(srcdir).
The problem is that the Makefile passes it unquoted. The C code
tries to stringify it using clever macros, which may *usually* work.

In my case the source directory was named:
.../toolchain-powerpc-e500v2-linux-gnuspe-1.0-2.fc10/.../tests
And guess what? During testing I found out the program fails because
it tries to open:
.../toolchain-powerpc-e500v2-1-gnuspe-1.0-2.fc10/.../tests

Yes, CPP tokenized the macro before stringifying it and not surprisingly
the 'linux' part was converted to 1.
[on Fedora-10: cpp (GCC) 4.3.2 20081105 (Red Hat 4.3.2-7)]

So the attached patch simplify the macros and pass the path as string
from the Makefile.

2009-08-03[config] Merge CONFIG_SHELL selection.
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 03 Aug 2009 08:50:56 +0200] rev 1448
[config] Merge CONFIG_SHELL selection.

2009-08-02[config] Warn againt using ash as CONFIG_SHELL
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 02 Aug 2009 23:50:22 +0200] rev 1447
[config] Warn againt using ash as CONFIG_SHELL

It apears that more and more ./configure scripts and Makefiles
make use of non-POSIXly correct shell constructs, that don't
work with ash.

For now, just warn the user against using ash, but keep it as
an option in case newer versions of the /broken/ components
come fixed, and we can again use ash, as it is in some cases
really faster than bash.

2009-08-02[config] Allow user to specify custom CONFIG_SHELL
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 02 Aug 2009 20:06:44 +0200] rev 1446
[config] Allow user to specify custom CONFIG_SHELL

In case the shell the user wants to use as CONFIG_SHELL is located in a
weird place (eg. /opt/bash/bin/bash), or is weirdly named (eg. bash-4),
let the user enter the patch to the shell.

2009-08-02[config] Add bash as a possible CONFIG_SHELL
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 02 Aug 2009 20:06:06 +0200] rev 1445
[config] Add bash as a possible CONFIG_SHELL

On some systems and/or for some components, it may be necessary to
explicitly use bash as the shell used by ./configure and Makefiles.

2009-08-02[config] Change the way to select the CONFIG_SHELL
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 02 Aug 2009 23:43:15 +0200] rev 1444
[config] Change the way to select the CONFIG_SHELL

Transform the single boolean option to a 'choice' selection
with two options: "sh" and "ash".

This is needed to later add "bash" as override.

2009-08-02Merge the queue with all new component versions.
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 02 Aug 2009 23:38:37 +0200] rev 1443
Merge the queue with all new component versions.

2009-08-02[cc-gcc] Add latest versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 02 Aug 2009 23:33:38 +0200] rev 1442
[cc-gcc] Add latest versions

Add gcc-4.4.1

2009-08-02[scripts-add-version] Handle gcc 4.4+
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 02 Aug 2009 23:33:38 +0200] rev 1441
[scripts-add-version] Handle gcc 4.4+

Handle gcc-4.4+ when adding a new gcc version.

2009-08-02[comp-lib-gmp] Add latest versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 02 Aug 2009 23:33:37 +0200] rev 1440
[comp-lib-gmp] Add latest versions

Add 4.3.0 and 4.3.1.

2009-08-02[tools-libelf] Add latest version.
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 02 Aug 2009 23:33:37 +0200] rev 1439
[tools-libelf] Add latest version.

Add libelf 0.8.11, propagate patchset from 0.8.10.

2009-08-02[libc-eglibc] Add latest version
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 02 Aug 2009 23:33:37 +0200] rev 1438
[libc-eglibc] Add latest version

Add latest branch 2_10.

2009-08-02[debug-ltrace] Add latest version.
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 02 Aug 2009 23:33:36 +0200] rev 1437
[debug-ltrace] Add latest version.

Add ltrace 0.5.2, propagate patchset from 0.5.1 and from Debian.

2009-08-02[debug-duma] Add latest versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 02 Aug 2009 23:33:36 +0200] rev 1436
[debug-duma] Add latest versions

Add 2.5.15, propagate patchset from 2_5_14 up to 2_5_15.

2009-08-02[kernel-linux] Add latest versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 02 Aug 2009 23:33:35 +0200] rev 1435
[kernel-linux] Add latest versions

Add 2.6.29.{5,6} and 2.6.30{,.1}
Update 2.6.27.24 to 2.6.27.26 as long-term stable.

2009-08-02fix wrapper script for symlinks
Bart vdr. Meulen <bartvdrmeulen@gmail.com> [Sun, 02 Aug 2009 16:45:43 +0200] rev 1434
fix wrapper script for symlinks

The wrapper script placed around the target binaries when
using the companion libraries does not work for symbolic links
The wrapper scripts needs to follow the links before calling the
actual binary

Signed-off-by: Bart vdr. Meulen <bartvdrmeulen@gmail.com>

---

2009-08-02Add g++ to required tools
Bart vdr. Meulen <bartvdrmeulen@gmail.com> [Sun, 02 Aug 2009 16:45:33 +0200] rev 1433
Add g++ to required tools

Because gmp is now always build with --enable-cxx,
g++ has become a required tool

Signed-off-by: Bart vdr Meulen <bartvdrmeulen@gmail.com>

---

2009-08-01[configure] Fix automake version check.
"Oron Peled" <oron@actcom.co.il> [Sat, 01 Aug 2009 19:18:12 +0200] rev 1432
[configure] Fix automake version check.

The configure script fails on automake-1.11 (in Fedora-11) since
it looks for 3-digit version number.

Patch fixed by "Yann E. MORIN", with the added comment:

The check for the automake version is not against a 3-digit number,
but really against a 3-part version number, a-la 'x.y.z'. Versions
such as 1.10 and 1.11 are also valid.

2009-07-22Require GNU awk at ./configure time.
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 22 Jul 2009 20:42:23 +0200] rev 1431
Require GNU awk at ./configure time.

Some components (specifically {,e}glibc) will not build when awk
is not GNU awk. Make ./configure check for GNU awk.

2009-07-15Make it build again for non-local use.
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 15 Jul 2009 09:22:47 +0200] rev 1430
Make it build again for non-local use.

Using colons (:) in the version string creates Makefile problems:

Makefile:195: *** multiple target patterns. Stop.
make: *** [build] Error 2

2009-06-26Merge the canadian branch to default.
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 26 Jun 2009 19:55:33 +0200] rev 1429
Merge the canadian branch to default.

Now the preliminray support for canadian-crosses is done,
merge to default. The few remaining quirks, if any, will
be resolved on mainstream.

2009-06-26[samples] Add a linux -> mingw32 -> i686-linux canadian sample canadian
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 26 Jun 2009 19:09:22 +0200] rev 1428
[samples] Add a linux -> mingw32 -> i686-linux canadian sample

Add a sample that builds on Linux a mingw32-hosted toolchain that
generates code for i686-none-linux-gnu.

Signed-off-by: Bart van der Meulen <bartvdrmeulen@gmail.com>

2009-06-26[samples] Don't mix canadian samples with non-canadian ones. canadian
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 26 Jun 2009 19:09:22 +0200] rev 1427
[samples] Don't mix canadian samples with non-canadian ones.

- save the canadian smples in their own way, so as not to
mix non-canadian samples with canadian ones
- list canadian samples with the host information

2009-06-26Cleanup the handling of canadian settings canadian
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 26 Jun 2009 19:09:22 +0200] rev 1426
Cleanup the handling of canadian settings

Bring handling the 'canadian' settings as par with the existing
'cross' settings.

2009-06-26Add support code for the canadian-cross case. canadian
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 26 Jun 2009 19:09:22 +0200] rev 1425
Add support code for the canadian-cross case.

Add implementation for a candadian build option already
present in crosstool in order to build a cross-compiler
where build != host != target

Signed-off-by: Bart van der Meulen <bartvdrmeulen@gmail.com>

2009-06-26[samples] Make saveSample.sh a little bit more generic canadian
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 26 Jun 2009 19:09:22 +0200] rev 1424
[samples] Make saveSample.sh a little bit more generic

Prepare saving canadian samples by making the saveSample.sh script
a little bit more generic, using conditional code-paths (even if
there's currently a single code-path).

2009-06-26Don't use prefix/bin to install the buildtools. canadian
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 26 Jun 2009 19:09:22 +0200] rev 1423
Don't use prefix/bin to install the buildtools.

Collect the build tools in a seperate folder in order to prevent accidental
calling our newly build tools.

Signed-off-by: Bart van der Meulen <bartvdrmeulen@gmail.com>

2009-06-23Fix MPFR build to recognise the Mingw32 case.
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Jun 2009 22:57:12 +0200] rev 1422
Fix MPFR build to recognise the Mingw32 case.

Once we have canadian in place, Mingw32 can be a legitimate host,
so we have to recognise that along with Cygwin.

Also fix recognising Cygwin hosts.

Signed-off-by: Bart van der Meulen <bartvdrmeulen@gmail.com>

2009-06-23Use configured shell in all build-tools wrappers
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Jun 2009 22:56:39 +0200] rev 1421
Use configured shell in all build-tools wrappers

Abide by the user's wish to use dash as shell in
build-tools wrappers, instead of plain /bin/sh.

2009-06-23Fix creating the .../lib/ directory structure in the non-sysroot case
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Jun 2009 22:52:14 +0200] rev 1420
Fix creating the .../lib/ directory structure in the non-sysroot case

The symbol link that is created in the sysroot directory only needs
to be made when the cross compiler is build with the sysroot option

Signed-off-by: Bart van der Meulen <bartvdrmeulen@gmail.com>

2009-06-23Also set CT_DEBUGROOT_DIR for non sysroot-ed toolchains.
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Jun 2009 22:52:13 +0200] rev 1419
Also set CT_DEBUGROOT_DIR for non sysroot-ed toolchains.

In the non-sysroot-ed case, the debuf-root directory would not be set;
debug tools would have been installed God-only-knows-where...

Spotted by Bart van der Meulen <bartvdrmeulen@gmail.com>.

2009-06-23[tools] Update config.guess and config.sub
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Jun 2009 22:52:13 +0200] rev 1418
[tools] Update config.guess and config.sub

Update from upstream.

2009-06-23Remove left-over debug lines.
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Jun 2009 22:49:50 +0200] rev 1417
Remove left-over debug lines.

Remove two lines of code that were commented out and are definitely not used.

2009-06-22Check paths sanity before they get used.
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 22 Jun 2009 21:53:09 +0200] rev 1416
Check paths sanity before they get used.

Don't use the PATHs before they get checked for sanity.

2009-06-22Better check for spaces in paths
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 22 Jun 2009 21:51:14 +0200] rev 1415
Better check for spaces in paths

Spaces are evil in paths. Print the path that contains a sapce.
Don't print computed paths, as they'rebased on provided paths,
and don't get space added into them.

2009-06-22[functions] Allow newlines (\n) in log messages
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 22 Jun 2009 21:51:13 +0200] rev 1414
[functions] Allow newlines (\n) in log messages

Allow caller to log messages with embedded newlines when calling
CT_DoLog and other logging functions (eg. CT_Abort...).

2009-06-18[finish-step] Fix the tools wrappers
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 18 Jun 2009 18:55:07 +0200] rev 1413
[finish-step] Fix the tools wrappers

Use the correct variable when iterating upon the tools
name to correctly link the tools to the wrapper.

2009-06-17Add .hgignore file.
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 17 Jun 2009 15:27:55 +0200] rev 1412
Add .hgignore file.

List all generated or temp files in .hgignore, so they
don't clutter the screen when running hg status.

2009-06-17Merge the gcc-4.4 support.
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 17 Jun 2009 12:32:01 +0200] rev 1411
Merge the gcc-4.4 support.

2009-06-17[gcc] Merge the gcc-4.4 suport to the default branch, from 1407:83083566fdd0
Yann E. MORIN [Wed, 17 Jun 2009 11:38:04 +0200] rev 1410
[gcc] Merge the gcc-4.4 suport to the default branch, from 1407:83083566fdd0

2009-06-17[configure] Use hg to compute the version string
Yann E. MORIN [Wed, 17 Jun 2009 10:46:28 +0200] rev 1409
[configure] Use hg to compute the version string

Now that we have migrated to hg from svn, it does not make sense
to keep using svn tools to compute the version string, so switch
to using mercurial tools (that are much more flexible, BTW).

2009-06-14[finish-step] Use local variable in finish-step gcc-4.4
Yann E. MORIN [Sun, 14 Jun 2009 22:57:57 +0200] rev 1408
[finish-step] Use local variable in finish-step

When wrapping the tools, use a local variable when iterating.

2009-06-14[companion-libs] Fix spaces in help entries gcc-4.4
Yann E. MORIN [Sun, 14 Jun 2009 22:56:26 +0200] rev 1407
[companion-libs] Fix spaces in help entries

Some help entries were missing proper alignment-spaces.

2009-06-14[populate] enhance documentation
Yann E. MORIN [Sun, 14 Jun 2009 21:44:33 +0200] rev 1406
[populate] enhance documentation

This patch adds explanations on how
populate works internally.