2011-11-14arch/sh: use the floating-point string option in tests
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 14 Nov 2011 18:51:20 +0100] rev 2760
arch/sh: use the floating-point string option in tests

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

2011-11-17arch/x86: prescott is an i686
Titus von Boxberg <titus@v9g.de> [Thu, 17 Nov 2011 14:18:44 +0100] rev 2759
arch/x86: prescott is an i686

let CT_ARCH_ARCH=prescott result in a i686 tuple prefix

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

2011-10-16complibs/cloog: auto-reconf for 0.15.10 and later
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 16 Oct 2011 15:10:29 +0200] rev 2758
complibs/cloog: auto-reconf for 0.15.10 and later

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

2011-10-16complibs/cloog: fix extraction
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 16 Oct 2011 14:58:29 +0200] rev 2757
complibs/cloog: fix extraction

In the early days, cloog-ppl was bizarrely packaged: the first tarball
did not contain the version in the name of the extracted directory, so
we had to play tricks.

Nowadays, however, the first component of the path are stripped when
extracting a tarball, which means that the created directory will
always be properly named. So, our old tricks do no longer work, and
worse, they break the build.

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

2011-10-16complibs/mpfr: update to 3.1.0
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 16 Oct 2011 14:38:52 +0200] rev 2756
complibs/mpfr: update to 3.1.0

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

2011-11-15debug/gdb: fix tic install path, tell ncurses where to find it 1.13
Willy Tarreau <w@1wt.eu> [Tue, 15 Nov 2011 19:11:57 +0100] rev 2755
debug/gdb: fix tic install path, tell ncurses where to find it

ncurses 5.9 wants tic to be either one of:
- $TIC_PATH
- /usr/bin/tic

Of course, se do not want the latter, for it can be incompatible if the
ncurses in the build system is too old (eg. RHEL 5.6, Debian Lenny...).
So, force TIC_PATH to the location of our own tic.

Also, install tic alongside the other build tools, not in a sub-dir
of the toolchain installation dir.

Signed-off-by: Willy Tarreau <w@1wt.eu>
[yann.morin.1998@anciens.enib.fr: install in builtools/bin, move TIC_PATH]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from bd17cca444ae09af0aae3e2390fa068147e2f4e3)

2011-11-17configure: do not use '@' in version string
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 17 Nov 2011 01:14:12 +0100] rev 2754
configure: do not use '@' in version string

Using an '@' in the version string breaks the gcc/glibc/gdb manuals.
Use a scheme similar to Debian, with a plus '+' instead of the '@',
as suggested by Michael Hope.

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

2011-11-16docs: --target versus --host
Trevor Woerner <twoerner@gmail.com> [Wed, 16 Nov 2011 16:06:42 -0500] rev 2753
docs: --target versus --host

In the very beginnings, eons ago, autotools also got confused by this
whole build vs. host vs. target, and got it wrong. Now they fixed it,
but they want to keep backward compatibility, so the --target is still
recongised, although ./configure will complain if you do so. It is
better to use --host.

Signed-off-by: "Trevor Woerner" <twoerner@gmail.com>
[yann.morin.1998@anciens.enib.fr: add build/host clarification]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-11-15libc/glibc: add 2.14.1
Willy Tarreau <w@1wt.eu> [Tue, 15 Nov 2011 19:11:57 +0100] rev 2752
libc/glibc: add 2.14.1

Signed-off-by: Willy Tarreau <w@1wt.eu>

2011-11-15debug/gdb: fix tic install path, tell ncurses where to find it
Willy Tarreau <w@1wt.eu> [Tue, 15 Nov 2011 19:11:57 +0100] rev 2751
debug/gdb: fix tic install path, tell ncurses where to find it

ncurses 5.9 wants tic to be either one of:
- $TIC_PATH
- /usr/bin/tic

Of course, se do not want the latter, for it can be incompatible if the
ncurses in the build system is too old (eg. RHEL 5.6, Debian Lenny...).
So, force TIC_PATH to the location of our own tic.

Also, install tic alongside the other build tools, not in a sub-dir
of the toolchain installation dir.

Signed-off-by: Willy Tarreau <w@1wt.eu>
[yann.morin.1998@anciens.enib.fr: install in builtools/bin, move TIC_PATH]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-11-14cc/gcc: update Linaro GCC revisions to 2011.11
"Benoît Thébaudeau" <benoit.thebaudeau@advansee.com> [Mon, 14 Nov 2011 13:29:12 +0100] rev 2750
cc/gcc: update Linaro GCC revisions to 2011.11

Update Linaro GCC with the latest available revisions.

Signed-off-by: "Benoît Thébaudeau" <benoit.thebaudeau@advansee.com>

2011-11-14configure: fix version string breakage
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 14 Nov 2011 18:12:55 +0100] rev 2749
configure: fix version string breakage

As we use the directory names as Makefile targets, they can not contain any
column ':', or else make will complain about 'multiple target patterns'.

