2011-10-18misc: change references to point to the new website
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 18 Oct 2011 20:17:41 +0200] rev 2725
misc: change references to point to the new website

It's been a while now that crosstool-NG has been hosted on it's own
website, and not at my home. Change every reference to the old site
to the new one, everywhere is makes sense to.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-10-16samples: update to latest set of options
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 16 Oct 2011 17:51:42 +0200] rev 2724
samples: update to latest set of options

Update all the samples, so that there is not config-prompt when
recalling samples. This is no upgrade, it's just about having
new options set (y or n) in the samples.

Also, get rid of the armeb-test_nptl-linux-uclibcgnueabi, it's no
longer needed, there's a non-test sample with uClibc NPTL, now.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-10-16arch/powerpc: fix tuple for uClibc
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 16 Oct 2011 17:52:33 +0200] rev 2723
arch/powerpc: fix tuple for uClibc

Changeset #7c288c777455 broke the tuple for uClibc-based
powerpc toolchains, by unconditionally forcing CT_TARGET_SYS
to "gnu".

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-10-16scripts: do not force locale when sorting samples
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 16 Oct 2011 21:48:10 +0200] rev 2722
scripts: do not force locale when sorting samples

Just use whatever the user has set in his/her environment.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-10-07scripts/functions: Fix CT_ExtractGit function.
Esben Haabendal <esben.haabendal@prevas.dk> [Fri, 07 Oct 2011 15:06:44 +0200] rev 2721
scripts/functions: Fix CT_ExtractGit function.

Change CT_ExtractGit so that it clones the repository, instead of just
symlinking it. After cloning, any given ref is checked out, or if no
ref is given, the HEAD of the repository is checked out.

This makes CT_Extract behave similar for git repositories as it does
for tarballs, so that it for example can be used for passing glibc-ports
as a git repository.

Signed-off-by: "Esben Haabendal" <esben.haabendal@prevas.dk>
[yann.morin.1998@anciens.enib.fr: fix incomplete var rename]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-10-13debug/gdb: update Linaro GDB revisions to 2011.10
"Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com> [Thu, 13 Oct 2011 19:16:04 +0200] rev 2720
debug/gdb: update Linaro GDB revisions to 2011.10

Update Linaro GDB with the latest available revisions.

Signed-off-by: "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>

2011-10-13cc/gcc: update Linaro GCC revisions to 2011.10
"Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com> [Thu, 13 Oct 2011 19:11:25 +0200] rev 2719
cc/gcc: update Linaro GCC revisions to 2011.10

Update Linaro GCC with the latest available revisions.

Signed-off-by: "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>

2011-10-16configure: don't check for host system
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 16 Oct 2011 16:21:33 +0200] rev 2718
configure: don't check for host system

This is no longer used.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-10-14scripts: check host features with host compiler
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 14 Oct 2011 22:44:24 +0200] rev 2717
scripts: check host features with host compiler

Currently, we check host feature in ./configure. This works only for
cross toolchains, but not for canadian toolchains. ./configure has
absolutely no way to know what the host for the toolchain will be;
only the build scripts know.

So, move the headers & libraries checks from ./configure to the build
scripts, early enough in the build, but not before we know the host
compiler and other tools.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-10-16config: use '0' for automatic number of jobs
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 16 Oct 2011 13:26:26 +0200] rev 2716
config: use '0' for automatic number of jobs

Also, make it the default.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-09-28docs: add dedication file
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 28 Sep 2011 13:08:18 +0200] rev 2715
docs: add dedication file

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-10-121.12: update version to 1.12.4+hg 1.12
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 12 Oct 2011 00:43:47 +0200] rev 2714
1.12: update version to 1.12.4+hg

2011-10-12Tagging release 1.12.4 1.12
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 12 Oct 2011 00:43:47 +0200] rev 2713
Tagging release 1.12.4

2011-10-121.12: update version to 1.12.4 1.12 crosstool-ng-1.12.4
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 12 Oct 2011 00:43:47 +0200] rev 2712
1.12: update version to 1.12.4

2011-10-11libc/glibc: run ./configure in CONFIG_SHELL 1.12
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 11 Oct 2011 22:21:48 +0200] rev 2711
libc/glibc: run ./configure in CONFIG_SHELL

Tremendously helps when running on at least Ubuntu, with dash as
the system shell (ie. /bin/sh points to dash).

Reported by a few people, of which:
leming, ccct and ccole on IRC

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 30c89d1f74a4fee73517b4ed67e843be6885447e)

2011-10-10complibs/cloog: catch autogen.sh's output 1.12
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 10 Oct 2011 00:00:58 +0200] rev 2710
complibs/cloog: catch autogen.sh's output

Run autogen.sh through CT_DoExecLog to catch its output.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from fcf5c43cf30f11366d4fe16ee19d6c2143985c62)

2011-10-09binutils/binutils: ensure gold is staticaly-linked if needed 1.12
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 09 Oct 2011 15:34:16 +0200] rev 2709
binutils/binutils: ensure gold is staticaly-linked if needed

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 293d8334b913a86c3e5d817dd84e5bc434888251)

2011-10-05Pass CXXFLAGS to binutils/gold. 1.12
Michael Hope <michael.hope@linaro.org> [Wed, 05 Oct 2011 14:15:45 +1300] rev 2708
Pass CXXFLAGS to binutils/gold.

