2010-05-19test-suite: Added new test suite feature (experimental)
Martin Lund <mgl@doredevelopment.dk> [Wed, 19 May 2010 17:53:04 +0200] rev 1965
test-suite: Added new test suite feature (experimental)

This patch adds support for installing the gcc test suite. A helper
Makefile is provided for building and running the gcc tests.

The default configuration runs all gcc tests and requires automatic
ssh/scp login access to a networked target board. See README for
more details.

Note: Current feature is tested with the powerpc-unknown-linux-gnu
sample but it should work with others as well.

Signed-off-by: Martin Lund <mgl@doredevelopment.dk>

2010-05-22scripts/wrapper.c: Under MacOS set DYLD_LIBRARY_PATH
Titus von Boxberg <titus@v9g.de> [Sat, 22 May 2010 12:37:02 +0200] rev 1964
scripts/wrapper.c: Under MacOS set DYLD_LIBRARY_PATH

Depending on (predefined) macro __APPLE__, use DYLD_LIBRARY_PATH
instead of LD_LIBRARY_PATH.

2010-05-22docs/overview.txt: Provide short mercurial HOWTO
Titus von Boxberg <titus@v9g.de> [Sat, 22 May 2010 18:48:50 +0200] rev 1963
docs/overview.txt: Provide short mercurial HOWTO

The usage of hg mq is imho not very well documented.
Give a short intro for the most important use cases
for contributions to ct-ng.

yann.morin.1998@anciens.enib.fr:
Slightly rewrote the explanations for the introductory message.

2010-05-17ct-ng: Add ability to configure and use some GNU tools
Titus von Boxberg <titus@v9g.de> [Mon, 17 May 2010 14:11:08 +0200] rev 1962
ct-ng: Add ability to configure and use some GNU tools

Make the paths to libtool, objcopy, objdump, readelf, patch configurable.

2010-05-22scripts/build/internals.sh: Always use binary wrapper under BSD/MacOS
Titus von Boxberg <titus@v9g.de> [Sat, 22 May 2010 17:30:44 +0200] rev 1961
scripts/build/internals.sh: Always use binary wrapper under BSD/MacOS

The shell wrapper script uses a nonportable call to readlink.
Thus, always use the binary wrapper under BSD/MacOS.

yann.morin.1998@anciens.enib.fr:
Use 'case' instead of 'if'.

2010-05-17scripts/wrapper.in: Add a comment about readlink not being portable.
Titus von Boxberg <titus@v9g.de> [Mon, 17 May 2010 12:27:32 +0200] rev 1960
scripts/wrapper.in: Add a comment about readlink not being portable.

Documented that the call to readlink will not work on BSD systems.

2010-05-17configure: make call to readlink portable to non-GNU (BSD) systems
Titus von Boxberg <titus@v9g.de> [Mon, 17 May 2010 12:23:24 +0200] rev 1959
configure: make call to readlink portable to non-GNU (BSD) systems

The argument '-e' for readlink is a GNU extension.
In setting the variable 'where' the argument '-e' is not necessary, thus eliminated.

2010-05-19scripts/crosstool-NG.sh.in: On MacOS/BSD use the output of CT_DoConfigGuess for CT_BUILD.
Titus von Boxberg <titus@v9g.de> [Wed, 19 May 2010 18:13:00 +0200] rev 1958
scripts/crosstool-NG.sh.in: On MacOS/BSD use the output of CT_DoConfigGuess for CT_BUILD.

On 64bit MacOS `gcc -dumpmachine` gives i686 for the host machine.
This conflicts with the expectations of some following configure scripts
that a 64bit x86 is given as x86_64; i686 is understood as a 32 bit machine.
config.guess sets the host machine in CT_BUILD correctly.

yann.morin.1998@anciens.enib.fr:
As suggested by Khem RAJ on the ML, always use config.guess.

2010-05-17configure: Do not require stat to be of GNU coreutils
Titus von Boxberg <titus@v9g.de> [Mon, 17 May 2010 11:29:26 +0200] rev 1957
configure: Do not require stat to be of GNU coreutils

calls to stat have been made portable, thus it is not necessary
that the GNU version is present on the user's system.

2010-05-19scripts/functions: Use stat correctly on non-GNU (BSD/Darwin) systems.
Titus von Boxberg <titus@v9g.de> [Wed, 19 May 2010 18:22:32 +0200] rev 1956
scripts/functions: Use stat correctly on non-GNU (BSD/Darwin) systems.

Call to get the directory mode depending on $CT_SYS_OS

yann.morin.1998@anciens.enib.fr:
CT_SYS_OS has changed on Linuxsystem, it only gets the kernel name "Linux",
and not the system name, 'GNU/'.