Replace the offending ':' with a dash '-', as Titus suggested.

Reported-by: Erdem Budak <erdembudak@hotmail.com>
Reported-by: Titus von Boxberg <titus@v9g.de>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-11-131.13: update version to 1.13.1+hg 1.13
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 13 Nov 2011 21:29:38 +0100] rev 2748
1.13: update version to 1.13.1+hg

2011-11-13Tagging release 1.13.1 1.13
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 13 Nov 2011 21:29:38 +0100] rev 2747
Tagging release 1.13.1

2011-11-131.13: update version to 1.13.1 1.13 crosstool-ng-1.13.1
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 13 Nov 2011 21:29:38 +0100] rev 2746
1.13: update version to 1.13.1

2011-11-13configure: compute a simpler version string
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 13 Nov 2011 18:24:36 +0100] rev 2745
configure: compute a simpler version string

Compute a simpler, yet still completely descriptive, version string.

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

2011-11-13configure: add support for helper script to compute version string
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 13 Nov 2011 17:48:17 +0100] rev 2744
configure: add support for helper script to compute version string

Some projects are using (or planning to use) crosstool-NG, and are storing
it in their VCS, which might not be Mercurial. At the same time, those
projects may want to track development snapshots versions the way we do
with the Hg identity string (hg id).

Provide a way for these project to do so, without having to patch
./configure, and maintain that patch over-and-over again.

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

2011-11-13docs: remove dedication file
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 13 Nov 2011 17:39:55 +0100] rev 2743
docs: remove dedication file

This does in no way mean that Cédric will be forgotten.
RIP, Cédric...

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

2011-11-13kernel/linux: missed porting the 3.0.8 patchset to 3.0.9
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 13 Nov 2011 15:46:33 +0100] rev 2742
kernel/linux: missed porting the 3.0.8 patchset to 3.0.9

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

2011-11-13kernel/linux: update to latest versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 13 Nov 2011 12:38:58 +0100] rev 2741
kernel/linux: update to latest versions

Add latest versions.
Remove versions that disapeared during the kernel.org debacle.

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

2011-10-19arch/arm: ARM supports the softfp convention
Michael Hope <michael.hope@linaro.org> [Wed, 19 Oct 2011 15:27:32 +1300] rev 2740
arch/arm: ARM supports the softfp convention

ARM compilers can be built for soft float (software only, floats in
core registers), hard float (uses floating point instructions, floats
in FPU registers), or the half-way house softfp (uses floating point
instructions, floats in core registers).

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

2011-10-19arch: add softfp support
Michael Hope <michael.hope@linaro.org> [Wed, 19 Oct 2011 15:27:32 +1300] rev 2739
arch: add softfp support

Some architectures support a mixed hard/soft floating point, where
the compiler emits hardware floating point instructions, but passes
the operands in core (aka integer) registers.

For example, ARM supports this mode (to come in the next changeset).

Add support for softfp cross compilers to the GCC and GLIBC
configuration. Needed for Ubuntu and other distros that are softfp.

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

2011-10-19scripts: use the hardfloat option to set configure and CFLAGS
Michael Hope <michael.hope@linaro.org> [Wed, 19 Oct 2011 15:27:32 +1300] rev 2738
scripts: use the hardfloat option to set configure and CFLAGS

When hardfloat is selected, we need to pass that selection down to
./configure and in the CFLAGS.

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

2011-10-19scripts: introduce float type as a string
Michael Hope <michael.hope@linaro.org> [Wed, 19 Oct 2011 15:27:32 +1300] rev 2737
scripts: introduce float type as a string

With the upcoming softfp support, the case..esac test would become
a bit convoluted if it were to test three different booleans.

Introduce a new blind string config option that defaults to the
selected floating point type used.

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

2011-11-04kernel/linux: fix packed attribute in exported headers 1.13
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 04 Nov 2011 19:22:29 +0100] rev 2736
kernel/linux: fix packed attribute in exported headers

UBI headers (and maybe others as well) are broken because the 'packed'
attribute is not sanitised when the headers are exported to userspace.

Apply the fix from upstream:
https://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff;h=f210735fe2f17a6225432ee3d1239bcf23a8659c

(Also, buildroot does the same, BTW)

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

2011-11-04kernel/linux: fix packed attribute in exported headers
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 04 Nov 2011 19:22:29 +0100] rev 2735
kernel/linux: fix packed attribute in exported headers

UBI headers (and maybe others as well) are broken because the 'packed'
attribute is not sanitised when the headers are exported to userspace.

Apply the fix from upstream:
https://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff;h=f210735fe2f17a6225432ee3d1239bcf23a8659c

(Also, buildroot does the same, BTW)

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

2011-11-02kernel/linux: update revisions
"Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com> [Wed, 02 Nov 2011 13:35:06 +0100] rev 2734
kernel/linux: update revisions

Update Linux with the latest available revisions.

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