The GOLD linker is written in C++. Pass CT_CFLAGS_FOR_HOST as
CXXFLAGS to configure so that any host specific flags are passed
through.

It feels a bit funny passing CFLAGS as CXXFLAGS, but the PPL and GCC
target rules already do the same.

Signed-off-by: Michael Hope <michael.hope@linaro.org>
(transplanted from 9cd87d279a99bd32a364f12d4b2d6d37e1d9248b)

2011-10-09scripts: execute each steps in a subshell
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 09 Oct 2011 19:19:04 +0200] rev 2707
scripts: execute each steps in a subshell

To avoid variable leakage from one step to another, isolate the
steps from each others by running them in their own sub-shell.

This avoids variables leaking from one step to the others.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-10-11libc/glibc: run ./configure in CONFIG_SHELL
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 11 Oct 2011 22:21:48 +0200] rev 2706
libc/glibc: run ./configure in CONFIG_SHELL

Tremendously helps when running on at least Ubuntu, with dash as
the system shell (ie. /bin/sh points to dash).

Reported by a few people, of which:
leming, ccct and ccole on IRC

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-10-11config: simplify setting CONFIG_SHELL, add a bit to the help entry
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 11 Oct 2011 21:43:42 +0200] rev 2705
config: simplify setting CONFIG_SHELL, add a bit to the help entry

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-10-10complibs/cloog: catch autogen.sh's output
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 10 Oct 2011 00:00:58 +0200] rev 2704
complibs/cloog: catch autogen.sh's output

Run autogen.sh through CT_DoExecLog to catch its output.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-10-08debug/gdb: new option to enable/disable use of python
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 08 Oct 2011 22:57:21 +0200] rev 2703
debug/gdb: new option to enable/disable use of python

Add a new option to enable/disable the Python scripting in gdb.
Hide the option (ie. disable it) when statically linking the cross-gdb.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-10-09binutils/binutils: ensure gold is staticaly-linked if needed
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 09 Oct 2011 15:34:16 +0200] rev 2702
binutils/binutils: ensure gold is staticaly-linked if needed

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-10-05scripts: support extra host compiler flags
Michael Hope <michael.hope@linaro.org> [Wed, 05 Oct 2011 14:19:51 +1300] rev 2701
scripts: support extra host compiler flags

Allow the user to configure extra flags to pass to the host compiler
at build time. Applies to both C and C++.

Useful on Ubuntu to turn off the stack protector and fortify defaults
so the program stands a better chance of running on other distros.

Signed-off-by: Michael Hope <michael.hope@linaro.org>
[yann.morin.1998@anciens.enib.fr: put the custom flags at the end]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-09-29doc: document the description line for the commit message
Michael Hope <michael.hope@linaro.org> [Thu, 29 Sep 2011 15:16:48 +1300] rev 2700
doc: document the description line for the commit message

Documented how to format description lines for packages patches.
Added a note on enforcing Signed-off-by lines.

Signed-off-by: Michael Hope <michael.hope@linaro.org>
[yann.morin.1998@anciens.enib.fr: further describe the desc line]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-10-07libc/glibc: add log messages for glibc addons dirs and symlinks
Esben Haabendal <esben.haabendal@prevas.dk> [Fri, 07 Oct 2011 15:23:47 +0200] rev 2699
libc/glibc: add log messages for glibc addons dirs and symlinks

Signed-off-by: "Esben Haabendal" <esben.haabendal@prevas.dk>
[yann.morin.1998@anciens.enib.fr: fix linewrap-carnage]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-10-06scripts: update config.{guess,sub}
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 06 Oct 2011 00:09:00 +0200] rev 2698
scripts: update config.{guess,sub}

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-10-05Pass CXXFLAGS to binutils/gold.
Michael Hope <michael.hope@linaro.org> [Wed, 05 Oct 2011 14:15:45 +1300] rev 2697
Pass CXXFLAGS to binutils/gold.

The GOLD linker is written in C++. Pass CT_CFLAGS_FOR_HOST as
CXXFLAGS to configure so that any host specific flags are passed
through.

It feels a bit funny passing CFLAGS as CXXFLAGS, but the PPL and GCC
target rules already do the same.

Signed-off-by: Michael Hope <michael.hope@linaro.org>

2011-09-28binutils/binutils: added 2.21.53 snapshot
Michael Hope <michael.hope@linaro.org> [Wed, 28 Sep 2011 15:29:11 +1300] rev 2696
binutils/binutils: added 2.21.53 snapshot

binutils 2.21 doesn't recognise the Cortex-M3 SVC instruction when
assembling with -mcpu=all. This was fixed by the 2.21.53 snapshot and
is needed to build RTOSs such as FreeRTOS.

Signed-off-by: Michael Hope <michael.hope@linaro.org>

2011-09-29config: add a 'auto' value for the number of parallel jobs
Michael Hope <michael.hope@linaro.org> [Thu, 29 Sep 2011 12:40:42 +1300] rev 2695
config: add a 'auto' value for the number of parallel jobs

When CT_PARALLEL_JOBS is -1, set the number of parallel jobs to the
number of online CPUs + 1. Update documentation to match.

I find this useful when building in the cloud. You can use the same
.config file and have the build adapt to the number of processors
available. Limited testing shows that NCPUS+1 is faster than NCPUS+0
or NCPUS+2.