2010-05-19build/internals.sh: Replace nonportable call to stat
Titus von Boxberg <titus@v9g.de> [Wed, 19 May 2010 18:08:23 +0200] rev 1955
build/internals.sh: Replace nonportable call to stat

The call to stat to find out if a file is a symlink works only on GNU systems,
and the replacing portable call to readlink is also shorter and more concise code.

yann.morin.1998@anciens.enib.fr:
Apply simpler test, after discussion with author and Arnaud LACOMBE on the ML.

2010-05-19crosstool-NG.sh: suppress failure message from uname -o
Titus von Boxberg <titus@v9g.de> [Wed, 19 May 2010 18:17:39 +0200] rev 1954
crosstool-NG.sh: suppress failure message from uname -o

On non-GNU systems (BSD/MacOS) there is no uname -o.
Suppress the failure message on these systems in the
call to set CT_SYS_OS (uname -s actually sets this variable).

yann.morin.1998@anciens.enib.fr: remove 'uname -o' altogether.

2010-05-16cc/gcc: add latest version
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 16 May 2010 19:41:53 +0200] rev 1953
cc/gcc: add latest version

Add 4.4.4 and forward-port patchset from 4.4.3

2010-05-18kernel/linux: update versions list
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 18 May 2010 23:03:48 +0200] rev 1952
kernel/linux: update versions list

2010-05-18Merge. 1.7
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 18 May 2010 22:59:08 +0200] rev 1951
Merge.

2010-05-18Revert changeset e7f7220b5ba2 1.7
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 18 May 2010 22:59:00 +0200] rev 1950
Revert changeset e7f7220b5ba2

Arnaud LACOMBE rightly pointed out that this was done on the wrong branch.

2010-05-18Revert changeset d341be24dc68 1.7
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 18 May 2010 22:58:49 +0200] rev 1949
Revert changeset d341be24dc68

Arnaud LACOMBE rightly pointed out that this was done on the wrong branch.

2010-05-16cc/gcc: add latest version 1.7
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 16 May 2010 19:41:53 +0200] rev 1948
cc/gcc: add latest version

Add 4.4.4 and forward-port patchset from 4.4.3

2010-05-16kernel/linux: update versions list 1.7
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 16 May 2010 18:56:51 +0200] rev 1947
kernel/linux: update versions list

2010-04-301.7: update version to 1.7.0+hg 1.7
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 30 Apr 2010 22:26:52 +0200] rev 1946
1.7: update version to 1.7.0+hg

2010-04-30Tagging release 1.7.0 1.7
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 30 Apr 2010 22:26:52 +0200] rev 1945
Tagging release 1.7.0

2010-04-301.7: create maintenance branch, update version to 1.7.0 1.7 crosstool-ng-1.7.0
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 30 Apr 2010 22:26:52 +0200] rev 1944
1.7: create maintenance branch, update version to 1.7.0

2010-04-30scripts/mk-release: pretty-up the per-author stats
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 30 Apr 2010 22:25:45 +0200] rev 1943
scripts/mk-release: pretty-up the per-author stats

Reverse sort first by number of changesets, then sort alphabetically
on the author's names.

2010-04-30docs: update the known issues
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 30 Apr 2010 14:33:07 +0200] rev 1942
docs: update the known issues

2010-04-30samples: update
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 30 Apr 2010 14:28:14 +0200] rev 1941
samples: update

2010-04-29debug/gdb: install tic in the buildtools directory
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 29 Apr 2010 22:14:31 +0200] rev 1940
debug/gdb: install tic in the buildtools directory

'tic' is a build tool, its place is in the buildtools
directory, not in the toolchain's bin directory.

2010-04-29debug/gdb: be less verbose during the ncurses build
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 29 Apr 2010 22:12:27 +0200] rev 1939
debug/gdb: be less verbose during the ncurses build

2010-04-29scripts: don't set LD_PRELOAD with static companion libraries
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 29 Apr 2010 00:25:17 +0200] rev 1938
scripts: don't set LD_PRELOAD with static companion libraries

When cpmpanion libraries are built statically, it is useless to set
LD_PRELOAD. Worse, it might break the build in some corner cases.

2010-04-28docs: update the section about the wrapper
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 28 Apr 2010 22:24:01 +0200] rev 1937
docs: update the section about the wrapper

The wrapper is no longer needed when building
non-shared companion libraries. Document that.

2010-04-25arch/sh: fix type in variant handling
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 25 Apr 2010 18:27:23 +0200] rev 1936
arch/sh: fix type in variant handling