2011-10-26debug/strace: Add strace-4.6
Bryan Hundven <bryanhundven@gmail.com> [Wed, 26 Oct 2011 15:44:26 -0700] rev 2733
debug/strace: Add strace-4.6

Now that xz support is in crosstool-ng, Add strace-4.6.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>

2011-10-26cc/gcc: Add gcc-4.6.2
Bryan Hundven <bryanhundven@gmail.com> [Wed, 26 Oct 2011 14:25:13 -0700] rev 2732
cc/gcc: Add gcc-4.6.2

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>

2011-10-241.13: update version to 1.13.0+hg 1.13
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 24 Oct 2011 22:06:36 +0200] rev 2731
1.13: update version to 1.13.0+hg

2011-10-24Tagging release 1.13.0 1.13
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 24 Oct 2011 22:06:36 +0200] rev 2730
Tagging release 1.13.0

2011-10-241.13: create maintenance branch, update version to 1.13.0 1.13 crosstool-ng-1.13.0
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 24 Oct 2011 22:06:36 +0200] rev 2729
1.13: create maintenance branch, update version to 1.13.0

2011-10-241.12: close branch 1.12
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 24 Oct 2011 22:03:32 +0200] rev 2728
1.12: close branch

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

2011-10-21scripts: fix missing space when using CT_EXTRA_FLAGS_FOR_HOST
Michael Hope <michael.hope@linaro.org> [Fri, 21 Oct 2011 03:29:18 +0200] rev 2727
scripts: fix missing space when using CT_EXTRA_FLAGS_FOR_HOST

CT_EXTRA_FLAGS_FOR_HOST needs a preceding space to separate it from
any other options that have already been set.

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

2011-10-20samples: set vendor string in all samples
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 20 Oct 2011 23:12:16 +0200] rev 2726
samples: set vendor string in all samples

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

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>

2011-08-14scripts/functions: commonalise tar options in CT_EXtract
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 14 Aug 2011 17:28:35 +0200] rev 2605
scripts/functions: commonalise tar options in CT_EXtract

This shortens command lines, so it's good! :-)

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

2011-08-14kernel/linux: remove check for lzma tarballs
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 14 Aug 2011 16:07:03 +0200] rev 2604
kernel/linux: remove check for lzma tarballs

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

2011-08-14kernel/linux: simplify custom tarball handling
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 14 Aug 2011 19:59:02 +0200] rev 2603
kernel/linux: simplify custom tarball handling

Simplify the way the custom tarball is handled:
- fake version="custom"
- at download, simply link the custom tarball to:
"linux-custom.${custom_extension}"
- at extract, the above allows to simply extract "linux-${LINUX_VERSION}"
where LINUX_VERISON is set to the fake version="custom"

Not that much convoluted, in fact... :-/

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

2011-08-14kernel/linux: deprecate copying headers from pre-instaleld headers
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 14 Aug 2011 16:05:33 +0200] rev 2602
kernel/linux: deprecate copying headers from pre-instaleld headers

No-one ever inquired about this feature. Due to the way it works, it is
rather unlikely that every user used a properly-formatted tarball, or a
properly structured directory as imput.

Beside, it is not really easy to maintain: I just spent one full day
remembering how it worked... Sigh... :-(

Just deprecate this, until next release, or until someone complains.

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

2011-08-14samples: do not use the mirror by default
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 14 Aug 2011 17:18:32 +0200] rev 2601
samples: do not use the mirror by default

As the mirror is always tried first, and the default is my server,
it means every download will first hit my server. As I do not have
much mirrored there, it means a lot of time is lost.

Disable use of the mirror for all samples, except the one that does
need it for the uClibc snapshot.

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

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

2011-08-10scripts/functions: remove messages about failed downloads
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 10 Aug 2011 23:09:06 +0200] rev 2599
scripts/functions: remove messages about failed downloads

When downloading via svn/cvs/... an attempt to retrieve from the
mirror is made. If the mirror does not have the required tarball,
an error message is printed. This is misleading, as the download
may later succeed via svn/cvs/...

Remove the messages about failed downloads altogether.

At the same time, use "if ... then ... fi" instead of "... && ..."

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

2011-08-09configure: more autostuff compatibility 1.12
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 09 Aug 2011 22:10:57 +0200] rev 2598
configure: more autostuff compatibility

Ignore --program-prefix=...

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

2011-08-09configure: more autostuff compatibility
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 09 Aug 2011 22:10:57 +0200] rev 2597
configure: more autostuff compatibility

Ignore --program-prefix=...

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

2011-08-08kerenl/linux: update to latest versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 08 Aug 2011 21:21:38 +0200] rev 2596
kerenl/linux: update to latest versions

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

2011-08-02scripts: try the mirror even if downloads are forbidden
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 02 Aug 2011 23:10:37 +0200] rev 2595
scripts: try the mirror even if downloads are forbidden

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

2011-08-03scripts/functions: use array variables for URLs list
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 03 Aug 2011 00:00:44 +0200] rev 2594
scripts/functions: use array variables for URLs list