Signed-off-by: Michael Hope <michael.hope@linaro.org>

2011-09-29Makefile: use phony targets
Michael Hope <michael.hope@linaro.org> [Thu, 29 Sep 2011 12:27:54 +1300] rev 2694
Makefile: use phony targets

Add 'build', 'build-*', and 'install' as phony targets to the top level
Makefile.

I tend to do everything in tree with the build in a directory called
'build'. This interfered with the target 'build', making it think the
target was up to date, and stopping scripts/crosstool-NG.sh from being
regenerated.

Added 'install' as I often set the prefix to $PWD/install.

Signed-off-by: Michael Hope <michael.hope@linaro.org>

2011-10-04libc/glibc: spelling fixes in the menuconfig help entries
Michael Hope <michael.hope@linaro.org> [Tue, 04 Oct 2011 10:30:54 +1300] rev 2693
libc/glibc: spelling fixes in the menuconfig help entries

nits:
- fix the spelling of changing.
- 'chose' is the correct past tense.

Signed-off-by: Michael Hope <michael.hope@linaro.org>

2011-09-28debug/gdb: update to the Linaro 2011.09
Michael Hope <michael.hope@linaro.org> [Wed, 28 Sep 2011 15:28:23 +1300] rev 2692
debug/gdb: update to the Linaro 2011.09

Signed-off-by: Michael Hope <michael.hope@linaro.org>
[yann.morin.1998@anciens.enib.fr: split gcc/gdb in two patches]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-09-28cc/gcc: update to the Linaro 2011.09
Michael Hope <michael.hope@linaro.org> [Wed, 28 Sep 2011 15:28:23 +1300] rev 2691
cc/gcc: update to the Linaro 2011.09

Signed-off-by: Michael Hope <michael.hope@linaro.org>
[yann.morin.1998@anciens.enib.fr: split gcc/gdb in two patches]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-09-26kernel/linux: prepare for 3.1 and above
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 26 Sep 2011 22:59:14 +0200] rev 2690
kernel/linux: prepare for 3.1 and above

The real upstream location is not in the '3.0' directory, but
in the '3.x' directory.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-09-25samples: add new mipsel-sde-elf sample.
Kevin Cernekee <cernekee@gmail.com> [Sun, 25 Sep 2011 15:21:29 -0700] rev 2689
samples: add new mipsel-sde-elf sample.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
[yann.morin.1998@anciens.enib.fr: add pointer to ML thread]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-09-241.12: update version to 1.12.3+hg 1.12
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 24 Sep 2011 22:08:46 +0200] rev 2688
1.12: update version to 1.12.3+hg

2011-09-24Tagging release 1.12.3 1.12
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 24 Sep 2011 22:08:46 +0200] rev 2687
Tagging release 1.12.3

2011-09-241.12: update version to 1.12.3 1.12 crosstool-ng-1.12.3
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 24 Sep 2011 22:08:46 +0200] rev 2686
1.12: update version to 1.12.3

2011-09-21kernel/linux: add alternate download locations 1.12
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 21 Sep 2011 22:42:35 +0200] rev 2685
kernel/linux: add alternate download locations

Since kernel.org is dead, and there is no announced or known estimated
time or return to normality, it is impossible to download any kernel at
this time.

Add a known-working mirror.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 7df89370f80537d1b36b2fda70e3a1c6bc237a65)

2011-09-16docs/known-issues: add the infamous "mixed implicit and normal rules" 1.12
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 16 Sep 2011 17:49:28 +0200] rev 2684
docs/known-issues: add the infamous "mixed implicit and normal rules"

make-3.82 now refuses to have both normal and implicit rules in the
same definition, so document the issue with a known workaround.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 8a612563c04c633c675146dd3478f7ee10ec2733)

2011-09-11binutils/binutils: fixup version strings 1.12
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 11 Sep 2011 18:18:53 +0200] rev 2683
binutils/binutils: fixup version strings

Recently, all binutils versions have been renamed after a GPL compliance
issue was found and fixed in binutils;
http://sourceware.org/ml/binutils/2011-08/msg00198.html

Although legacy symlinks have been put in place, we should now use
the new, real version strings.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 346263a0711510a7ac953b1523b6607a1ca53caf)

2011-09-11binutils/binutils: fixup version strings 1.12
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 11 Sep 2011 18:26:12 +0200] rev 2682
binutils/binutils: fixup version strings

Recently, all binutils versions have been renamed after a GPL compliance
issue was found and fixed in binutils;
http://sourceware.org/ml/binutils/2011-08/msg00198.html

Old versions are no-longer available since the rename (eg. 2.19 has been
superseeded by 2.19.1, and only 2.19.1a was regenerated).

Remove now-missing versions.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 7179903f8d2ea15f1dc2606fdb1fb595002f87d7)

2011-09-11debug/gdb: rename patch directories 1.12
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 11 Sep 2011 18:28:45 +0200] rev 2681
debug/gdb: rename patch directories

Missed renaming the patch directories after the version renames... :-(

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from e7266674d492f0c056c79dc45a53b665199ba93c)

2011-09-22kernel/linux: use a custom kernel source directory
Sinseman44 <sinseman44@gmail.com> [Thu, 22 Sep 2011 22:49:38 +0200] rev 2680
kernel/linux: use a custom kernel source directory