2010-04-22scripts/savesample: be silent when checking for .config file
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 22 Apr 2010 19:21:03 +0200] rev 1935
scripts/savesample: be silent when checking for .config file

2010-04-221.6: update version to 1.6.2+hg 1.6
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 22 Apr 2010 19:26:52 +0200] rev 1934
1.6: update version to 1.6.2+hg

2010-04-22Tagging release 1.6.2 1.6
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 22 Apr 2010 19:26:52 +0200] rev 1933
Tagging release 1.6.2

2010-04-221.6: update version to 1.6.2 1.6 crosstool-ng-1.6.2
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 22 Apr 2010 19:26:52 +0200] rev 1932
1.6: update version to 1.6.2

2010-04-20cc/gcc: fix cc symlink when executables have an extension 1.6
Remy Bohmer <linux@bohmer.net> [Tue, 20 Apr 2010 11:39:13 +0200] rev 1931
cc/gcc: fix cc symlink when executables have an extension

When building a cross-compiler for a host which depends
on file extensions the symlink for cc was not installed correctly

Signed-off-by: Bart vdr. Meulen <bartvdrmeulen@gmail.com>
[Yann E. MORIN: style fixes, enhancements, code prettying]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 214c64ba8b21db15f610eca886fb194a6675e40c)

2010-04-21libc/newlib: don't do // downloads
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 21 Apr 2010 19:06:29 +0200] rev 1930
libc/newlib: don't do // downloads

The newlib FTP site does not like // downloads, and quickly
blocks the IP from the downloader.

Override the number of chunks when downloading newlib.

2010-04-21libc/glibc: fix kernel version check
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 21 Apr 2010 18:54:58 +0200] rev 1929
libc/glibc: fix kernel version check

Since we log the test strings, it is no longer possible to call
the CT_Test* functions from sub-functions that print results to
their stdout.

2010-04-20scripts: also prepare include symlink to sysroot/include
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 20 Apr 2010 09:58:41 +0200] rev 1928
scripts: also prepare include symlink to sysroot/include

2010-04-19scripts: check g++ only for host
Remy Bohmer <linux@bohmer.net> [Mon, 19 Apr 2010 23:42:31 +0200] rev 1927
scripts: check g++ only for host

g++ is only needed when building additonal libs on the HOST,
so check wheter g++ is available for the HOST compiler only

Signed-off-by: Bart vdr. Meulen <bartvdrmeulen@gmail.com>
[Yann E. MORIN: fix space damage]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-04-09cc/gcc: use proper host compiler for canadian bare-metal
Remy Bohmer <linux@bohmer.net> [Fri, 09 Apr 2010 21:04:37 +0200] rev 1926
cc/gcc: use proper host compiler for canadian bare-metal

While compiling a canadian toolchain for host=mingw32, build=linux,
target=m68k-elf the build fails because in this step of the gcc build
the Host compiler is used in this stage with the build-flags for the
build system. This results in an error where the header <sys/wait.h>
cannot be found.
This problem happens at least in the GCC-4.3.x and GCC-4.4.x range.

This is solved by passing the proper compilers on the Make cmd-line

Signed-off-by: Remy Bohmer <linux@bohmer.net>

2010-04-20cc/gcc: allow building a canadian bare-metal compiler
Remy Bohmer <linux@bohmer.net> [Tue, 20 Apr 2010 10:06:04 +0200] rev 1925
cc/gcc: allow building a canadian bare-metal compiler

Previous addition of the canadian cross compiler did not allow
to build a baremetal only variant, no reason why this is not
allowed

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

2010-04-20cc/gcc: fix cc symlink when executables have an extension
Remy Bohmer <linux@bohmer.net> [Tue, 20 Apr 2010 11:39:13 +0200] rev 1924
cc/gcc: fix cc symlink when executables have an extension

When building a cross-compiler for a host which depends
on file extensions the symlink for cc was not installed correctly

Signed-off-by: Bart vdr. Meulen <bartvdrmeulen@gmail.com>
[Yann E. MORIN: style fixes, enhancements, code prettying]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-04-09libc/newlib: the m68k processor does not like unaligned 1.6
Remy Bohmer <linux@bohmer.net> [Fri, 09 Apr 2010 21:04:38 +0200] rev 1923
libc/newlib: the m68k processor does not like unaligned

Disable unaligned access at least for mcpu32, m68010 and m68020.
These processors certainly do not like unaligned accesses.

Signed-off-by: Remy Bohmer <linux@bohmer.net>
(transplanted from faade25219ed565993b7b26357991d3130697515)