This is needed later, when we'll conditionnally use both the
upstream and the mirror URLs.

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

2011-08-02scripts/functions: always prefer the mirror
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 02 Aug 2011 23:11:25 +0200] rev 2593
scripts/functions: always prefer the mirror

Currently, the mirror can be used either:
- as a fallback in case upstream is unavailable (default behavior)
- as the preferred source for downloads

But the most common use-case seems to provide a truely-LAN mirror
to speed up downloads in big corpos', and/or provide a 'trusted'
source for the tarballs.

So, make the following changes;
- if a mirror is specified, always try that before trying upstream

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

2011-08-02scripts/functions: cvs retrieval first tries the mirror for tarballs
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 02 Aug 2011 18:26:53 +0200] rev 2592
scripts/functions: cvs retrieval first tries the mirror for tarballs

The cvs download helper looks for the local tarballs dir to see if it
can find a pre-downloaded tarball, and if it does not find it, does
the actual fetch to upstream via cvs.

In the process, it does not even try to get a tarball from the local
mirror, which can be useful if the mirror has been pre-populated
manually (or with a previously downloaded tree).

Fake a tarball get with the standard tarball-download helper, but
without specifying any upstream URL, which makes the helper directly
try the LAN mirror.

Of course, if no mirror is specified, no URL wil be available, and
the standard cvs retrieval will kick in.

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

2011-08-01configure: do not require svn
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 01 Aug 2011 22:46:57 +0200] rev 2591
configure: do not require svn

svn is needed to download eglibc from the upstream repository.
In some situations, though, it can happen that:
- the developpers' machines do not have svn
- a LAN mirror has been set-up with pre-downloaded eglibc tarballs
In this case, it makes sense not to hard-depend on svn.

So, if svn is missing, just say so, and add a comment in the
menuconfig.

Reported-by: ANDY KENNEDY <ANDY.KENNEDY@adtran.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-08-02scripts/functions: svn retrieval first tries the mirror for tarballs
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 02 Aug 2011 18:28:10 +0200] rev 2590
scripts/functions: svn retrieval first tries the mirror for tarballs

The svn download helper looks for the local tarballs dir to see if it
can find a pre-downloaded tarball, and if it does not find it, does
the actual fetch to upstream via svn.

In the process, it does not even try to get a tarball from the local
mirror, which can be useful if the mirror has been pre-populated
manually (or with a previously downloaded tree).

Fake a tarball get with the standard tarball-download helper, but
without specifying any upstream URL, which makes the helper directly
try the LAN mirror.

Of course, if no mirror is specified, no URL wil be available, and
the standard svn retrieval will kick in.

Reported-by: ANDY KENNEDY <ANDY.KENNEDY@adtran.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-08-01scripts/functions: if no upstream URL is given, silently ignore that
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 01 Aug 2011 18:56:15 +0200] rev 2589
scripts/functions: if no upstream URL is given, silently ignore that

When retrieving tarballs from upstream, if no URL was given, do not
fail; simmply ignore that fact.

This will be used later when the SVN helper will call the standard
helper to try the LAN mirror before trying svn.

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

2011-07-29libc: remove unneeded glibc/eglibc common functions
"Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com> [Fri, 29 Jul 2011 15:30:58 +0200] rev 2588
libc: remove unneeded glibc/eglibc common functions

do_libc_locales_extract() and do_libc_locales() in glibc-eglibc.sh-common have
been overridden for both glibc and eglibc, so they can now be removed, which
this patch does.

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

2011-07-29libc/glibc: add partial support for locales
"Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com> [Fri, 29 Jul 2011 15:30:53 +0200] rev 2587
libc/glibc: add partial support for locales

This patch adds partial support for glibc locales.

For now, it only generates the appropriate locales when the host and the target
have the same endianness and uint32_t alignment.

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

2011-07-29libc/eglibc: add support for locales
"Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com> [Fri, 29 Jul 2011 14:42:20 +0200] rev 2586
libc/eglibc: add support for locales

This patch adds support for eglibc locales.

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

2011-07-29libc: create an infrastructure to build and install the libc locales
"Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com> [Fri, 29 Jul 2011 13:25:57 +0200] rev 2585
libc: create an infrastructure to build and install the libc locales

This patch adds a common glibc/eglibc infrastructure to build and install the
libc locales.

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

2011-08-011.12: update version to 1.12.0+hg 1.12
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 01 Aug 2011 01:21:35 +0200] rev 2584
1.12: update version to 1.12.0+hg

2011-08-01Tagging release 1.12.0 1.12
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 01 Aug 2011 01:21:35 +0200] rev 2583
Tagging release 1.12.0

2011-08-011.12: create maintenance branch, update version to 1.12.0 1.12 crosstool-ng-1.12.0
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 01 Aug 2011 01:21:34 +0200] rev 2582
1.12: create maintenance branch, update version to 1.12.0

2011-07-31samples: update before release
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 31 Jul 2011 00:46:45 +0200] rev 2581
samples: update before release

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