Allows using either a tarball or a directory as the custom kernel
source location.

Signed-off-by: Vincent BENOIT <sinseman44@gmail.com>
[yann.morin.1998@anciens.enib.fr: fix space damage, detailed commit message]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-09-241.11: close branch 1.11
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 24 Sep 2011 21:47:47 +0200] rev 2679
1.11: close branch

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-09-241.10: close branch 1.10
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 24 Sep 2011 21:47:28 +0200] rev 2678
1.10: close branch

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-09-21kernel/linux: add alternate download locations
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 21 Sep 2011 22:42:35 +0200] rev 2677
kernel/linux: add alternate download locations

Since kernel.org is dead, and there is no announced or known estimated
time or return to normality, it is impossible to download any kernel at
this time.

Add a known-working mirror.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-09-14cc/gcc: speed up the build a little bit
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 14 Sep 2011 12:59:17 +0200] rev 2676
cc/gcc: speed up the build a little bit

Even if the current process is highly parallel, crosstool-NG spends most
of its time in single-job steps on fast machines (with a 12-CPU system,
I approximate the parallel vs. non-parallel time to be in the order os
1 to 3; that is crostool-NG spends two-thirds of its time running
non-parallel jobs).

Some steps to build gcc can be paralleled, gaining a litle bit of time
on the whole compilation.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-09-17gcc: add support for the PowerPC EABI
Mircea Gherzan <mgherzan@gmail.com> [Sat, 17 Sep 2011 14:30:52 +0200] rev 2675
gcc: add support for the PowerPC EABI

Signed-off-by: Mircea Gherzan <mgherzan@gmail.com>
[yann.morin.1998@anciens.enib.fr: rm trailing space]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-09-16docs/known-issues: add the infamous "mixed implicit and normal rules"
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 16 Sep 2011 17:49:28 +0200] rev 2674
docs/known-issues: add the infamous "mixed implicit and normal rules"

make-3.82 now refuses to have both normal and implicit rules in the
same definition, so document the issue with a known workaround.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-09-13samples: update this ARM sample.
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 13 Sep 2011 00:15:45 +0200] rev 2673
samples: update this ARM sample.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-08-31cc/gcc: libgcc_eh.a may be required, even from the stage-1 compiler
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 31 Aug 2011 16:47:42 +0200] rev 2672
cc/gcc: libgcc_eh.a may be required, even from the stage-1 compiler

Building uClibc with libubacktrace requires libgcc_eh.a to be available,
but gcc does not build it unless it is configured to generate shared libs.

However, libgcc_eh.a does not *require* shared libs support, as it is a
static library.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-09-12cc/gcc: propagate 4.5.2 patchset to 4.5.3
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 12 Sep 2011 18:12:52 +0200] rev 2671
cc/gcc: propagate 4.5.2 patchset to 4.5.3

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-09-02cc/gcc: propagate 4.3.5 patchset to 4.3.6
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 02 Sep 2011 13:45:05 +0200] rev 2670
cc/gcc: propagate 4.3.5 patchset to 4.3.6

They applied cleanly with only offsets

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-08-31libc/uClibc: add patch to fix fork in threads with ARM EABI
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 31 Aug 2011 11:00:35 +0200] rev 2669
libc/uClibc: add patch to fix fork in threads with ARM EABI

uClibc-0.9.32 requires libgcc_eh.a (for ARM EABI), but only when libubacktrace
is enabled. As this is not the default, provide a workaround to disable linking
with libgcc_eh.a if libubacktrace is not selected.

This will however still break if uClibc is configured to enable libubacktrace,
but it requires a fix in gcc, and we can take care of that later.

Reported-by: Grant Edwards <grant.b.edwards@gmail.com>
Reported-by: Tor Krill <tor@codeknot.com>
Tested-by: Tor Krill <tor@codeknot.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-09-12samples: update that mips sample
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 12 Sep 2011 12:54:45 +0200] rev 2668
samples: update that mips sample

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-09-12libc/uClibc: workaround for a MIPS TLS issue
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 12 Sep 2011 14:09:31 +0200] rev 2667
libc/uClibc: workaround for a MIPS TLS issue

Some macros declarations were missing, so we duplicate them.
See the added patch description for more information.

----> THIS IS A DIRTY HACK! <----

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-09-12libc/uClibc: enable NPTL choice for uClibc >= 0.9.32
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 12 Sep 2011 02:37:29 +0200] rev 2666
libc/uClibc: enable NPTL choice for uClibc >= 0.9.32

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-09-11binutils/binutils: add latest version
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 11 Sep 2011 19:54:57 +0200] rev 2665
binutils/binutils: add latest version

Add patches used by buildroot.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-09-11binutils/binutils: fixup version strings
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 11 Sep 2011 18:18:53 +0200] rev 2664
binutils/binutils: fixup version strings

Recently, all binutils versions have been renamed after a GPL compliance
issue was found and fixed in binutils;
http://sourceware.org/ml/binutils/2011-08/msg00198.html

Although legacy symlinks have been put in place, we should now use
the new, real version strings.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-09-11binutils/binutils: fixup version strings
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 11 Sep 2011 18:26:12 +0200] rev 2663
binutils/binutils: fixup version strings