2010-04-10complibs/mpfr: fix extract 1.6
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 10 Apr 2010 22:45:36 +0200] rev 1922
complibs/mpfr: fix extract

With MPFR 2.4.2, autoreconf needs to be run as well.
(transplanted from b376baa43a50e178915f8d5dac40d9408bf2e962)

2010-04-15cc/gcc: add 4.5.0
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 15 Apr 2010 22:35:22 +0200] rev 1921
cc/gcc: add 4.5.0

2010-04-15cc/gcc: add support for 4.5.0 or later versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 15 Apr 2010 22:35:18 +0200] rev 1920
cc/gcc: add support for 4.5.0 or later versions

starting with 4.5.0, gcc requires libelf.

2010-04-15complibs/libelf: remove old versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 15 Apr 2010 22:35:15 +0200] rev 1919
complibs/libelf: remove old versions

Those old versions are not suitable for use by gcc.

2010-04-15complibs/libelf: enable the host build
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 15 Apr 2010 22:42:06 +0200] rev 1918
complibs/libelf: enable the host build

Host libelf is required by gcc-4.5.0

2010-04-15complibs/libelf: build target libelf in its own directory
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 15 Apr 2010 22:35:04 +0200] rev 1917
complibs/libelf: build target libelf in its own directory

2010-04-15debug/gdb: remove insight
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 15 Apr 2010 20:00:23 +0200] rev 1916
debug/gdb: remove insight

Insight seems to be very slow to follow up on mainstreram gdb.
Latest snapshots are more than 6 months old.

Moreover, I don't have time to maintain insight support in crosstool-NG;
and, because I don't use it, I am unable to find any breakage.

2010-04-15debug/gdb: reorder options in the menuconfig
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 15 Apr 2010 19:54:00 +0200] rev 1915
debug/gdb: reorder options in the menuconfig

2010-04-15debug/gdb: allow static build with complibs
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 15 Apr 2010 22:34:35 +0200] rev 1914
debug/gdb: allow static build with complibs

It is now possible to built static versions of the companion libraries,
so we can now build a static cross-gdb using the complibs.

2010-04-15scripts: don't print the build system guess warning
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 15 Apr 2010 22:34:11 +0200] rev 1913
scripts: don't print the build system guess warning

2010-04-13complibs/gmp: mark 5.0.1 as being experimental
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 13 Apr 2010 23:26:12 +0200] rev 1912
complibs/gmp: mark 5.0.1 as being experimental

MPFR can't cope with GMP > 4.x.y so hide it behind EXPERIMENTAL
until we fix MPFR

2010-04-07samples: add Blackfin sample
Thomas Petazzoni <thomas.petazzoni@free-electrons.com> [Wed, 07 Apr 2010 09:26:12 +0200] rev 1911
samples: add Blackfin sample

2010-04-07Add basic support for the Blackfin architecture
Thomas Petazzoni <thomas.petazzoni@free-electrons.com> [Wed, 07 Apr 2010 09:18:20 +0200] rev 1910
Add basic support for the Blackfin architecture

For uClibc, the name of the Blackfin architecture is 'bfin'. Actually,
the naming of the architecture is quite messy: for toolchain tuples
and uClibc, it's bfin, but for the kernel, it's blackfin. We've
arbitraly choosen to name it "blackfin" in Crosstool-NG.

Add Blackfin-related uClibc patch to fix a build failure related to
fork() being used in unistd/daemon.c.

Yann E. MORIN:
Apply the patch to the kernel/linux build script to use 'linux'
in the noMMU tuples. See:
http://sourceware.org/ml/crossgcc/2010-04/msg00010.html

2010-04-13scripts/functions: log the test strings
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 13 Apr 2010 22:54:57 +0200] rev 1909
scripts/functions: log the test strings

2010-04-13scripts/functions: compress with gzip level 3, as stated in the documentation
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 13 Apr 2010 21:47:34 +0200] rev 1908
scripts/functions: compress with gzip level 3, as stated in the documentation

Thanks to Bruno Tarquini <btarquini@gmail.com> for the report.

2010-04-13scripts/functions: add a save/restore handler
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 13 Apr 2010 20:52:38 +0200] rev 1907
scripts/functions: add a save/restore handler

Saving and restoring the steps requires saving/restoring multiple
directories. Depending on the configuration, some may not exist.

Add a wrapper that checks before creating/extracting the tarballs.

2010-04-13scripts/functions: fix CT_Patch again
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 13 Apr 2010 20:05:47 +0200] rev 1906
scripts/functions: fix CT_Patch again

2010-04-13Merge.
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 13 Apr 2010 00:43:22 +0200] rev 1905
Merge.