2011-08-01libc/mingw: fix mingw source dirs
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 01 Aug 2011 00:16:12 +0200] rev 2580
libc/mingw: fix mingw source dirs

Someof the mingw32 source tarballs have an appended '-src' after the
version.

Since changeset #6e1412ba8da9 (scripts/functions: force extract folder
to archive basename), it means mingw tarballs get extracted in a directory
ending with '-src'.

Fix that.

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

2011-07-31cc/gcc: fortran requires GMP and MPFR
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 31 Jul 2011 22:19:21 +0200] rev 2579
cc/gcc: fortran requires GMP and MPFR

Even if gcc itself does not require GMP or MPFR (eg. gcc-4.2 and before
don't), building the fortran frontend always required those companion
libraries.

Select them if the Fortran language is selected.

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

2011-07-31libc/uclibc: fix src dir location
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 31 Jul 2011 22:07:08 +0200] rev 2578
libc/uclibc: fix src dir location

Now that we akways extract the tarballs in a sane location (see changeset
#6e1412ba8da9: scripts/functions: force extract folder to archive basename),
the uClibc snapshot dir now has the date (as version) in it, eg.:
uClibc-20100710

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

2011-07-31Makefile: fix samples install
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 31 Jul 2011 20:44:10 +0200] rev 2577
Makefile: fix samples install

Installing samples was not installing the C library config file
and the reported.by description.

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

2011-07-31config: don't require .config.2 to save a sample
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 31 Jul 2011 00:04:02 +0200] rev 2576
config: don't require .config.2 to save a sample

Samples should contain kconfig-parsable definitions, not script variables.
.config.2 contains bash arrays, which is definitely not kconfig-safe...

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

2011-07-30debug/gdb: don;t install sample gdbinit for old versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 30 Jul 2011 00:05:53 +0200] rev 2575
debug/gdb: don;t install sample gdbinit for old versions

Only starting with gdb-7 does installing the gdbinit sample makes senses.

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

2011-07-29scripts/functions: force extract folder to archive basename
"Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com> [Fri, 29 Jul 2011 13:04:49 +0200] rev 2574
scripts/functions: force extract folder to archive basename

Some archives like those of the 2011.07 revisions of Linaro GCC contain a folder
name different from the archive basename, which leads to errors afterwards, e.g.
when patching. E.g.:
gcc-linaro-4.5-2011.07.tar.bz2 extracts to gcc-linaro-4.5-2011.07-0/

This patch changes CT_Extract() to force the extraction of all archives to a
folder named like the archive basename. E.g.:
gcc-linaro-4.5-2011.07.tar.bz2 now extracts to gcc-linaro-4.5-2011.07/

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

2011-07-28scripts/libc: do not build add-ons by default
"Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com> [Thu, 28 Jul 2011 22:09:31 +0200] rev 2573
scripts/libc: do not build add-ons by default

Currently, no --enable-add-ons option is passed to libc configure when
"$(do_libc_add_ons_list ,)" is empty, which makes configure automatically search
for present add-ons. In that case, all present add-ons are built, although
no add-on was selected by the user in the config. Moreover, this can make the
configure fail if some non-standard add-ons like eglibc-localedef are present.

This behavior also leads to an inconsistency from a user point of view between
the following cases:
- LIBC_ADDONS_LIST="", LIBC_GLIBC_USE_PORTS=n and THREADS="none" in the config,
which makes "$(do_libc_add_ons_list ,)" return "", so all present add-ons
are built.
- LIBC_ADDONS_LIST="", LIBC_GLIBC_USE_PORTS=n and THREADS!="none" in the
config, which makes "$(do_libc_add_ons_list ,)" return the add-on supporting
the chosen threading implementation, e.g. "nptl", so only this add-on is
built.

This patch disables the building of all add-ons in that case.

It is still possible to build all present add-ons by adding --enable-add-ons to
LIBC_GLIBC_EXTRA_CONFIG_ARRAY.

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

2011-07-28cc/gcc: bump Linaro GCC revisions to 2011.07
"Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com> [Thu, 28 Jul 2011 21:55:20 +0200] rev 2572
cc/gcc: bump Linaro GCC revisions to 2011.07