Recently, all binutils versions have been renamed after a GPL compliance
issue was found and fixed in binutils;
http://sourceware.org/ml/binutils/2011-08/msg00198.html

Old versions are no-longer available since the rename (eg. 2.19 has been
superseeded by 2.19.1, and only 2.19.1a was regenerated).

Remove now-missing versions.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-09-11debug/gdb: rename patch directories
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 11 Sep 2011 18:28:45 +0200] rev 2662
debug/gdb: rename patch directories

Missed renaming the patch directories after the version renames... :-(

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-09-09scripts/functions: only use passive FTP
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 09 Sep 2011 15:48:59 +0200] rev 2661
scripts/functions: only use passive FTP

Virtually all FTP server available on-line support passive FTP.
At least, this is the case for the servers crosstool-NG needs to
connect to.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-09-09scripts/functions: only use one download program
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 09 Sep 2011 15:34:04 +0200] rev 2660
scripts/functions: only use one download program

Currently, we use either wget or curl, whichever is installed.
In case both are installed, both are used. This means that it
takes a while trying all extensions.

Remove use of wget, and use only curl.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-09-111.12: update version to 1.12.2+hg 1.12
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 11 Sep 2011 01:03:43 +0200] rev 2659
1.12: update version to 1.12.2+hg

2011-09-11Tagging release 1.12.2 1.12
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 11 Sep 2011 01:03:43 +0200] rev 2658
Tagging release 1.12.2

2011-09-111.12: update version to 1.12.2 1.12 crosstool-ng-1.12.2
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 11 Sep 2011 01:03:43 +0200] rev 2657
1.12: update version to 1.12.2

2011-09-09debug/gdb: update the version strings 1.12
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 09 Sep 2011 14:15:10 +0200] rev 2656
debug/gdb: update the version strings

Almost all versions have been renamed, but the gdb folks did not
setup legacy symlinks.

For more information, see this message:
http://sourceware.org/ml/gdb/2011-09/msg00002.html

Reported-by: ManuelStahl <manuel.stahl@iis.fraunhofer.de>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 32209f462bbb35f3e3c7b260dc643e1183bdd710)

2011-09-07scripts: fix sysroot prefix dir 1.12
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 07 Sep 2011 01:22:37 +0200] rev 2655
scripts: fix sysroot prefix dir

The sysroot prefix dir was broken in #4960f5d9f829 due to a mishap
when making the out-of-sysroot lib/ symlink: the './' was mistakenly
changed into a single '.' .

Although Jonathan suggested restoring the missing '/' to restore it to
normal operation, I prefered using an explicit pushd/popd to be extra
sure of the symlink location and target, along with a fix in the sysroot
relative directory calculation.

Reported-by: Jonathan Grundon <JGrundon@xos.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from e5fc5c9ea78af28d05244ba09cf718cf75470903)

2011-09-09debug/gdb: update the version strings
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 09 Sep 2011 14:15:10 +0200] rev 2654
debug/gdb: update the version strings

Almost all versions have been renamed, but the gdb folks did not
setup legacy symlinks.

For more information, see this message:
http://sourceware.org/ml/gdb/2011-09/msg00002.html

Reported-by: ManuelStahl <manuel.stahl@iis.fraunhofer.de>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-09-07scripts: fix sysroot prefix dir
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 07 Sep 2011 01:22:37 +0200] rev 2653
scripts: fix sysroot prefix dir

The sysroot prefix dir was broken in #4960f5d9f829 due to a mishap
when making the out-of-sysroot lib/ symlink: the './' was mistakenly
changed into a single '.' .

Although Jonathan suggested restoring the missing '/' to restore it to
normal operation, I prefered using an explicit pushd/popd to be extra
sure of the symlink location and target, along with a fix in the sysroot
relative directory calculation.

Reported-by: Jonathan Grundon <JGrundon@xos.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-09-07kernel/linux: fix typo
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 07 Sep 2011 00:20:30 +0200] rev 2652
kernel/linux: fix typo

Finally fix typo introduced in #6eb0189d7225 and partially fixed in
#61ec8b08f98d...

Seems I'm fast at introducing trivial typoes, but bad at fixing them... :-(

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-08-30complibs/gmp: bump version
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 30 Aug 2011 19:38:10 +0200] rev 2651
complibs/gmp: bump version

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-08-30kconfig: print version in .config
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 30 Aug 2011 11:35:29 +0200] rev 2650
kconfig: print version in .config

Having the crosstool-NG version in the .config helps in case we
want to reproduce the toolchain with the exact same version of
crosstool-NG.

This also reverts #bb73e7632b54.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-08-30kernel/linux: fix typoes
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 30 Aug 2011 10:21:45 +0200] rev 2649
kernel/linux: fix typoes

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-08-30kernel/linux: bump versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 30 Aug 2011 09:43:48 +0200] rev 2648
kernel/linux: bump versions

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-08-28libc/newlib: add a config option allowing to disable builtin syscalls
Kévin PETIT <kpet@free.fr> [Sun, 28 Aug 2011 20:12:26 +0200] rev 2647
libc/newlib: add a config option allowing to disable builtin syscalls

Allows to choose if one wants to keep or not the syscalls that are provided with
newlib. It passes the --disable-newlib-supplied-syscalls or
--enable-newlib-supplied-syscalls to the configure script. If one chooses to
disable the builtin syscalls, he/she will have to write his/her own. This can
be usefull to port newlib to a new platform/board.