2010-04-13Revert 3ea4e6f7b85f: Force autoreconf for mpfr
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 13 Apr 2010 00:43:09 +0200] rev 1904
Revert 3ea4e6f7b85f: Force autoreconf for mpfr

It breaks on my machine. Revert until we find the exact cause leading to
the initial patch, and we come up with a patch that properly fixes it.

2010-04-13scripts/functions: fix CT_Patch
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 13 Apr 2010 00:07:00 +0200] rev 1903
scripts/functions: fix CT_Patch

2010-04-09libc/newlib: the m68k processor does not like unaligned
Remy Bohmer <linux@bohmer.net> [Fri, 09 Apr 2010 21:04:38 +0200] rev 1902
libc/newlib: the m68k processor does not like unaligned

Disable unaligned access at least for mcpu32, m68010 and m68020.
These processors certainly do not like unaligned accesses.

Signed-off-by: Remy Bohmer <linux@bohmer.net>

2010-04-11scripts/functions: make CT_Patch dumber
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 11 Apr 2010 23:18:10 +0200] rev 1901
scripts/functions: make CT_Patch dumber

It is the responsibility of the caller to split the package name from
its version. It already knows that.

2010-04-11libc/newlib: only compute version string, not full filename
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 11 Apr 2010 23:17:25 +0200] rev 1900
libc/newlib: only compute version string, not full filename

2010-04-11debug/gdb: remove snapshot version
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 11 Apr 2010 23:05:48 +0200] rev 1899
debug/gdb: remove snapshot version

2010-04-09cc/gcc: add bugurl and compiler version to core gcc compiler
Remy Bohmer <linux@bohmer.net> [Fri, 09 Apr 2010 21:04:33 +0200] rev 1898
cc/gcc: add bugurl and compiler version to core gcc compiler

When building for bare-metal the core-gcc compiler is delivered
as final compiler, so the version info and bugurl is useful
in the core compiler as well.

Signed-off-by: Remy Bohmer <linux@bohmer.net>

2010-04-09binutils: allow choice for elf format when building bare-metal cross compiler
Bart vdr. Meulen <bartvdrmeulen@gmail.com> [Fri, 09 Apr 2010 21:04:28 +0200] rev 1897
binutils: allow choice for elf format when building bare-metal cross compiler

When building a baremetal cross compiler I want to be able to select
the elf format and not be forced to build the elf2flt package.

Signed-off-by: Bart vdr. Meulen <bartvdrmeulen@gmail.com>
[Yann E. MORIN: tweak the commit message]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-04-09scripts: prevent trailing - in CT_TARGET
Bart vdr Meulen <bartvdrmeulen@gmail.com> [Fri, 09 Apr 2010 21:04:27 +0200] rev 1896
scripts: prevent trailing - in CT_TARGET

Not all target tuples consist of an VENDOR, KERNEL and SYSTEM part, build up the
tuple in such a way to no extra or trailing dashes are added to CT_TARGET

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

2010-04-09[CT-NG:patch 05/19] Force autoreconf for mpfr
Bart vdr. Meulen <bartvdrmeulen@gmail.com> [Fri, 09 Apr 2010 21:04:24 +0200] rev 1895
[CT-NG:patch 05/19] Force autoreconf for mpfr

In some exotic case the autoreconf step of mpfr is not executed (correctly)
leaving an incorrect version number for libtool in the configure script.

After extracting the sources files, force autoreconf to be executed.

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

2010-04-11complibs: save directory with static complibs for stop/restart
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 11 Apr 2010 15:37:53 +0200] rev 1894
complibs: save directory with static complibs for stop/restart

2010-04-11complibs: don't install in toolchain dir when built as static
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 11 Apr 2010 11:10:06 +0200] rev 1893
complibs: don't install in toolchain dir when built as static

2010-04-11complibs: allow either static or shared build
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 11 Apr 2010 00:47:23 +0200] rev 1892
complibs: allow either static or shared build

2010-04-10complibs: build static libraries
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 10 Apr 2010 23:43:08 +0200] rev 1891
complibs: build static libraries

2010-04-10config: replace COMP_LIBS with COMPLIBS
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 10 Apr 2010 23:42:28 +0200] rev 1890
config: replace COMP_LIBS with COMPLIBS

2010-04-10complibs/mpfr: fix extract
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 10 Apr 2010 22:45:36 +0200] rev 1889
complibs/mpfr: fix extract

With MPFR 2.4.2, autoreconf needs to be run as well.

2010-04-10scripts: add script to publish patches
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 10 Apr 2010 12:34:07 +0200] rev 1888
scripts: add script to publish patches

This script creates the patches for an existing version.