This patch bumps the Linaro GCC revisions to 2011.07 when applicable.
Note that the `-0' suffix has been removed from the Linaro versioning scheme
beginning with this version.

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

2011-07-28docs: add signed-off-by line to sample commit message
Titus von Boxberg <titus@v9g.de> [Thu, 28 Jul 2011 21:55:30 +0200] rev 2571
docs: add signed-off-by line to sample commit message

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

2011-07-24debug/gdb: install gdbinit sample file
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 24 Jul 2011 20:30:52 +0200] rev 2570
debug/gdb: install gdbinit sample file

gdb needs to know where to find the libstdc++ helper python script
to do, well, whatever it has to do with it...

We can't install that in the user's ~/.gdbinit, it's too complex to
handle all the cases. Moreover, if the user is using more than one
toolchain, we can't put all that stuff in there...

Just provide a sample config file the user can adapt to his/her
own needs.

Thanks go to Khem RAJ for providing such a hint:
http://sourceware.org/ml/crossgcc/2011-07/msg00026.html

Reported-by: ANDY KENNEDY <ANDY.KENNEDY@adtran.com>
CC: Khem Raj <raj.khem@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-07-24docs: update table of content for known issues
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 24 Jul 2011 00:24:49 +0200] rev 2569
docs: update table of content for known issues

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

2011-07-22kernel/linux: add 3.0 Woohoo! \o/
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 22 Jul 2011 21:48:35 +0200] rev 2568
kernel/linux: add 3.0 Woohoo! \o/

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

2011-07-22kernel/linux: prepare to handle 3.x
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 22 Jul 2011 21:45:07 +0200] rev 2567
kernel/linux: prepare to handle 3.x

The place to get 3.x has changed; the version scheme has changed.

No need to be overkill, just support 3.x; 4.x is not even dreamt of.

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

2011-07-21kernel/linux: add latest versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 21 Jul 2011 21:07:50 +0200] rev 2566
kernel/linux: add latest versions

Still waiting for 3.0, though... ;-)

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

2011-07-20docs: update known issues
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 20 Jul 2011 23:52:39 +0200] rev 2565
docs: update known issues

Document the glibc build failures with male-3.82.

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

2011-07-17misc: fix more typos here and there...
"Antony N. Pavlov" <antony@niisi.msk.ru> [Sun, 17 Jul 2011 16:53:40 +0200] rev 2564
misc: fix more typos here and there...

Reported-by: "Antony N. Pavlov" <antony@niisi.msk.ru>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-07-17misc: fix typos
"Antony N. Pavlov" <antony@niisi.msk.ru> [Sun, 17 Jul 2011 16:54:50 +0200] rev 2563
misc: fix typos

Reported-by: "Antony N. Pavlov" <antony@niisi.msk.ru>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-07-161.11: update version to 1.11.4+hg 1.11
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 16 Jul 2011 01:01:30 +0200] rev 2562
1.11: update version to 1.11.4+hg

2011-07-16Tagging release 1.11.4 1.11
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 16 Jul 2011 01:01:30 +0200] rev 2561
Tagging release 1.11.4

2011-07-161.11: update version to 1.11.4 1.11 crosstool-ng-1.11.4
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 16 Jul 2011 01:01:30 +0200] rev 2560
1.11: update version to 1.11.4

2011-07-14configure: add yet a bit more of autostuff compatibility 1.11
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 14 Jul 2011 17:59:33 +0200] rev 2559
configure: add yet a bit more of autostuff compatibility

Well, at least it helps buildroot! :-)

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

2011-07-12scripts, cc/gcc: do not fail on existing symlinks or build.log 1.11
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 12 Jul 2011 23:52:24 +0200] rev 2558
scripts, cc/gcc: do not fail on existing symlinks or build.log

If the user builds a toolchain over an existing one, so, without removing
CT_PREFIX_DIR, the build fails as the symlinks already exist, as does the
build.log.

This can also happen (for build.log) if the user first ran in download-
or extract-only.

Patch (with no SoB) originally from:
Phil Wilshire <phil.wilshire@overturenetworks.com>

Modified by me as it did not apply cleanly.

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

2011-04-15scripts/internals: do not remove lib{32,64}/ symlinks after build 1.11
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 15 Apr 2011 00:22:42 +0200] rev 2557
scripts/internals: do not remove lib{32,64}/ symlinks after build

During the build, we create lib{32,64}/ symlinks out of the sysroot.
In some cases (eg. mingw32 target), these symlinks are still required
when running the toolchain. For other combinations, the symlinks are
without incidence, so they can be safely kept after the build.

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

2011-07-10scripts: on startup, also remove the buildtools dir 1.11
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 10 Jul 2011 00:02:05 +0200] rev 2556
scripts: on startup, also remove the buildtools dir

In case there's one lingering around (whether the previous build was
successful, or failed), we have to remove the buildtools directory
as well as the toochain build dir.

This should also fix the case where out makeinfo wrapper calls
itself recursively.

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

2011-04-15cc/gcc: fix passing args with spaces when calling core gcc 1.11
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 15 Apr 2011 00:05:53 +0200] rev 2555
cc/gcc: fix passing args with spaces when calling core gcc

Spaces in arguments to the core gcc backend were not handled.

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

2011-06-28cc/gcc: remove --enable-symver option 1.11
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 28 Jun 2011 23:46:04 +0200] rev 2554
cc/gcc: remove --enable-symver option

That option is coming from the original crosstool, and is not entirely
understand here.

Moreover, it breaks with newer gcc-s: 4.6.1 now breaks while configuring
libjava (and probably some other libs as well, untested).

There is an related bug report to the gcc BZ:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49555

If need be, the old behavior can be restored with:
CC_CORE_EXTRA_CONFIG_ARRAY="--enable-symver=gnu"
CC_EXTRA_CONFIG_ARRAY="--enable-symver=gnu"

Reported-by: Bryan Hundven <bryanhundven@gmail.com>
Reviewed-by: Bryan Hundven <bryanhundven@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from b24ead1a59472195f5b2071ff70664c36fa21c3f)

2011-05-27libc/glibc: fix {e,}glibc add-ons with short or long names 1.11
"Nicolás Reynolds" <fauno@kiwwwi.com.ar> [Fri, 27 May 2011 22:02:30 -0300] rev 2553
libc/glibc: fix {e,}glibc add-ons with short or long names

Fixes the issue with {e,}glibc addons having short and long names (such as
eglibc-ports-2_13 and ports), which caused configure scripts to run
through them twice and thus configuring incorrectly.

For instance, the mips64el-n32-linux-gnu toolchain would be recognized
correctly first, but then the second pass would change it to mips32,
building a mixed MIPS-III N32 and MIPS-I libc.

Signed-off-by: Nicolás Reynolds <fauno@kiwwwi.com.ar>
[yann.morin.1992@anciens.enib.fr: remove spurious trailing spaces]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from af25723a794f2017f45c300369a6d36849e22236)

2011-05-25debug/gdb: fix runtime sysroot 1.11
"Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com> [Wed, 25 May 2011 20:23:48 +0200] rev 2552
debug/gdb: fix runtime sysroot

This patch sets the runtime sysroot to fix the following GDB warning:
"Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code."

The sysroot can later be changed within gdb with the `set sysroot`
command if necessary.

Signed-off-by: "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
(transplanted from 7690196856ce4a4700d1887cc3adf80acc627c52)

2011-07-14configure: add yet a bit more of autostuff compatibility
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 14 Jul 2011 17:59:33 +0200] rev 2551
configure: add yet a bit more of autostuff compatibility

Well, at least it helps buildroot! :-)

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

2011-07-12scripts, cc/gcc: do not fail on existing symlinks or build.log
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 12 Jul 2011 23:52:24 +0200] rev 2550
scripts, cc/gcc: do not fail on existing symlinks or build.log

If the user builds a toolchain over an existing one, so, without removing
CT_PREFIX_DIR, the build fails as the symlinks already exist, as does the
build.log.

This can also happen (for build.log) if the user first ran in download-
or extract-only.

Patch (with no SoB) originally from:
Phil Wilshire <phil.wilshire@overturenetworks.com>

Modified by me as it did not apply cleanly.

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

2011-07-12scripts/xldd: fix missing arg to one printf
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 12 Jul 2011 23:21:27 +0200] rev 2549
scripts/xldd: fix missing arg to one printf

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

2011-07-11scripts/xldd: don't pass random format to printf
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 11 Jul 2011 00:15:00 +0200] rev 2548
scripts/xldd: don't pass random format to printf

Although proabaly inoffensive in our case, do not pass un-checked
formats to printf.

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

2011-07-11scripts/xldd: print end of current action
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 11 Jul 2011 00:13:57 +0200] rev 2547
scripts/xldd: print end of current action

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

2011-07-10scripts/xldd: fix typo
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 10 Jul 2011 23:37:58 +0200] rev 2546
scripts/xldd: fix typo

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

2011-04-15cc/gcc: do not build libgomp or libmudflap in the core steps
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 15 Apr 2011 00:09:59 +0200] rev 2545
cc/gcc: do not build libgomp or libmudflap in the core steps

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

2011-04-15scripts/internals: do not remove lib{32,64}/ symlinks after build
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 15 Apr 2011 00:22:42 +0200] rev 2544
scripts/internals: do not remove lib{32,64}/ symlinks after build

During the build, we create lib{32,64}/ symlinks out of the sysroot.
In some cases (eg. mingw32 target), these symlinks are still required
when running the toolchain. For other combinations, the symlinks are
without incidence, so they can be safely kept after the build.

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

2011-07-10scripts: on startup, also remove the buildtools dir
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 10 Jul 2011 00:02:05 +0200] rev 2543
scripts: on startup, also remove the buildtools dir

In case there's one lingering around (whether the previous build was
successful, or failed), we have to remove the buildtools directory
as well as the toochain build dir.

This should also fix the case where out makeinfo wrapper calls
itself recursively.

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

2011-07-09libc/glibc: fix passing args with spaces when calling backend
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 09 Jul 2011 19:40:24 +0200] rev 2542
libc/glibc: fix passing args with spaces when calling backend

Spaces in arguments to the glibc backend were not handled.

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

2011-04-15cc/gcc: fix passing args with spaces when calling core gcc
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 15 Apr 2011 00:05:53 +0200] rev 2541
cc/gcc: fix passing args with spaces when calling core gcc

Spaces in arguments to the core gcc backend were not handled.

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

2011-07-05configure: add check for svn
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 05 Jul 2011 00:54:06 +0200] rev 2540
configure: add check for svn

svn is needed to downlod eglibc, so we require it.

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

2011-07-07libc/newlib: add latest version
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 07 Jul 2011 00:01:50 +0200] rev 2539
libc/newlib: add latest version

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

2011-07-07scripts: update config.{guess,sub}
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 07 Jul 2011 10:17:34 +0200] rev 2538
scripts: update config.{guess,sub}

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

2011-07-03config: move multi-line shell commands from Makefile to script
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 03 Jul 2011 23:02:16 +0200] rev 2537
config: move multi-line shell commands from Makefile to script

Maintaining thos multi-line shell commands in a Makefile rule is
a real PITA.

Move the two affected rules (build_gen_choice_in and build_gen_menu_in
to a shell script.

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

2011-07-03libc/glibc: add 2.14
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 03 Jul 2011 23:01:09 +0200] rev 2536
libc/glibc: add 2.14

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

2011-07-04configure: do not require cvs
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 04 Jul 2011 22:53:49 +0200] rev 2535
configure: do not require cvs

cvs is used to get newlib directly from its repository. Missing cvs
will only allow getting newlib from the released tarballs.

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

2011-07-04configure: portability fixes - take 2
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 04 Jul 2011 22:37:44 +0200] rev 2534
configure: portability fixes - take 2

It is useful to sometime run on a strictly POSIX-compliant
shell... :-/

And it is sometime interesting to refresh Q-patches before
finishing the series... :-(

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

2011-07-04configure: portability fixes
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 04 Jul 2011 22:21:25 +0200] rev 2533
configure: portability fixes

It is useful to sometime run on a strictly POSIX-compliant shell... :-/

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

2011-07-03cc/gcc: fix non-MIPS builds
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 03 Jul 2011 22:32:36 +0200] rev 2532
cc/gcc: fix non-MIPS builds

The new MIPS-specific options are not valid for other targets.
Also, move the arch-specific setting lower in the extra_config setting.

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

2011-07-03docs/C : libncurses is not needed anymore
Titus von Boxberg <titus@v9g.de> [Sun, 03 Jul 2011 09:20:08 +0200] rev 2531
docs/C : libncurses is not needed anymore

macports libncurses was required only on SL 10.6.3

2011-07-03docs/C : use new URL in hg tutorial
Titus von Boxberg <titus@v9g.de> [Sun, 03 Jul 2011 09:15:54 +0200] rev 2530
docs/C : use new URL in hg tutorial

ct-ng has moved, update documentation

2011-07-03config/config.mk: call sed in the Right Way
Titus von Boxberg <titus@v9g.de> [Sun, 03 Jul 2011 09:08:30 +0200] rev 2529
config/config.mk: call sed in the Right Way

calling sed as sed destroys portability.
call sed as $(sed) in makefiles before the build process is started.

2011-06-28configure: do not test for static libs if static link is impossible
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 28 Jun 2011 00:52:33 +0200] rev 2528
configure: do not test for static libs if static link is impossible

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

2011-06-28configure: pass the allowed lib extensions to check_for()
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 28 Jun 2011 00:29:02 +0200] rev 2527
configure: pass the allowed lib extensions to check_for()

Rather than building all possible library names in the caller,
lets just do it once in check_for.

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

2011-06-27configure: disable static linking on Darwin
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 27 Jun 2011 21:03:40 +0200] rev 2526
configure: disable static linking on Darwin

Static liunking is not supported on Darwin, so hide the corresponding
options when the build machine is Darwin.

Reported-by: Andrea Franceschini <therealmorpheu5@gmail.com>
Reported-by: Bryan Hundven <bryanhundven@gmail.com>
Reported-by: "Titus von Boxberg" <titus@v9g.de>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-06-28configure: check host system
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 28 Jun 2011 17:25:02 +0200] rev 2525
configure: check host system

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

2011-07-03configure: indent error/warning message
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 03 Jul 2011 12:00:37 +0200] rev 2524
configure: indent error/warning message

Indent the error/warning message so that it is explicit that
the second line is giving details for the first general hint.

Reported-by: Titus von Boxberg <titus@v9g.de>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-06-27cc/gcc: add MIPS spercific configure options
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 27 Jun 2011 18:04:50 +0200] rev 2523
cc/gcc: add MIPS spercific configure options

Add the following MIPS specific options when configuring gcc:
--with(out)-llsc
--with(out)-synci
--with(out)-mips-plt
--with-divide=type

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

2011-06-27cc/gcc: add option for linker hash style
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 27 Jun 2011 15:15:00 +0200] rev 2522
cc/gcc: add option for linker hash style

Add an option to specify the hash type that gcc will ask the linker to use.
It is a provision for the upcoming 4.7, as no version currently supports it.

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

2011-06-27cc/gcc: add build-id option
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 27 Jun 2011 13:52:15 +0200] rev 2521
cc/gcc: add build-id option

Add an option to configure gcc with --enable-linker-build-id.

Reported-by: Bryan Hundven <bryanhundven@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>