Signed-off-by: Kévin PETIT <kpet@free.fr>

2011-08-26configure: xz-utils alone can also handle LZMA-compressed tarballs
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 26 Aug 2011 00:07:51 +0200] rev 2646
configure: xz-utils alone can also handle LZMA-compressed tarballs

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-08-25configure: check for lzma
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 25 Aug 2011 18:30:18 +0200] rev 2645
configure: check for lzma

Some packages are available as LZMA tarballs. LZMA is a relatively recent
compression algorithm; it's slightly better than bzip2, but offers much
faster decompression. LZMA is now deprecated in favor of XZ, but some
packages switched to LZMA when XZ was not yet available, or still in its
infancy. Latest XZ (which totaly obsoletes LZMA) offers a backward LZMA-
compatible utility, so we can check for 'lzma' nonetheless.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-08-26configure: fix typo in xz-utils warning message
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 26 Aug 2011 00:05:20 +0200] rev 2644
configure: fix typo in xz-utils warning message

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-08-241.12: update version to 1.12.1+hg 1.12
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 24 Aug 2011 00:12:41 +0200] rev 2643
1.12: update version to 1.12.1+hg

2011-08-24Tagging release 1.12.1 1.12
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 24 Aug 2011 00:12:41 +0200] rev 2642
Tagging release 1.12.1

2011-08-241.12: update version to 1.12.1 1.12 crosstool-ng-1.12.1
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 24 Aug 2011 00:12:41 +0200] rev 2641
1.12: update version to 1.12.1

2011-08-22debug/ltrace: Fix HOST_OS and ar 1.12
Titus von Boxberg <titus@v9g.de> [Mon, 22 Aug 2011 09:26:02 +0200] rev 2640
debug/ltrace: Fix HOST_OS and ar

HOST_OS really is the target OS. Allow setting it for configure
via an environment variable.
libltrace.a should have an index:
Allow ar to be set as an environment variable, and generate
an index in this lib.

Reported-by: "Guylhem Aznar" <crossgcc@guylhem.net>
Signed-off-by: "Titus von Boxberg" <titus@v9g.de>
(transplanted from f86af11138ea2b2ecd4876d9c6c24f58ba4d68ac)

2011-08-22debug/gdb: correct compilation error when stpcpy is a define 1.12
Titus von Boxberg <titus@v9g.de> [Mon, 22 Aug 2011 09:35:29 +0200] rev 2639
debug/gdb: correct compilation error when stpcpy is a define

On OSX stpcpy is a define which is not recognized by gdb's configure.
This results in a compilation error.

Reported-by: "Guylhem Aznar" <crossgcc@guylhem.net>
Signed-off-by: "Titus von Boxberg" <titus@v9g.de>
(transplanted from 8cadd5a4c6113f9c7107f1c8d3b29ef310f1ed30)

2011-08-22libc/uClibc: portability fixes to install_headers 1.12
Titus von Boxberg <titus@v9g.de> [Mon, 22 Aug 2011 09:38:19 +0200] rev 2638
libc/uClibc: portability fixes to install_headers

Add patch files for uClibc-0.9.30:
extra/scripts/install_headers.sh: find must be called with path.
extra/scripts/unifdef.c: getline is declared in <stdio.h>, use different name.

Reported-by: "Guylhem Aznar" <crossgcc@guylhem.net>
Reported-by: "Titus von Boxberg" <titus@v9g.de>
Signed-off-by: "Titus von Boxberg" <titus@v9g.de>
(transplanted from b745004e1d29921a86b73694d912f1e1277db3e1)

2011-08-22configure: require libtoolize, create wrapper to it 1.12
Titus von Boxberg <titus@v9g.de> [Mon, 22 Aug 2011 09:40:31 +0200] rev 2637
configure: require libtoolize, create wrapper to it

libtoolize must be checked_for and there needs to be a wrapper
that points to GNU libtoolize since that may be installed
as glibtoolize.
This fixes a problem with building Cloog/PPL that was

Reported-by: "Pierrick Brossin" <pierrick@bs-network.net>
Signed-off-by: "Titus von Boxberg" <titus@v9g.de>
(transplanted from c7c9e98d36d8a6a49fcd5f3836d5797bb965eba7)

2011-08-22configure: fix --with-prog=[...] 1.12
Titus von Boxberg <titus@v9g.de> [Mon, 22 Aug 2011 09:41:35 +0200] rev 2636
configure: fix --with-prog=[...]

check_for didn't set variable 'where' when the path to a prog
was passed manually "(cached)".

Signed-off-by: "Titus von Boxberg" <titus@v9g.de>
(transplanted from b1be254591e7b524a0b06a2247a9331ebe0faf1d)

2011-08-21complibs/libelf: use target ranlib 1.12
Titus von Boxberg <titus@v9g.de> [Sun, 21 Aug 2011 17:54:12 +0200] rev 2635
complibs/libelf: use target ranlib

For portability, the right ranlib for the target must be passed to
libelf's configure.

Signed-off-by: "Titus von Boxberg" <titus@v9g.de>
(transplanted from e4a6fefcb0f5ecbcade3ae5edbe609560843aed1)