2010-04-07Re-enable the FD_PIC ELF configuration option
Thomas Petazzoni <thomas.petazzoni@free-electrons.com> [Wed, 07 Apr 2010 09:20:05 +0200] rev 1887
Re-enable the FD_PIC ELF configuration option

Blackfin uses FD_PIC ELF format to provide shared libraries on a
non-MMU architecture.

2010-04-07Fix the uClibc clean-up-O_CLOEXEC-handling patch
Thomas Petazzoni <thomas.petazzoni@free-electrons.com> [Wed, 07 Apr 2010 09:19:16 +0200] rev 1886
Fix the uClibc clean-up-O_CLOEXEC-handling patch

In the Blackfin case (untested until now), this patch was lacking a
leading / at the end of a comment.

2010-03-30libc/glibc: add patch to ports-2.9 to fix sjlj from ARM FPU 1.6
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 30 Mar 2010 22:30:41 +0200] rev 1885
libc/glibc: add patch to ports-2.9 to fix sjlj from ARM FPU

As discussed there: http://sourceware.org/bugzilla/show_bug.cgi?id=9678#c4

Reported by: Sasha Sirotkin <buildroot@browserseal.com>
(transplanted from dfc2b3e07ea6ea0761fb91df7c3c7fcdc718cc5f)

2010-03-26scripts/populate: fix handling the forced libraries list-file 1.6
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 26 Mar 2010 23:17:23 +0100] rev 1884
scripts/populate: fix handling the forced libraries list-file

If a list-file is used, then each library in the file will be handled
twice (not a real issue, as the second iteration will find the library
already present, just avoid doing the job twice).
(transplanted from 7fec5db8933cb296c665b8526f27a779aa0c0c7a)

2010-03-20cc/gcc: fix building for powerpc for the 4.4.x series 1.6
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 20 Mar 2010 18:42:34 +0100] rev 1883
cc/gcc: fix building for powerpc for the 4.4.x series

Reported by: Thomas Petazzoni
http://sourceware.org/ml/crossgcc/2010-03/msg00057.html

Discussions:
http://lists.uclibc.org/pipermail/uclibc/2010-March/043697.html
http://lists.uclibc.org/pipermail/buildroot/2010-March/032790.html
http://ibot.rikers.org/%23uclibc/20100316.html.gz
(search for "copysignl", by kos_tom, blindvt and y_morin)
(transplanted from 76b1923da63d2e3b8e9010b6138e33f6a99720a8)

2010-04-07libc/uclibc: add uClibc 0.9.31
Arnaud Lacombe <lacombar@gmail.com> [Wed, 07 Apr 2010 18:35:23 +0200] rev 1882
libc/uclibc: add uClibc 0.9.31

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
[Yann E. MORIN: mark it EXPERIMENTAL]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-04-07cc/gcc: fix thread-less final gcc build
Arnaud Lacombe <lacombar@gmail.com> [Wed, 07 Apr 2010 18:35:22 +0200] rev 1881
cc/gcc: fix thread-less final gcc build

If threads are disabled in libc, we don't want to enable them in the
final compiler. Doing so pass the configure stage, but fails latter on
a missing <pthread.h>.

Moreover, we don't want to build libgomp if threads are disabled; its
configure script would fails anyway.

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>

2010-04-07cc/gcc: fix recent gcc build
Arnaud Lacombe <lacombar@gmail.com> [Wed, 07 Apr 2010 18:35:21 +0200] rev 1880
cc/gcc: fix recent gcc build

This fix missed conversion of CT_GCC_USE_* to CT_CC_GCC_USE_*.

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>

2010-04-07complibs/gmp: fix patch against 5.0.1
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 07 Apr 2010 00:04:06 +0200] rev 1879
complibs/gmp: fix patch against 5.0.1

2010-04-01config: allow libc selection in backend mode
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 01 Apr 2010 19:52:54 +0200] rev 1878
config: allow libc selection in backend mode

In backend mode, allow the upper-layer build system to force the
C library selection.

2010-04-01config: do not force setting kernel and arch
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 01 Apr 2010 19:45:28 +0200] rev 1877
config: do not force setting kernel and arch

In backend mode, only enforce the arch and/or kernel selection if the
upper-layer build system effectively forces the selection.

2010-04-02scripts: misc help and auto-complete fixes
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 02 Apr 2010 00:18:26 +0200] rev 1876
scripts: misc help and auto-complete fixes

- don't list samples in the main help screen
- improve the samples listing in list-samples
- don't document the 'config' action, it's long dead
- document the 'V' environment variable
- improve on START, STOP and PREFIX environment variables
- add PREFIX and V to autocomplete
- advertise auto-complete at install time