2011-08-17debug/gdb: we don't care if the host tic is shared or static 1.12
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 17 Aug 2011 23:53:49 +0200] rev 2634
debug/gdb: we don't care if the host tic is shared or static

Because we need our own host tic, we have to build it; and we do build
it statically for now.

But as MacOS/Darwin/Whatever-you-call-it does not support static linking
(what a shame!), it fails.

Anyway, we don't really care it being shared, in the end.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 41bd6777fa4f767d6264db7c58986920014fd708)

2011-08-19scripts: simplify and fix the toolchain config script 1.12
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 19 Aug 2011 00:52:05 +0200] rev 2633
scripts: simplify and fix the toolchain config script

The script that is installed, and which sole purpose is to dump
the .config that was used to build the toolchain, is pure insanity.

Let's make it much, much more simpler...

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 814ea73df7e0fab3db1cbe7623932714359c732b)

2011-08-13libc/uClibc: force use of ctor/dtor 1.12
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 13 Aug 2011 00:05:51 +0200] rev 2632
libc/uClibc: force use of ctor/dtor

Although ctor/dtor do not seem strictly required, missing them proves
rather inconvenient, as ld can't link binaries.

Reported-by: John Spencer <maillist-uclibc@barfooze.de> (sh4rm4 on IRC)
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from fac4018427d2920607e8f924672458be1b366551)

2011-08-22configure: use def_bool for available features
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 22 Aug 2011 17:13:42 +0200] rev 2631
configure: use def_bool for available features

It's one line shorter, and easier to read.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-08-22debug/ltrace: Fix HOST_OS and ar
Titus von Boxberg <titus@v9g.de> [Mon, 22 Aug 2011 09:26:02 +0200] rev 2630
debug/ltrace: Fix HOST_OS and ar

HOST_OS really is the target OS. Allow setting it for configure
via an environment variable.
libltrace.a should have an index:
Allow ar to be set as an environment variable, and generate
an index in this lib.

Reported-by: "Guylhem Aznar" <crossgcc@guylhem.net>
Signed-off-by: "Titus von Boxberg" <titus@v9g.de>

2011-08-22debug/gdb: correct compilation error when stpcpy is a define
Titus von Boxberg <titus@v9g.de> [Mon, 22 Aug 2011 09:35:29 +0200] rev 2629
debug/gdb: correct compilation error when stpcpy is a define

On OSX stpcpy is a define which is not recognized by gdb's configure.
This results in a compilation error.

Reported-by: "Guylhem Aznar" <crossgcc@guylhem.net>
Signed-off-by: "Titus von Boxberg" <titus@v9g.de>

2011-08-22docs: Document usage with Xcode 4.1
Titus von Boxberg <titus@v9g.de> [Mon, 22 Aug 2011 09:36:30 +0200] rev 2628
docs: Document usage with Xcode 4.1

With Xcode 4.1 'gcc' is symlinked llvm-gcc-4.2 which cannot bootstrap
other gccs.
See http://llvm.org/bugs/show_bug.cgi?id=9571

On my machine the faulty gcc is
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)

Document a workaround.

Signed-off-by: "Titus von Boxberg" <titus@v9g.de>

2011-08-22libc/uClibc: portability fixes to install_headers
Titus von Boxberg <titus@v9g.de> [Mon, 22 Aug 2011 09:38:19 +0200] rev 2627
libc/uClibc: portability fixes to install_headers

Add patch files for uClibc-0.9.30:
extra/scripts/install_headers.sh: find must be called with path.
extra/scripts/unifdef.c: getline is declared in <stdio.h>, use different name.

Reported-by: "Guylhem Aznar" <crossgcc@guylhem.net>
Reported-by: "Titus von Boxberg" <titus@v9g.de>
Signed-off-by: "Titus von Boxberg" <titus@v9g.de>

2011-08-22configure: require libtoolize, create wrapper to it
Titus von Boxberg <titus@v9g.de> [Mon, 22 Aug 2011 09:40:31 +0200] rev 2626
configure: require libtoolize, create wrapper to it

libtoolize must be checked_for and there needs to be a wrapper
that points to GNU libtoolize since that may be installed
as glibtoolize.
This fixes a problem with building Cloog/PPL that was

Reported-by: "Pierrick Brossin" <pierrick@bs-network.net>
Signed-off-by: "Titus von Boxberg" <titus@v9g.de>

2011-08-22configure: fix --with-prog=[...]
Titus von Boxberg <titus@v9g.de> [Mon, 22 Aug 2011 09:41:35 +0200] rev 2625
configure: fix --with-prog=[...]

check_for didn't set variable 'where' when the path to a prog
was passed manually "(cached)".

Signed-off-by: "Titus von Boxberg" <titus@v9g.de>

2011-08-21complibs/libelf: use target ranlib
Titus von Boxberg <titus@v9g.de> [Sun, 21 Aug 2011 17:54:12 +0200] rev 2624
complibs/libelf: use target ranlib

For portability, the right ranlib for the target must be passed to
libelf's configure.

Signed-off-by: "Titus von Boxberg" <titus@v9g.de>

2011-08-21configure: recognise and handle --program-transform-name
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 21 Aug 2011 23:11:26 +0200] rev 2623
configure: recognise and handle --program-transform-name

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-08-19configure: recognise and handle --program-suffix
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 19 Aug 2011 22:43:01 +0200] rev 2622
configure: recognise and handle --program-suffix

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-08-17configure: handle --program-prefix
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 17 Aug 2011 23:05:01 +0200] rev 2621
configure: handle --program-prefix

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-08-19Makefile: introduce PROG_NAME to contain the 'ct-ng' executable name
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 19 Aug 2011 22:53:48 +0200] rev 2620
Makefile: introduce PROG_NAME to contain the 'ct-ng' executable name

With the upcomming --program-{prefix,suffix,transform-name} options,
we'll have a need to centralise the actual executable name, that is
now no longer be a constant.

Rather than spread the prefix/suffix through-out the code, just
centralise the name setting in one place. Beside, transform-name
would not be possible without setting the name at a single location.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-08-17configure: document ignored switches
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 17 Aug 2011 22:23:21 +0200] rev 2619
configure: document ignored switches

Autostuff tradiotionnally have some switches to set host, build and
target systems, static or shared libs, and a bunch of others...

In the crosstool-NG case, they do not matter, as crosstool-NG is
just a set of scripts (there are C files, but they are compiled
after installation, at runtime, so it does not count).

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-08-21libc/glibc: change default of "forced unwind" to 'y'
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 21 Aug 2011 22:14:39 +0200] rev 2618
libc/glibc: change default of "forced unwind" to 'y'

Virtually all our targets do support stack unwinding. For some of
them, ./configure can't detect that, and the build fails later on.

So, default to force unwind, and let the user disable it if it
breaks in his/her case.

The previous changeset (f44286235a07) was empty, as spotted by Benoît.

Reported-by: Benoît THÉBAUDEAU <benoit.thebaudeau@advansee.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-08-17debug/gdb: we don't care if the host tic is shared or static
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 17 Aug 2011 23:53:49 +0200] rev 2617
debug/gdb: we don't care if the host tic is shared or static

Because we need our own host tic, we have to build it; and we do build
it statically for now.

But as MacOS/Darwin/Whatever-you-call-it does not support static linking
(what a shame!), it fails.

Anyway, we don't really care it being shared, in the end.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-08-18debug/gdb: use ncurses-5.9
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 18 Aug 2011 23:52:47 +0200] rev 2616
debug/gdb: use ncurses-5.9

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-08-16kernel/linux: fix using custom tarball
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 16 Aug 2011 22:30:00 +0200] rev 2615
kernel/linux: fix using custom tarball

The custom-tarball symlink was created in CT_SRC_DIR, when it
should be created in CT_TARBALLS_DIR.

Reported-by: Guylhem Aznar <crossgcc@guylhem.net>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-08-19scripts: simplify and fix the toolchain config script
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 19 Aug 2011 00:52:05 +0200] rev 2614
scripts: simplify and fix the toolchain config script

The script that is installed, and which sole purpose is to dump
the .config that was used to build the toolchain, is pure insanity.

Let's make it much, much more simpler...

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-08-19libc/glibc: change default of "forced unwind" to 'y'
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 19 Aug 2011 00:35:26 +0200] rev 2613
libc/glibc: change default of "forced unwind" to 'y'

Virtually all our targets do support stack unwinding. For some of
them, ./configure can't detect that, and the build fails later on.

So, default to force unwind, and let the user disable it if it
breaks in his/her case.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-08-18debug/gdb: update GDB revisions
"Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com> [Thu, 18 Aug 2011 16:05:48 +0200] rev 2612
debug/gdb: update GDB revisions

Update GDB with the latest available revisions.

Signed-off-by: "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>

2011-08-18cc/gcc: update Linaro GCC revisions
"Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com> [Thu, 18 Aug 2011 15:34:17 +0200] rev 2611
cc/gcc: update Linaro GCC revisions

Update Linaro GCC with the latest available revisions.

Signed-off-by: "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>

2011-08-18kernel/linux: add latest versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 18 Aug 2011 00:03:02 +0200] rev 2610
kernel/linux: add latest versions

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-08-14scripts/functions: add xz support
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 14 Aug 2011 17:51:38 +0200] rev 2609
scripts/functions: add xz support

Add support for the new XZ-compressed tarballs. At least glibc
uses that new format.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-05-04scripts/functions: test for decompressors before use
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 04 May 2011 00:04:23 +0200] rev 2608
scripts/functions: test for decompressors before use

./configure does check for the presence of gz and bzip2, so we can
safely use them in the build scripts.

On the other hand, more recent formats (eg. XZ) are not yet widely
available, and we do not want, and can't, force the user to install
them as a pre-requisite.

So, build up a list of allowed tarball formats based on the available
decompressors. For no, this is a static list, but the upcoming XZ
support will conditionnaly add to this list.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-08-10configure: add test for xz-utils
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 10 Aug 2011 23:13:46 +0200] rev 2607
configure: add test for xz-utils

Some upstream now release tarballs compressed with xz, along with the
more traditional bzip2 and/or gzip tarballs. xz (and its predecessor
lzma) achieves better compression, so is a good candidate to shorten
the time it takes to download the source tarballs.

Enable downloading xz-cmopressed tarballs if the user has xz-utils.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-08-14configure: do not require lzma
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 14 Aug 2011 16:06:20 +0200] rev 2606
configure: do not require lzma

Nothing uses lzma now, so we can get rid of it.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>