2010-04-02kernel/linux: add latest versions: 2.6.33.2 2.6.32.11 2.6.31.13 2.6.27.46
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 02 Apr 2010 22:39:53 +0200] rev 1875
kernel/linux: add latest versions: 2.6.33.2 2.6.32.11 2.6.31.13 2.6.27.46

2010-03-30debug/gdb: update version to 7.1
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 30 Mar 2010 21:22:23 +0200] rev 1874
debug/gdb: update version to 7.1

2010-03-30complibs: update versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 30 Mar 2010 22:31:49 +0200] rev 1873
complibs: update versions

GMP : 4.3.2, 5.0.1*
CLooG/PPL: 0.15.8 0.15.9
libelf : 0.8.13

*: patch series added

2010-03-29scripts/addToolsVersion: fix handling libelf
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 29 Mar 2010 23:37:29 +0200] rev 1872
scripts/addToolsVersion: fix handling libelf

libelf has moved to the companion libraries section,
and is no longer in the tools section.

2010-03-30libc/glibc: add patch to ports-2.9 to fix sjlj from ARM FPU
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 30 Mar 2010 22:30:41 +0200] rev 1871
libc/glibc: add patch to ports-2.9 to fix sjlj from ARM FPU

As discussed there: http://sourceware.org/bugzilla/show_bug.cgi?id=9678#c4

Reported by: Sasha Sirotkin <buildroot@browserseal.com>

2010-03-29config: fix style issues when source-ing files
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 29 Mar 2010 20:24:50 +0200] rev 1870
config: fix style issues when source-ing files

Always enclose the sourced file between double-quotes (purely for
consistency; enclosing or not are both allowed by the kconfig language).

2010-03-29config: move backend-related options to their own file
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 29 Mar 2010 20:15:25 +0200] rev 1869
config: move backend-related options to their own file

2010-03-29config: hide arch and kernel selection when used as a backend
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 29 Mar 2010 12:06:58 +0200] rev 1868
config: hide arch and kernel selection when used as a backend

When used as a backend, it is the responsibility of the upper-layer build
system to set the target architecture and kernel.

2010-03-29config: hide options to debug crosstool-NG when a backend
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 29 Mar 2010 10:03:29 +0200] rev 1867
config: hide options to debug crosstool-NG when a backend

When used as a backend, it does not make sense to debug crosstool-NG,
so hide the option.

2010-03-29config: hide more config options when a backend
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 29 Mar 2010 10:05:21 +0200] rev 1866
config: hide more config options when a backend

Hide the prompts for some behavioral options, for which the upper-layer build
system is responsible for:
- parallel jobs and maximum load
- use pipes
- use custom shell

2010-03-29config: hide paths when used as a backend
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 29 Mar 2010 12:04:27 +0200] rev 1865
config: hide paths when used as a backend

When crosstool-NG is used as a backend, it is the responsibility of the
upper-layer build-system to properly set paths, so we just hide the
prompts in this case.

2010-03-29scripts/populate: optimise search loop
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 29 Mar 2010 00:15:32 +0200] rev 1864
scripts/populate: optimise search loop

Curently, populate will iterate over all ELF (shared objects|executables)
to look for missing NEEDED DSOs, adding to the list at every iterations
of the search loop.

Instead of looking again at previously handled ELF files, recursively
resolve every ELf files.

Also, in case there are a whole lot of files (more than the shell can
accept as arguments list, or creating a command line longer than the
shell can cope with), use a temporary file with the list of files
to search for missing dependencies.

2010-03-28scripts/populate: cleanups and misc fixes
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 28 Mar 2010 23:01:19 +0200] rev 1863
scripts/populate: cleanups and misc fixes

- it's a POSIX compliant shell script: drop bash, use /bin/sh
- fix help text
- use an absolute path for sysroot
- replace "echo" with "printf"
- replace "stat -c '%i'" with "ls -1id"
- replace "pushd / popd" with "cd / cd -"
- remove superfluous break
- bail out if required lib not found, except if forced

2010-03-26scripts/populate: fix handling the forced libraries list-file
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 26 Mar 2010 23:17:23 +0100] rev 1862
scripts/populate: fix handling the forced libraries list-file

If a list-file is used, then each library in the file will be handled
twice (not a real issue, as the second iteration will find the library
already present, just avoid doing the job twice).

2010-03-25scripts/populate: properly locate the sysroot and required tools
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 25 Mar 2010 22:42:00 +0100] rev 1861
scripts/populate: properly locate the sysroot and required tools

This fixes two problems:
- the sysroot might be in a sub-directory (think SYSROOT_DIR_PREFIX)
- it is not needed to have the target tuple to properly detect the sysroot
and the required tools

As a side effect, this script is now no longer dependent on the target
tuple, and in the future, we might be able to share it across many
toolchains (when/if we can install all of them in the same place).

2010-03-24scripts/populate: add -m option, to merge source and dest
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 24 Mar 2010 22:36:51 +0100] rev 1860
scripts/populate: add -m option, to merge source and dest

Merge the source rootfs into the (pre-existing) destination rootfs,
and populate the result accordingly.

2010-03-23scripts/populate: add option to use an alternate sysroot
Nate Case <ncase@xes-inc.com> [Tue, 23 Mar 2010 19:27:41 +0100] rev 1859
scripts/populate: add option to use an alternate sysroot

Add a new command line option, "-r", which allows the user to specify
an alternate sysroot location to copy libraries from. This is useful
when using the toolchain in combination with a separate root filesystem,
or when working with multiple different root filesystems.

Signed-off-by: Nate Case <ncase@xes-inc.com>

2010-03-24binutils/sstrip: fix when sstrip is disabled
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 24 Mar 2010 22:21:52 +0100] rev 1858
binutils/sstrip: fix when sstrip is disabled

2010-03-20cc/gcc: fix building for powerpc for the 4.4.x series
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 20 Mar 2010 18:42:34 +0100] rev 1857
cc/gcc: fix building for powerpc for the 4.4.x series

Reported by: Thomas Petazzoni
http://sourceware.org/ml/crossgcc/2010-03/msg00057.html

Discussions:
http://lists.uclibc.org/pipermail/uclibc/2010-March/043697.html
http://lists.uclibc.org/pipermail/buildroot/2010-March/032790.html
http://ibot.rikers.org/%23uclibc/20100316.html.gz
(search for "copysignl", by kos_tom, blindvt and y_morin)

2010-03-17binutils/sstrip: get rid of ELFkickers
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 17 Mar 2010 00:28:14 +0100] rev 1856
binutils/sstrip: get rid of ELFkickers

ELFkickers are looong dead and unmaintained, and the sstrip
from buildroot is working fine *and* is maintained.

2010-03-17binutils/sstrip: depends on ELF
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 17 Mar 2010 00:24:25 +0100] rev 1855
binutils/sstrip: depends on ELF

No point building sstrip is the target is not ELF.

2010-03-17tools: move sstrip to the binary utilities menu
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 17 Mar 2010 00:21:57 +0100] rev 1854
tools: move sstrip to the binary utilities menu

sstrip is now alone in its 'tools' menu, and we will probably never gain
any other 'tool'. Besides, sstrip is just strip, but a little bit more
agressive, so it deserves going to the 'binary utilities' menu.

2010-03-15debug/gdb: gdb>=7.0 can use MPC, enable for cross-gdb
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 15 Mar 2010 22:02:02 +0100] rev 1853
debug/gdb: gdb>=7.0 can use MPC, enable for cross-gdb

2010-03-20debug/gdb: add handling of 7_0_or_later
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 20 Mar 2010 18:49:15 +0100] rev 1852
debug/gdb: add handling of 7_0_or_later

We'll need to differentiate gdb 7.0 or later, from gdb prior to 7.0

2010-03-15debug/gdb: add option to use GMP and MPFR
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 15 Mar 2010 21:51:20 +0100] rev 1851
debug/gdb: add option to use GMP and MPFR

GMP and MPFR are optional for gdb, so offer a config option.

2010-03-15debug/gdb: can't build a static native gdb if using GMP/MPFR
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 15 Mar 2010 21:44:20 +0100] rev 1850
debug/gdb: can't build a static native gdb if using GMP/MPFR

It is currently impossible to reliably build static GMP/MPFR libs,
so we can't build a static native gdb using them, obviously.

2010-03-15debug/gdb: split menuconfig for easier maintenance
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 15 Mar 2010 21:42:55 +0100] rev 1849
debug/gdb: split menuconfig for easier maintenance

2010-03-05cc/gcc: fix use of companion libraries
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 05 Mar 2010 18:55:25 +0100] rev 1848
cc/gcc: fix use of companion libraries

2010-03-05complibs: hide prompts
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 05 Mar 2010 18:22:53 +0100] rev 1847
complibs: hide prompts

2010-03-19scripts: fix dumping the config for companion libraries for target
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 19 Mar 2010 18:46:57 +0100] rev 1846
scripts: fix dumping the config for companion libraries for target

Companion libraries can be disable for the host, but still used for
the target (eg. binutils or gdb). Dump the version also in this case.