2012-05-08scripts: fix catching failures 1.15
"Yann E. MORIN" <yann.morin.1998@free.fr> [Tue, 08 May 2012 18:31:10 +0200] rev 2965
scripts: fix catching failures

POSIX 1003.1-2008 does not say whether "set -e" should catch a sub-shell
that exits with !0 (it has a list of conditions to catch, but no list of
conditions not to catch, and this situation is not listed).

bash-3 does not catch such a failure, but bash-4 does. That why, on my
Squeeze system I did not see the issue, while Thomas did on is Lenny chroot.

Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
(transplanted from d48c03998dc1c25a3b29b2c0af425631baee3abe)

2012-05-08scripts: fix catching failures
"Yann E. MORIN" <yann.morin.1998@free.fr> [Tue, 08 May 2012 18:31:10 +0200] rev 2964
scripts: fix catching failures

POSIX 1003.1-2008 does not say whether "set -e" should catch a sub-shell
that exits with !0 (it has a list of conditions to catch, but no list of
conditions not to catch, and this situation is not listed).

bash-3 does not catch such a failure, but bash-4 does. That why, on my
Squeeze system I did not see the issue, while Thomas did on is Lenny chroot.

Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

2012-05-06scripts: update config.{guess,sub}
"Yann E. MORIN" <yann.morin.1998@free.fr> [Sun, 06 May 2012 15:11:24 +0200] rev 2963
scripts: update config.{guess,sub}

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

2012-05-05configure: we do not require curl, but wget. 1.15
"Yann E. MORIN" <yann.morin.1998@free.fr> [Sat, 05 May 2012 23:04:21 +0200] rev 2962
configure: we do not require curl, but wget.

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

2012-05-05configure: we do not require curl, but wget.
"Yann E. MORIN" <yann.morin.1998@free.fr> [Sat, 05 May 2012 23:04:21 +0200] rev 2961
configure: we do not require curl, but wget.

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

2012-05-02complibs: remove experimental from versions selection 1.15
"Yann E. MORIN" <yann.morin.1998@free.fr> [Wed, 02 May 2012 21:09:29 +0200] rev 2960
complibs: remove experimental from versions selection

Since I removed EXPERIMENTAL to most of gcc versions, the configuration
is now broken, as the required companion libraries versions are not
selectable, as they are still hidden behind EXPERIMENTAL.

Reported-by: Claudio Henrique Fortes Felix (chffelix on irc://irc.freenode.net/crosstool-ng)
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
(transplanted from 3e2f2100a76daa0a6d0a97c9f71b1ceacd403fe7)

2012-05-031.14: close branch 1.14
"Yann E. MORIN" <yann.morin.1998@free.fr> [Thu, 03 May 2012 21:09:19 +0200] rev 2959
1.14: close branch

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

2012-05-031.13: close branch 1.13
"Yann E. MORIN" <yann.morin.1998@free.fr> [Thu, 03 May 2012 21:06:12 +0200] rev 2958
1.13: close branch
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

2012-05-02complibs: remove experimental from versions selection
"Yann E. MORIN" <yann.morin.1998@free.fr> [Wed, 02 May 2012 21:09:29 +0200] rev 2957
complibs: remove experimental from versions selection

Since I removed EXPERIMENTAL to most of gcc versions, the configuration
is now broken, as the required companion libraries versions are not
selectable, as they are still hidden behind EXPERIMENTAL.

Reported-by: Claudio Henrique Fortes Felix (chffelix on irc://irc.freenode.net/crosstool-ng)
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

2012-04-301.15: update version to 1.15.0+hg 1.15
"Yann E. MORIN" <yann.morin.1998@free.fr> [Mon, 30 Apr 2012 22:54:15 +0200] rev 2956
1.15: update version to 1.15.0+hg

2012-04-30Tagging release 1.15.0 1.15
"Yann E. MORIN" <yann.morin.1998@free.fr> [Mon, 30 Apr 2012 22:54:15 +0200] rev 2955
Tagging release 1.15.0

2012-04-301.15: create maintenance branch, update version to 1.15.0 1.15 crosstool-ng-1.15.0
"Yann E. MORIN" <yann.morin.1998@free.fr> [Mon, 30 Apr 2012 22:54:15 +0200] rev 2954
1.15: create maintenance branch, update version to 1.15.0

2012-04-30samples: update to latest set of options
"Yann E. MORIN" <yann.morin.1998@free.fr> [Mon, 30 Apr 2012 18:14:13 +0200] rev 2953
samples: update to latest set of options

No feature- of version-bump, just update the samples
so that no (NEW) option pops up in the release.

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

2012-04-30cc/gcc: add Linaro GCC 4.7
"Benoît Thébaudeau" <benoit.thebaudeau@advansee.com> [Mon, 30 Apr 2012 17:58:46 +0200] rev 2952
cc/gcc: add Linaro GCC 4.7

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

2012-02-24libc/uClibc: add additional debug level between "minimal" and "all"
Johannes Stezenbach <js@sig21.net> [Fri, 24 Feb 2012 16:08:32 +0100] rev 2951
libc/uClibc: add additional debug level between "minimal" and "all"

During application development it is desirable to enable malloc
debugging and LD_DEBUG support, but the extensive debug spew from
SUPPORT_LD_DEBUG_EARLY is only useful when working on
uClibc's ld.so.

Signed-off-by: Johannes Stezenbach <js@sig21.net>

2012-04-30libc/eglibc: remove experimental for some versions
"Yann E. MORIN" <yann.morin.1998@free.fr> [Mon, 30 Apr 2012 17:36:00 +0200] rev 2950
libc/eglibc: remove experimental for some versions

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

2012-04-30libc/glibc: remove experimental for some versions
"Yann E. MORIN" <yann.morin.1998@free.fr> [Mon, 30 Apr 2012 17:34:40 +0200] rev 2949
libc/glibc: remove experimental for some versions

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

2012-04-30cc/gcc: 4.7 can request the linker's hash-style
"Yann E. MORIN" <yann.morin.1998@free.fr> [Mon, 30 Apr 2012 17:24:58 +0200] rev 2948
cc/gcc: 4.7 can request the linker's hash-style

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

2012-04-30binutils/binutils: declare versions that have --hash-style
"Yann E. MORIN" <yann.morin.1998@free.fr> [Mon, 30 Apr 2012 17:28:50 +0200] rev 2947
binutils/binutils: declare versions that have --hash-style

2.18 and above do have this option.

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

2012-04-30cc/gcc: remove experimental for some versions
"Yann E. MORIN" <yann.morin.1998@free.fr> [Mon, 30 Apr 2012 17:20:53 +0200] rev 2946
cc/gcc: remove experimental for some versions

Remove EXPERIMENTAL for the 4.5 and 4.6 series.

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

2012-04-30libc/uClibc: add 0.9.33.1
"Yann E. MORIN" <yann.morin.1998@free.fr> [Mon, 30 Apr 2012 17:19:00 +0200] rev 2945
libc/uClibc: add 0.9.33.1

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

2012-03-23cc/gc: add update 4.4.7
"Bryan Hundven" <bryanhundven@gmail.com> [Fri, 23 Mar 2012 01:36:42 -0700] rev 2944
cc/gc: add update 4.4.7

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
[yann.morin.1998@free.fr: propagate patchset from 4.4.6]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

2012-03-23cc/gcc: add gcc-4.7.0
"Bryan Hundven" <bryanhundven@gmail.com> [Fri, 23 Mar 2012 01:36:42 -0700] rev 2943
cc/gcc: add gcc-4.7.0

Add the new release gcc-4.7.0.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
[yann.morin.1998@free.fr: add 4.7.0 patch]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

2012-04-16debug/gdb: update Linaro GDB revisions to 2012.04
"Benoît Thébaudeau" <benoit.thebaudeau@advansee.com> [Mon, 16 Apr 2012 15:29:06 +0200] rev 2942
debug/gdb: update Linaro GDB revisions to 2012.04

Update Linaro GDB with the latest available revisions.

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

2012-04-16cc/gcc: update Linaro GCC revisions to 2012.04
"Benoît Thébaudeau" <benoit.thebaudeau@advansee.com> [Mon, 16 Apr 2012 15:25:36 +0200] rev 2941
cc/gcc: update Linaro GCC revisions to 2012.04

Update Linaro GCC with the latest available revisions.

The 4.7 revision is also released, but the infrastructure is not yet ready for
it in CT-NG.

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

2012-04-16kernel/linux: update revisions
"Benoît Thébaudeau" <benoit.thebaudeau@advansee.com> [Mon, 16 Apr 2012 14:57:02 +0200] rev 2940
kernel/linux: update revisions

Update Linux with the latest available revisions.

Signed-off-by: "Benoît Thébaudeau" <benoit.thebaudeau@advansee.com>
[yann.morin.1998@free.fr: add a few other versions since released]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

2012-04-26Allow multi-word "install" command.
Anthony Foiani <anthony.foiani@gmail.com> [Thu, 26 Apr 2012 19:55:59 -0600] rev 2939
Allow multi-word "install" command.

Autoconf can determine that the correct install command includes flags,
e.g., "/usr/bin/install -c". When using this as a command, we can't
enclose the value in double-quotes, as that makes some shells use the
whole expression as a filename:

# this is the value returned by autoconf and stored in CT_install
$ ins="/usr/bin/install -c"

# if we call it with quotes, the command is not found
$ "${ins}"
bash: /usr/bin/install -c: No such file or directory

# removing the quotes lets it work as expected
$ ${ins}
/usr/bin/install: missing file operand
Try `/usr/bin/install --help' for more information.

Signed-Off-By: Anthony Foiani <anthony.foiani@gmail.com>

2012-04-09samples: update to latest config option set
"Yann E. MORIN" <yann.morin.1998@free.fr> [Mon, 09 Apr 2012 11:00:35 +0200] rev 2938
samples: update to latest config option set

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

2012-04-09samples: . accepts previous comment as-is
"Yann E. MORIN" <yann.morin.1998@free.fr> [Mon, 09 Apr 2012 11:19:51 +0200] rev 2937
samples: . accepts previous comment as-is

When updating a sample configuration with a comment, a dot '.'
in the new comment keeps the previous comment.

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

2012-01-03cc/gcc: build core compilers for canadian
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 03 Jan 2012 22:57:25 +0100] rev 2936
cc/gcc: build core compilers for canadian

Currently, we rely on an existing external cross-compiler targetting
the target, to build the C library.

This can pause quite a few problems if that compiler is different from
the one we are building, because it could introduce some ABI issues.

This patch removes this dependency, by building the core compilers
as we do for standard cross, and also by building the binutils and
gcc, for running on the build machine.

This means we no longer need to offer the cross-sompiler selection in
the menuconfig.

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

2012-04-02cc/gcc: add build frontend
"Yann E. MORIN" <yann.morin.1998@free.fr> [Mon, 02 Apr 2012 22:54:30 +0200] rev 2935
cc/gcc: add build frontend

Bizarrely enough, the core gcc are not enough to be able to build a
canadian cross, and a real, full cross compiler is required so that
the canadian cross can be properly built... WTF?!? Sigh...

Add a build-frontend, as was done for the binutils and the complibs.

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

2012-04-01cc/gcc: frontends are responsible for selecting the list of languages
"Yann E. MORIN" <yann.morin.1998@free.fr> [Sun, 01 Apr 2012 19:07:11 +0200] rev 2934
cc/gcc: frontends are responsible for selecting the list of languages

Do for the final step the same as for the core step: compute the list
of selected langauages from the frontend, not in the backend.

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

2011-08-15cc/gcc: pass the language list to the core backend
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 15 Aug 2011 22:52:51 +0200] rev 2933
cc/gcc: pass the language list to the core backend

As the core backend can be used to also build the bare-metal compiler,
we have to tel it what languages to build.

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

2011-08-15cc/gcc: add language helper function
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 15 Aug 2011 21:42:28 +0200] rev 2932
cc/gcc: add language helper function

Add a function that prepares the language configure option.
It is needed in at least two places, some commonalisation is needed. ;-)

Unfortunately, it is no longer possible to print warnings about experimental
languages any more. Anyway, the experimental status is clearly indicated
in the menuconfig. so it should not be a surprise if the build breaks. :-/

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

2011-07-25complibs: fixup the host complibs install dir
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 25 Jul 2011 19:04:17 +0200] rev 2931
complibs: fixup the host complibs install dir

It's easier to have as much as possible stuff in the same place to
ease backup/restore, and make things easier to follow.

Move the host companion libraries install dir as a sub-dir of the
build-tools install dir (but not directly in it, it would break
for canadian or cross-native).

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

2011-07-25cc/gcc: cleanup the frontends
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 25 Jul 2011 19:04:00 +0200] rev 2930
cc/gcc: cleanup the frontends

A few noop fix-ups:
- fix the comments in core pass-1
- commonalise settings that can be

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

2011-07-24complibs: add frontends for building to run on the build machine
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 24 Jul 2011 23:53:14 +0200] rev 2929
complibs: add frontends for building to run on the build machine

In canadian-cross, we need the companion libraries running on the
build machine, to be able to build the two core gcc.

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

2011-07-24binutils: add frontends for building to run on the build machine
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 24 Jul 2011 23:52:28 +0200] rev 2928
binutils: add frontends for building to run on the build machine

In canadian-cross, we need binutils running on the build machine to be
able to build the target C library.

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

2011-07-17complibs: split companion libraries to backend/frontend, a-la cc_core
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 17 Jul 2011 18:56:30 +0200] rev 2927
complibs: split companion libraries to backend/frontend, a-la cc_core

Move the actual complibs codes to backend functions that builds the
required combo of build/host/target as requested by a frontend.

This split is currently a no-op, but is required for the upcoming
canadian-cross rework, where we'll be needing to build the complibs
twice, one for build/build, and one for build/host.

This applies to the six companion libraries:
- GMP
- MPFR
- PPL
- Cloog/PPL
- MPC
- libelf

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

2011-07-17binutils: split binutils to backend/frontend, a-la cc_core
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 17 Jul 2011 18:29:35 +0200] rev 2926
binutils: split binutils to backend/frontend, a-la cc_core

Move the actual binutils code to a backend function that builds the
required combo of build/host/target as requested by a frontend.

This split is currently a no-op, but is required for the upcoming
canadian-cross rework, where we'll be needing to build two binutils,
one for build/build/target, and one for build/host/target.

This applies to the three binutils:
- GNU binutils
- elf2flt
- sstrip

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

2011-07-17cc/gcc: always build core compilers to run on the build machine
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 17 Jul 2011 18:28:19 +0200] rev 2925
cc/gcc: always build core compilers to run on the build machine

The core compilers are used to build the C library, so they
should always run on the build machine, not on the host.

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

2012-01-01cc/gcc: install the core compilers in the build-tools dir
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 01 Jan 2012 17:49:44 +0100] rev 2924
cc/gcc: install the core compilers in the build-tools dir

There really is no good reason to install the core compilers in their
own places, one for each pass. We can install them with the other
build tools.

Also, this implies that:
- there are fewer directories to save/restore
- there are fewer symlinks to create for binutils
- the PATH is shorter

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

2012-01-02binutils/binutils: don't install symlinks when in canadian
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 02 Jan 2012 21:38:12 +0100] rev 2923
binutils/binutils: don't install symlinks when in canadian

When building a canadian-cross, the binutils are not executable on
the build machine, so there is no point in installing the symlinks
in the gcc static/shared install dirs.

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

2012-04-02kernel/linux: add latest versions
"Yann E. MORIN" <yann.morin.1998@free.fr> [Mon, 02 Apr 2012 19:50:22 +0200] rev 2922
kernel/linux: add latest versions

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

2012-03-20kernel/linux: add latest versions
"Yann E. MORIN" <yann.morin.1998@free.fr> [Tue, 20 Mar 2012 18:44:44 +0100] rev 2921
kernel/linux: add latest versions

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

2012-03-17kernel/linux: update long-term versions
"Yann E. MORIN" <yann.morin.1998@free.fr> [Sat, 17 Mar 2012 23:43:59 +0100] rev 2920
kernel/linux: update long-term versions

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

2012-03-15debug/gdb: update Linaro GDB revisions to 2012.02
"Benoît Thébaudeau" <benoit.thebaudeau@advansee.com> [Thu, 15 Mar 2012 13:20:34 +0100] rev 2919
debug/gdb: update Linaro GDB revisions to 2012.02

Update Linaro GDB with the latest available revisions.

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

2012-03-15cc/gcc: update Linaro GCC revisions to 2012.03
"Benoît Thébaudeau" <benoit.thebaudeau@advansee.com> [Thu, 15 Mar 2012 13:13:31 +0100] rev 2918
cc/gcc: update Linaro GCC revisions to 2012.03

Update Linaro GCC with the latest available revisions.

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

2012-03-15kernel/linux: update revisions
"Benoît Thébaudeau" <benoit.thebaudeau@advansee.com> [Thu, 15 Mar 2012 13:05:31 +0100] rev 2917
kernel/linux: update revisions

Update Linux with the latest available revisions.

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

2012-03-06docs: update my e-mail 1.14
"Yann E. MORIN" <yann.morin.1998@free.fr> [Tue, 06 Mar 2012 21:36:10 +0100] rev 2916
docs: update my e-mail

Since anciens.enib.fr has been dead for two months now, without any
hope of recovery, update my e-mail to point to @free.fr instead.

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

2012-03-12debug/strace: fix download URL 1.14
"Yann E. MORIN" <yann.morin.1998@free.fr> [Mon, 12 Mar 2012 21:19:26 +0100] rev 2915
debug/strace: fix download URL

strace upstream location has slightly changed.

Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
(transplanted from cc170c96362c5e12d407558042f6fc17ead43f75)

2012-02-13docs/known-issues: add note about build issue on x86_64 with 32bit userspace 1.14
Johannes Stezenbach <js@sig21.net> [Mon, 13 Feb 2012 21:10:06 +0100] rev 2914
docs/known-issues: add note about build issue on x86_64 with 32bit userspace

Signed-off-by: Johannes Stezenbach <js@sig21.net>
(transplanted from da77b5e7cb9f921d0e2a22818b7945906100e704)

2012-03-12debug/strace: fix download URL 1.13
"Yann E. MORIN" <yann.morin.1998@free.fr> [Mon, 12 Mar 2012 21:19:26 +0100] rev 2913
debug/strace: fix download URL

strace upstream location has slightly changed.

Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
(transplanted from cc170c96362c5e12d407558042f6fc17ead43f75)

2012-03-06docs: update my e-mail 1.13
"Yann E. MORIN" <yann.morin.1998@free.fr> [Tue, 06 Mar 2012 21:36:10 +0100] rev 2912
docs: update my e-mail

Since anciens.enib.fr has been dead for two months now, without any
hope of recovery, update my e-mail to point to @free.fr instead.

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

2012-02-13docs/known-issues: add note about build issue on x86_64 with 32bit userspace 1.13
Johannes Stezenbach <js@sig21.net> [Mon, 13 Feb 2012 21:10:06 +0100] rev 2911
docs/known-issues: add note about build issue on x86_64 with 32bit userspace

Signed-off-by: Johannes Stezenbach <js@sig21.net>
(transplanted from da77b5e7cb9f921d0e2a22818b7945906100e704)

2012-03-12debug/strace: fix download URL
"Yann E. MORIN" <yann.morin.1998@free.fr> [Mon, 12 Mar 2012 21:19:26 +0100] rev 2910
debug/strace: fix download URL

strace upstream location has slightly changed.

Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

2012-03-01libg/eglibc: add updated eglibc 2.15
"Bryan Hundven" <bryanhundven@gmail.com> [Thu, 01 Mar 2012 15:23:49 -0800] rev 2909
libg/eglibc: add updated eglibc 2.15

Includes a patch to remove __builtin_expect test:

In eglibc-2.15, the build breaks in configure while testing
for the existance of __builtin_expect. It fails with newer
versions of gcc.

This patch is a modification of an upstream change in glibc
mainline (to be 2.16) to fix the following error:

[CFG ] checking for __builtin_expect... no
[ERROR] configure: error: support for __builtin_expect needed

http://sourceware.org/git/?p=glibc.git;a=commit;h=3857022a761ea7251f8e5c0e45d382ebc3e34cf9

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
[yann.morin.1998@free.fr: coalesce both patches into a single changeset]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

2012-03-06docs: update my e-mail
"Yann E. MORIN" <yann.morin.1998@free.fr> [Tue, 06 Mar 2012 21:36:10 +0100] rev 2908
docs: update my e-mail

Since anciens.enib.fr has been dead for two months now, without any
hope of recovery, update my e-mail to point to @free.fr instead.

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

2012-03-04kernel/linux: update 3.0 and long term 2.6.32
"Yann E. MORIN" <yann.morin.1998@free.fr> [Sun, 04 Mar 2012 23:17:58 +0100] rev 2907
kernel/linux: update 3.0 and long term 2.6.32

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

2012-03-04binutils/binutils: rename function that build target libraries
"Yann E. MORIN" <yann.morin.1998@free.fr> [Sun, 04 Mar 2012 17:31:23 +0100] rev 2906
binutils/binutils: rename function that build target libraries

Prepare for the incoming build/host/target frontends.

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

2012-01-03complibs/libelf: rename libelf for target function
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 03 Jan 2012 18:39:11 +0100] rev 2905
complibs/libelf: rename libelf for target function

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

2012-03-03cc/gcc: forward-port patch to new versions
"Yann E. MORIN" <yann.morin.1998@free.fr> [Sat, 03 Mar 2012 23:38:33 +0100] rev 2904
cc/gcc: forward-port patch to new versions

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

2012-03-01Add updated gcc 4.6.3
"Bryan Hundven" <bryanhundven@gmail.com> [Thu, 01 Mar 2012 15:20:09 -0800] rev 2903
Add updated gcc 4.6.3

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

2012-03-01kernel/linux: update kernel versions 3.2.7..3.2.9
"Bryan Hundven" <bryanhundven@gmail.com> [Thu, 01 Mar 2012 15:23:49 -0800] rev 2902
kernel/linux: update kernel versions 3.2.7..3.2.9

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
[yann.morin.1998@free.fr: add 3.2.9 too]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

2012-02-27cc/gcc: Update core_prefix_dir to prefix.
Zhenqiang Chen <zhenqiang.chen@linaro.org> [Mon, 27 Feb 2012 15:24:18 +0800] rev 2901
cc/gcc: Update core_prefix_dir to prefix.

core_prefix_dir is not defined. It should be prefix.

Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>

2011-07-24cc-gcc: the frontends are responsible for mkdir/chdir
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 24 Jul 2011 19:35:24 +0200] rev 2900
cc-gcc: the frontends are responsible for mkdir/chdir

The build dir are created depending on the host (host for that specific
backend, not host for the toolchain). Only the frontends know what host
this is, so only the frontends can create non-ambiguous dirs.

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

2012-01-01libc/glibc: use CT_mkdir_pushd helper
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 01 Jan 2012 17:35:10 +0100] rev 2899
libc/glibc: use CT_mkdir_pushd helper

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

2011-07-24functions: add new helpers that create a dir and cd/pushd into it
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 24 Jul 2011 20:08:13 +0200] rev 2898
functions: add new helpers that create a dir and cd/pushd into it

A lot of places are currently doing:
mkdir -p foo/bar
cd foo/bar

Or even:
mkdir -p foo/bar
pushd foo/bar
[...]
popd

Provide both wrapper to ease doing this.

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

2011-07-24cc/gcc: fix core backend's API doc
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 24 Jul 2011 19:24:02 +0200] rev 2897
cc/gcc: fix core backend's API doc

Make it more in line with the final backend's doc,
and make it simpler as well.

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

2011-07-24cc/gcc: no need to build a static core pass-1 gcc for baremetal
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 24 Jul 2011 19:33:04 +0200] rev 2896
cc/gcc: no need to build a static core pass-1 gcc for baremetal

The only user of the static core compiler in pass-1 was the newlib
C library. Now that it is build in a later step, we do no longer
need to build a static core compiler in pass-1.

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

2011-07-17libc/newlib: build newlib in the proper step
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 17 Jul 2011 18:01:28 +0200] rev 2895
libc/newlib: build newlib in the proper step

Currently, newlib is built in the start_file step, which is wrong, but was
needed when the baremetal integration was... well, 'unfinished'.

Now that we build the baremetal compiler from the final cc step, and a
proper core gcc in pass-1 and pass-2, we can move the newlib build to the
step do_libc, where it belongs.

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

2012-02-13cc/gcc: comonalise the manuals build decision
"Yann E. MORIN" <yann.morin.1998@free.fr> [Mon, 13 Feb 2012 22:18:02 +0100] rev 2894
cc/gcc: comonalise the manuals build decision

Let the final frontend decide whether or not to build the manuals.

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

2011-07-17cc/gcc: do not use the core pass-2 to build the baremetal compiler
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 17 Jul 2011 22:43:07 +0200] rev 2893
cc/gcc: do not use the core pass-2 to build the baremetal compiler

In case we build a baremetal compiler, use the standard passes:
- core_cc is used to build the C library;
- as such, it is meant to run on build, not host;
- the final compiler is meant to run on host;

As the current final compiler step can not build a baremetal compiler,
call the core backend from the final step.

NB: Currently, newlib is built during the start_files pass, so we have
to have a core compiler by then... Once we can build the baremetal
compiler from the final cc step, then we can move the newlib build to
the proper step, and then get rid of the core pass-1 static compiler...

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

2011-07-17cc/gcc: add the backend/frontend infra for final gcc
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 17 Jul 2011 22:46:47 +0200] rev 2892
cc/gcc: add the backend/frontend infra for final gcc

Currently, we issue the bare-metal compiler from the pass_1 & pass_2
core compilers, because the final gcc breaks while doing so.

This implies we have to build some libces during the start_files step,
instead of the standard libc step. This is the case for newlib.

By adding a backend/frontend infra to the final gcc, we can abstract
what backend to call: the standard backend for non-bare-metal gcc,
and the core backend for bare-metal.

This patch is just an no-op, it just adds the final backend and
frontend without changing the way bare-metal is built, to come in a
subsequent patch.

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

2011-08-23cc/gcc: add 'cflags' paramater to the core backend
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 23 Aug 2011 21:11:26 +0200] rev 2891
cc/gcc: add 'cflags' paramater to the core backend

As the core backend is used to generate the bare-metal compiler,
we need to pass it the host CFLAGS.

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

2011-07-17cc/gcc: add host parameter to core compiler build process
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 17 Jul 2011 18:10:53 +0200] rev 2890
cc/gcc: add host parameter to core compiler build process

Tell the core compiler what host it should run on (instead of
hard-coding runing on CT_HOST).

No functional change so far, switching between CT_HOST and CT_BUILD
will come in a following patch.

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

2011-07-17cc/gcc: pass the install prefix to the core passes
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 17 Jul 2011 17:56:22 +0200] rev 2889
cc/gcc: pass the install prefix to the core passes

Currently, the discrimination on the core compilers prefixes depends on
the type of core compiler to build.

This is not correct, and the caller of the core backend should specify
the prefix.

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

2011-07-17cc/gcc: pass the companion libs prefix to cc_core
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 17 Jul 2011 17:54:21 +0200] rev 2888
cc/gcc: pass the companion libs prefix to cc_core

In case of canadian-cross, the companion libraries are not the same for
the core cc (they run on 'build') as they are for the final cc (they run
on 'host').

Prepare for this differentiation (coming later), while retaining the
current behavior (to use the same compblibs).

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

2011-11-20cc/gcc: rename the core backend function
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 20 Nov 2011 18:08:00 +0100] rev 2887
cc/gcc: rename the core backend function

Rename the core backend function to do_cc_core_backend, to
make it explicit it is a backend.

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

2011-07-17cc/gcc: simplify calls to core backend
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 17 Jul 2011 15:48:27 +0200] rev 2886
cc/gcc: simplify calls to core backend

The core backend is going to have more parameters in the upcoming
patches, so it will be a bit complex to handle.

Introduce an array-variable that is filled by the different code-paths
with the required values.

This makes the code easier to read and maintain.

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

2012-02-13kernel/linux: update to latest versions
"Yann E. MORIN" <yann.morin.1998@free.fr> [Mon, 13 Feb 2012 22:56:45 +0100] rev 2885
kernel/linux: update to latest versions

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

2012-02-13cc/gcc: do not consume parameters when parsing them
"Yann E. MORIN" <yann.morin.1998@free.fr> [Mon, 13 Feb 2012 21:51:48 +0100] rev 2884
cc/gcc: do not consume parameters when parsing them

The current construct consumes the parameters while we parse them.
Change this to a construct that does not consume the parameters.

This has no impact on gcc, but is done for homogeneity with other
components (eg. glibc).

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

2012-02-13libc/glibc: do not consume parameters when parsing them
"Yann E. MORIN" <yann.morin.1998@free.fr> [Mon, 13 Feb 2012 21:47:25 +0100] rev 2883
libc/glibc: do not consume parameters when parsing them

Currently, there are two constructs used to parse arguments in
glibc backends, one that consumes args as they are parsed, and
one that does not.

Always use the construct that does not eat args as they are parsed.

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

2012-02-13docs/known-issues: add note about build issue on x86_64 with 32bit userspace
Johannes Stezenbach <js@sig21.net> [Mon, 13 Feb 2012 21:10:06 +0100] rev 2882
docs/known-issues: add note about build issue on x86_64 with 32bit userspace

Signed-off-by: Johannes Stezenbach <js@sig21.net>

2012-02-13help: fix typo
Johannes Stezenbach <js@sig21.net> [Mon, 13 Feb 2012 21:07:55 +0100] rev 2881
help: fix typo

Signed-off-by: Johannes Stezenbach <js@sig21.net>

2012-02-09cc/gcc: update Linaro GCC revisions to 2012.02
"Benoît Thébaudeau" <benoit.thebaudeau@advansee.com> [Thu, 09 Feb 2012 13:09:08 +0100] rev 2880
cc/gcc: update Linaro GCC revisions to 2012.02

Update Linaro GCC with the latest available revisions.

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

2012-02-09kernel/linux: update revisions
"Benoît Thébaudeau" <benoit.thebaudeau@advansee.com> [Thu, 09 Feb 2012 13:00:49 +0100] rev 2879
kernel/linux: update revisions

Update Linux with the latest available revisions.

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

2012-02-091.13: re-close the branch 1.13
"Yann E. MORIN" <yann.morin.1998@free.fr> [Thu, 09 Feb 2012 21:42:35 +0100] rev 2878
1.13: re-close the branch

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

2012-02-091.13: update version to 1.13.4+hg 1.13
"Yann E. MORIN" <yann.morin.1998@free.fr> [Thu, 09 Feb 2012 21:39:32 +0100] rev 2877
1.13: update version to 1.13.4+hg

2012-02-09Tagging release 1.13.4 1.13
"Yann E. MORIN" <yann.morin.1998@free.fr> [Thu, 09 Feb 2012 21:39:32 +0100] rev 2876
Tagging release 1.13.4

2012-02-091.13: update version to 1.13.4 1.13 crosstool-ng-1.13.4
"Yann E. MORIN" <yann.morin.1998@free.fr> [Thu, 09 Feb 2012 21:39:31 +0100] rev 2875
1.13: update version to 1.13.4

2012-02-05scripts: fix download from sourceforge 1.13
"Yann E. MORIN" <yann.morin.1998@free.fr> [Sun, 05 Feb 2012 23:26:55 +0100] rev 2874
scripts: fix download from sourceforge

It seems sourceforge changed yet again the way to download files.
This time, no longer use their 'mesh' thingy, and hard-code the
server to use in the URL... Sigh... :-(

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

2012-02-081.14: update version to 1.14.1+hg 1.14
"Yann E. MORIN" <yann.morin.1998@free.fr> [Wed, 08 Feb 2012 00:44:52 +0100] rev 2873
1.14: update version to 1.14.1+hg

2012-02-08Tagging release 1.14.1 1.14
"Yann E. MORIN" <yann.morin.1998@free.fr> [Wed, 08 Feb 2012 00:44:52 +0100] rev 2872
Tagging release 1.14.1

2012-02-081.14: update version to 1.14.1 1.14 crosstool-ng-1.14.1
"Yann E. MORIN" <yann.morin.1998@free.fr> [Wed, 08 Feb 2012 00:44:52 +0100] rev 2871
1.14: update version to 1.14.1

2012-02-08debug/strace: 4.6 requires xz 1.14
"Yann E. MORIN" <yann.morin.1998@free.fr> [Wed, 08 Feb 2012 00:28:43 +0100] rev 2870
debug/strace: 4.6 requires xz

strace 4.6 is only available as an XZ-compressed tarball.

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

2012-02-05scripts: fix download from sourceforge 1.14
"Yann E. MORIN" <yann.morin.1998@free.fr> [Sun, 05 Feb 2012 23:26:55 +0100] rev 2869
scripts: fix download from sourceforge

It seems sourceforge changed yet again the way to download files.
This time, no longer use their 'mesh' thingy, and hard-code the
server to use in the URL... Sigh... :-(

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

2012-02-08debug/strace: 4.6 requires xz
"Yann E. MORIN" <yann.morin.1998@free.fr> [Wed, 08 Feb 2012 00:28:43 +0100] rev 2868
debug/strace: 4.6 requires xz

strace 4.6 is only available as an XZ-compressed tarball.

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

2012-02-05scripts: fix download from sourceforge
"Yann E. MORIN" <yann.morin.1998@free.fr> [Sun, 05 Feb 2012 23:26:55 +0100] rev 2867
scripts: fix download from sourceforge

It seems sourceforge changed yet again the way to download files.
This time, no longer use their 'mesh' thingy, and hard-code the
server to use in the URL... Sigh... :-(

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

2012-02-02libc/uClibc: add 0.9.33
Johannes Stezenbach <js@sig21.net> [Thu, 02 Feb 2012 22:43:18 +0100] rev 2866
libc/uClibc: add 0.9.33

Signed-off-by: Johannes Stezenbach <js@sig21.net>

2012-02-011.14: update version to 1.14.0+hg 1.14
"Yann E. MORIN" <yann.morin.1998@free.fr> [Wed, 01 Feb 2012 00:19:04 +0100] rev 2865
1.14: update version to 1.14.0+hg

2012-02-01Tagging release 1.14.0 1.14
"Yann E. MORIN" <yann.morin.1998@free.fr> [Wed, 01 Feb 2012 00:19:04 +0100] rev 2864
Tagging release 1.14.0

2012-02-011.14: create maintenance branch, update version to 1.14.0 1.14 crosstool-ng-1.14.0
"Yann E. MORIN" <yann.morin.1998@free.fr> [Wed, 01 Feb 2012 00:19:04 +0100] rev 2863
1.14: create maintenance branch, update version to 1.14.0

2012-02-011.13: close branch 1.13
"Yann E. MORIN" <yann.morin.1998@free.fr> [Wed, 01 Feb 2012 00:18:12 +0100] rev 2862
1.13: close branch

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

2012-02-01samples: update before release
"Yann E. MORIN" <yann.morin.1998@free.fr> [Wed, 01 Feb 2012 00:10:59 +0100] rev 2861
samples: update before release

Update all samples to reflect the new set of options, plus:
- remove the arm-iphone-linux-gnueabi sample (obsolete...)
- disable hard-float in ARM bare-metal samples.

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

2012-01-30configure: do not use '@' in version string
"Benoît Thébaudeau" <benoit.thebaudeau@advansee.com> [Mon, 30 Jan 2012 16:52:50 +0100] rev 2860
configure: do not use '@' in version string

#0a0410dd0cb0 broke #0cc4d6352c3e. This patch fixes this, which fixes the build
of gcc/glibc/gdb manuals.

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

2012-01-30scripts: fix typo in mk-release, remove temporary autom4 files
"Yann E. MORIN" <yann.morin.1998@free.fr> [Mon, 30 Jan 2012 21:31:20 +0100] rev 2859
scripts: fix typo in mk-release, remove temporary autom4 files

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

2012-01-29scripts: update mk-release to cope with the new autoconf framework
"Yann E. MORIN" <yann.morin.1998@free.fr> [Sun, 29 Jan 2012 22:19:27 +0100] rev 2858
scripts: update mk-release to cope with the new autoconf framework

Now that ./configure is generated by autoconf, it must be generated
before the release tarball is made. So, we can not simply use hg's
archive, we must post-process it.

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

2012-01-29scripts/mk-release: use HGPLAIN and don't print progress
"Yann E. MORIN" <yann.morin.1998@free.fr> [Sun, 29 Jan 2012 22:44:09 +0100] rev 2857
scripts/mk-release: use HGPLAIN and don't print progress

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

2011-11-18debug/gdb: --disable-sim for CT_GDB_CROSS.
Zhenqiang Chen <zhenqiang.chen@linaro.org> [Fri, 18 Nov 2011 16:22:52 +0800] rev 2856
debug/gdb: --disable-sim for CT_GDB_CROSS.

sim was already disabled for CT_GDB_NATIVE.

Reviewed-by: Michael Hope
Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>
[yann.morin.1998@anciens.enib.fr: make it a config option]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2012-01-29configre: properly check for libtoolize
Johannes Stezenbach <js@sig21.net> [Sun, 29 Jan 2012 11:42:30 +0100] rev 2855
configre: properly check for libtoolize

Fix a copy-n-paste typo, where the libtoolize check
would re-run the libtool check.

Signed-off-by: Johannes Stezenbach <js@sig21.net>

2012-01-27complibs/cloog: fix linking with libm
"Benoît Thébaudeau" <benoit.thebaudeau@advansee.com> [Fri, 27 Jan 2012 13:31:16 +0100] rev 2854
complibs/cloog: fix linking with libm

In Ubuntu 11.04 and 11.10, the default options for ld have changed.
--no-copy-dt-needed-entries and --as-needed are now enabled by default, which
causes errors like:

[EXTRA] Checking CLooG/ppl
[DEBUG] ==> Executing: 'make' '-j3' '-s' 'check'
[ALL ] Making check in .
[ALL ] config.status: creating include/cloog/cloog-config.h
[ALL ] config.status: include/cloog/cloog-config.h is unchanged
[ALL ] libtool: link: i686-build_pc-linux-gnu-gcc -Wall -fomit-frame-pointer
-pipe -o cloog cloog.o -L/<snip>/build/static/lib ./.libs/libcloog.a -lm
/<snip>/build/static/lib/libppl_c.a /<snip>/build/static/lib/libpwl.a
/<snip>/build/static/lib/libppl.a /<snip>/build/static/lib/libgmpxx.a
/<snip>/build/static/lib/libgmp.a -lstdc++
[ALL ] /usr/bin/ld: /<snip>/build/static/lib/libppl.a(MIP_Problem.o):
undefined reference to symbol 'sqrt@@GLIBC_2.0'
[ALL ] /usr/bin/ld: note: 'sqrt@@GLIBC_2.0' is defined in DSO
/usr/lib/gcc/i686-linux-gnu/4.6.1/../../../i386-linux-gnu/libm.so so try adding
it to the linker command line
[ALL ] /usr/lib/gcc/i686-linux-gnu/4.6.1/../../../i386-linux-gnu/libm.so:
could not read symbols: Invalid operation
[ALL ] collect2: ld returned 1 exit status
[ERROR] make[2]: *** [cloog] Error 1
[ERROR] make[1]: *** [check-recursive] Error 1

See:
https://wiki.ubuntu.com/NattyNarwhal/ToolchainTransition

This patch fixes these errors by placing '-lm' at the right place on the command
line as libppl requires libm when linking cloog.

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

2012-01-27complibs/cloog: remove unsupported versions from config
"Benoît Thébaudeau" <benoit.thebaudeau@advansee.com> [Fri, 27 Jan 2012 13:13:00 +0100] rev 2853
complibs/cloog: remove unsupported versions from config

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

2012-01-28kernel/linux: update
"Yann E. MORIN" <yann.morin.1998@free.fr> [Sat, 28 Jan 2012 16:50:45 +0100] rev 2852
kernel/linux: update

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

2012-01-231.13: update version to 1.13.3+hg 1.13
"Yann E. MORIN" <yann.morin.1998@free.fr> [Mon, 23 Jan 2012 18:41:34 +0100] rev 2851
1.13: update version to 1.13.3+hg

2012-01-23Tagging release 1.13.3 1.13
"Yann E. MORIN" <yann.morin.1998@free.fr> [Mon, 23 Jan 2012 18:41:34 +0100] rev 2850
Tagging release 1.13.3

2012-01-231.13: update version to 1.13.3 1.13 crosstool-ng-1.13.3
"Yann E. MORIN" <yann.morin.1998@free.fr> [Mon, 23 Jan 2012 18:41:34 +0100] rev 2849
1.13: update version to 1.13.3

2011-12-14libc/eglibc: fix localedef 2.14 build 1.13
"Benoît Thébaudeau" <benoit.thebaudeau@advansee.com> [Wed, 14 Dec 2011 16:55:22 +0100] rev 2848
libc/eglibc: fix localedef 2.14 build

The localedef of eglibc 2.14 requires NOT_IN_libc to be defined in order to
compile intl/l10nflist.c.

This is because localedef is built separately from eglibc and uses some parts of
eglibc that don't compile in standalone without this preprocessor definition.

This fixes the following error:

[ALL ] gcc -g -O2 -DNO_SYSCONF -DNO_UNCOMPRESS
-DLOCALE_PATH='"/usr/lib/locale:/usr/share/i18n"'
-DLOCALEDIR='"/usr/lib/locale"' -DLOCALE_ALIAS_PATH='"/usr/share/locale"'
-DCHARMAP_PATH='"/usr/share/i18n/charmaps"'
-DREPERTOIREMAP_PATH='"/usr/share/i18n/repertoiremaps"'
-DLOCSRCDIR='"/usr/share/i18n/locales"' -Iglibc/locale/programs -Iglibc/locale
-I/<snip>/.build/src/eglibc-localedef-2_14/include
-I/<snip>/.build/src/eglibc-localedef-2_14 -I.
-include /<snip>/.build/src/eglibc-localedef-2_14/include/always.h -Wall
-Wno-format -c -o locarchive.o glibc/locale/programs/locarchive.c
[ALL ] glibc/locale/programs/locarchive.c: In function 'enlarge_archive':
[ALL ] glibc/locale/programs/locarchive.c:303:21: warning: variable
'oldlocrectab' set but not used [-Wunused-but-set-variable]
[ALL ] In file included from glibc/locale/programs/locarchive.c:651:0:
[ALL ] glibc/locale/programs/../../intl/l10nflist.c: In function
'_nl_normalize_codeset':
[ERROR] glibc/locale/programs/../../intl/l10nflist.c:342:9: error:
'_nl_C_locobj_ptr' undeclared (first use in this function)
[ALL ] glibc/locale/programs/../../intl/l10nflist.c:342:9: note: each
undeclared identifier is reported only once for each function it appears in
[ALL ] glibc/locale/programs/locarchive.c: In function
'add_locales_to_archive':
[ALL ] glibc/locale/programs/locarchive.c:1450:7: warning: passing argument
1 of '__xpg_basename' discards 'const' qualifier from pointer target type
[enabled by default]
[ALL ] /usr/include/libgen.h:35:14: note: expected 'char *' but argument is
of type 'const char *'
[ERROR] make[1]: *** [locarchive.o] Error 1

Signed-off-by: "Benoît Thébaudeau" <benoit.thebaudeau@advansee.com>
(transplanted from 4cd9134739b594451794cf61a6e1b137422cdafd)

2011-12-13scripts: fix dumping execution backtrace 1.13
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 13 Dec 2011 23:32:39 +0100] rev 2847
scripts: fix dumping execution backtrace

Dumping the backtrace has been broken since changeset #652e56d6d35a:
scripts: execute each steps in a subshell

We can spawn sub-sub-shells in some cases.

The way the fault handler works is to dump the backtrace, but to avoid
printing it once for every sub-shell (which could get quite confusing),
it simply exits when it detects that it is being run in a sub-shell,
leaving to the top-level shell the work to dump the backtrace.

Because each step is executed in its own sub-shell, the variable arrays
that contain the step name, the source file and line number, are lost
when exiting the per-step sub-shell.

Hence, the backtrace is currently limited to printing only the top-level
main procedure of the shell.

Fix this thus:
- when dumping the bckatraces for the steps & the functions, remember
it was dumped, and only dump it if it was not already dumped
- at the top-level shell, print the hints

Also, rename the top-level step label.

Reported-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 4193d6e6a17430a177fa88c287879c2c35e319f3)

2011-12-12binutils/binutils: fix extra config array variable name 1.13
"Benoît Thébaudeau" <benoit.thebaudeau@advansee.com> [Mon, 12 Dec 2011 20:24:05 +0100] rev 2846
binutils/binutils: fix extra config array variable name

The changeset 2467 #200836977ce6 missed renaming one occurrence of
CT_BINUTILS_EXTRA_CONFIG to CT_BINUTILS_EXTRA_CONFIG_ARRAY, which is fixed by
this patch.

Signed-off-by: "Benoît Thébaudeau" <benoit.thebaudeau@advansee.com>
(transplanted from 8946dd980d9e6c3da3b8f63fe7e35f4af94acf2f)

2011-12-12scripts: unset CONFIG_SITE 1.13
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 12 Dec 2011 21:41:16 +0200] rev 2845
scripts: unset CONFIG_SITE

Some distributions (eg. openSUSE 12.1) systematically export
the CONFIG_SITE environment variable to point to a custom
script setting misc paths for ./configure.

This can, and does, break when cross-compiling for architectures
that are not supported by this script.

The simple workaround is to unset this variable.
NB: buildroot has a similar fix:
http://git.buildroot.org/buildroot/commit/?id=12c9f7dd6dee9c6029b4f9a12d6aac1516911ab4

Reported-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 21f4f28e60ec0342133086c9a51e7f0e5b181fb8)

2011-12-07scripts: create CT_HEADERS_DIR 1.13
Zhenqiang Chen <zhenqiang.chen@linaro.org> [Wed, 07 Dec 2011 16:15:50 +0800] rev 2844
scripts: create CT_HEADERS_DIR

"${CT_SYSROOT_DIR}/usr/include" is only for "${CT_USE_SYSROOT}" = "y".
We should also mkdir when "${CT_USE_SYSROOT}" != "y".
"${CT_HEADERS_DIR}" can support both cases.

Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>
(transplanted from bdff4164a1227ebdd538e0ad3c9b6862b3c5a253)

2011-11-30scripts: use CT_CONFIG_SHELL instead of CT_SHELL 1.13
Titus von Boxberg <titus@v9g.de> [Wed, 30 Nov 2011 12:07:59 +0100] rev 2843
scripts: use CT_CONFIG_SHELL instead of CT_SHELL

CT_SHELL is undefined.
Thus, the generated wrapper scripts are not executable by the kernel
because they do not contain a valid interpreter.
Use CT_CONFIG_SHELL instead.

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

2011-11-22scripts/functions: extract: portable call for old and defective tars 1.13
Titus von Boxberg <titus@v9g.de> [Tue, 22 Nov 2011 10:08:10 +0100] rev 2842
scripts/functions: extract: portable call for old and defective tars

Instead of using -J, --lzma, --use-compress-program or the like
use <compressor> -dc <file> | tar -f -

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

2011-11-18cc/gcc: Apply CT_CC_GCC_DISABLE_PCH to do_cc_core. 1.13
Zhenqiang Chen <zhenqiang.chen@linaro.org> [Fri, 18 Nov 2011 11:32:50 +0800] rev 2841
cc/gcc: Apply CT_CC_GCC_DISABLE_PCH to do_cc_core.

Otherwise, users have to input --disable-libstdcxx-pch option
when building bare-metal CANADIAN C++ compiler.

Reviewed-by: Michael Hope
Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>
(transplanted from e3e1c9d45bddfbfb433ee9d583faf42fa31f50c0)

2012-01-16configure: fix kconfig option names
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 16 Jan 2012 23:45:16 +0100] rev 2840
configure: fix kconfig option names

In the process of converting to autoconf, the kconfig option
were not properly translated.

Fix that.

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

2012-01-17configure: also detect plain grep
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 17 Jan 2012 00:37:59 +0100] rev 2839
configure: also detect plain grep

We need just 'grep', and we need to be able to call it with 'grep -E'.
Check for 'grep', and bailout if egrep != grep -E

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

2012-01-16scripts: fix tools override
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 16 Jan 2012 23:36:42 +0100] rev 2838
scripts: fix tools override

The tools found by the new autostuff configure can contain arguments,
for example: grep -E

This needs separating the paths set for the Makfile from the paths
set for the scripts.

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

2012-01-13cc/gcc: update Linaro GCC revisions to 2012.01
"Benoît Thébaudeau" <benoit.thebaudeau@advansee.com> [Fri, 13 Jan 2012 12:24:55 +0100] rev 2837
cc/gcc: update Linaro GCC revisions to 2012.01

Update Linaro GCC with the latest available revisions.

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

2012-01-15kconfig: add missing files
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 15 Jan 2012 01:04:26 +0100] rev 2836
kconfig: add missing files

The real sources for a few files are the lex/yacc/gperf
files, and the C files are only generated...

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

2012-01-14kconfig: install compiled frontends
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 14 Jan 2012 18:22:06 +0100] rev 2835
kconfig: install compiled frontends

The kconfig frontends are currently instaleld as source files. This is
a remnant of the early times, when I wanted a single installation of
crosstool-NG to be shared across multiple machines, potentially of
different architectures.

This does not really make sense, and it's been a long time since it
was las tpossible in practice.

So, just build the kconfig frontends at make-time, and install them
as we do for all other crosstool-NG dependent files.

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

2011-11-07configure: use autoconf to generate configure
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 07 Nov 2011 22:28:40 +0100] rev 2834
configure: use autoconf to generate configure

Create configure.ac, an autoconf script to generate ./configure
This will be needed by a subsequent patch to properly handle
--build and --host, and more tests, when the kconfig stuff will
be installed pre-built.

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

2012-01-12kernel/linux: update versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 12 Jan 2012 22:41:47 +0100] rev 2833
kernel/linux: update versions

A few newer versions, second shot in a row...

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

2012-01-08kernel/linux: update versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 08 Jan 2012 12:02:14 +0100] rev 2832
kernel/linux: update versions

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

2012-01-03scripts: update config.{guess,sub}
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 03 Jan 2012 23:02:04 +0100] rev 2831
scripts: update config.{guess,sub}

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

2012-01-01cc/gcc: copy file with 'cp -v', it rotates the progress bar
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 01 Jan 2012 22:54:37 +0100] rev 2830
cc/gcc: copy file with 'cp -v', it rotates the progress bar

Installing the gcc test-suite can take a bit of time, so the
progress bar is currently not rotating because there is no
output during the copy. For an unsuspecting user, it could
mean the process hung.

With 'cp -v', the progress bar now rotates.

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

2011-12-31docs: credit Konrad EISELE for the initial multilib support
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 31 Dec 2011 18:47:37 +0100] rev 2829
docs: credit Konrad EISELE for the initial multilib support

Konrad submitted an initial patch adding multlib support:
http://sourceware.org/ml/crossgcc/2011-11/msg00040.html

The patch was full of good ideas, but had a few issues, so
I (Yann E. MORIN) started it all from scatch, re-using part
of the original patch. This got implemented in this series:
hg log -r 446a17b5dd1e:e47d17391ae3

As I forgot to credit Konrad in these changelogs, update the
docs so that the work by Konrad gets credited. Without his
initial effort, we would probably not have had multlib support
so soon. Thank you Konrad!

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

2011-12-28libc/glibc: cleanup CFLAGS handling
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 28 Dec 2011 17:05:46 +0100] rev 2828
libc/glibc: cleanup CFLAGS handling

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

2011-12-27libc/glibc: remove multi-dir
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 27 Dec 2011 16:11:34 +0100] rev 2827
libc/glibc: remove multi-dir

Remove the sysroot/${multi_dir} directory after the libc install.

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

2011-12-27libc/glibc: allow to selectively install headers and/or start-files
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 27 Dec 2011 14:45:03 +0100] rev 2826
libc/glibc: allow to selectively install headers and/or start-files

When doing multilib, we only need the headers from the default variant,
but we need the startfiles for each variants.

Allow the frontend to specify either one, or both.

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

2011-11-23libc/glibc: add multilib-cacpable backend
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 23 Nov 2011 00:11:36 +0100] rev 2825
libc/glibc: add multilib-cacpable backend

For mutlilib, the C library must be built once for each variants.
Special care must be taken to put the resulting libraries in
the proper places.

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

2011-11-22libc/glibc: fix code formatting
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 22 Nov 2011 00:51:37 +0100] rev 2824
libc/glibc: fix code formatting

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

2011-11-22libc/glib: pass installation subdir to backend
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 22 Nov 2011 00:16:37 +0100] rev 2823
libc/glib: pass installation subdir to backend

When building a multilib variant, install in a separate directory, to
avoid clutering the default or any other variant.

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

2011-11-22libc/glibc: set the endian option according to extra CFLAGS
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 22 Nov 2011 00:11:51 +0100] rev 2822
libc/glibc: set the endian option according to extra CFLAGS

When building a multilib, some extra CFLAGS can override the
default config option. This is the case for the endianness
selection.

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

2011-11-21libc/glibc: set the float option according to extra CFLAGS
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 21 Nov 2011 23:56:53 +0100] rev 2821
libc/glibc: set the float option according to extra CFLAGS

When building a multilib, some extra CFLAGS can override the
default config option. This is the case for the floating point
selection.

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

2011-11-21libc/glibc: add extra CFLAGS when building the C library
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 21 Nov 2011 23:33:08 +0100] rev 2820
libc/glibc: add extra CFLAGS when building the C library

When building multilib, we need extra CFLAGS that tell the compiler
to use non-default settings (eg. big/little endian, hard/soft float,
-march/cpu/tune flags, and so on...).

We have to pass these flags to the build.

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

2011-12-13libc/glibc: no default mode for backend
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 13 Dec 2011 11:51:07 +0100] rev 2819
libc/glibc: no default mode for backend

The caller SHALL explicitly ask for a nmode, and not rely on a default mode.
That's what actually happens, so we can get rid of the default.

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

2011-12-30cc/gcc: print supported multilibs
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 30 Dec 2011 21:43:10 +0100] rev 2818
cc/gcc: print supported multilibs

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

2011-11-23cc/gcc: build multilib
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 23 Nov 2011 23:51:07 +0100] rev 2817
cc/gcc: build multilib

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

2011-11-23binutils/binutils: build multilib
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 23 Nov 2011 23:27:12 +0100] rev 2816
binutils/binutils: build multilib

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

2011-11-23config: add option to build multilib
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 23 Nov 2011 23:25:43 +0100] rev 2815
config: add option to build multilib

Add a toolchain-wide option to enable multilib.

This is currently a noop, and will be implemented
in subsequent patches for each impacted components.

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

2011-12-31cc/gcc: add option to use system zlib
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 31 Dec 2011 16:23:27 +0100] rev 2814
cc/gcc: add option to use system zlib

In some cases, it might be desirable to use the system zlib

Eg. because latest gcc seem to be totally borked when it comes
to multilib, and tries to build a multilib host zlib, when it
is *absolutely* *not* needed: we want mulitlib on the target,
not on the host! Sigh... :-(

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

2011-12-30libc/uClibc: add latest version
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 30 Dec 2011 22:04:24 +0100] rev 2813
libc/uClibc: add latest version

Add 0.9.32.1

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

2011-12-30kernel/linux: update to latest versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 30 Dec 2011 14:16:49 +0100] rev 2812
kernel/linux: update to latest versions

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

2011-12-30scripts: update config.guess and config.sub
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 30 Dec 2011 14:15:43 +0100] rev 2811
scripts: update config.guess and config.sub

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

2011-12-14binutils/binutils: add the patches used by BuildRoot for 2.22
"Benoît Thébaudeau" <benoit.thebaudeau@advansee.com> [Wed, 14 Dec 2011 19:57:47 +0100] rev 2810
binutils/binutils: add the patches used by BuildRoot for 2.22

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

2011-12-14libc/eglibc: fix localedef 2.14 build
"Benoît Thébaudeau" <benoit.thebaudeau@advansee.com> [Wed, 14 Dec 2011 16:55:22 +0100] rev 2809
libc/eglibc: fix localedef 2.14 build

The localedef of eglibc 2.14 requires NOT_IN_libc to be defined in order to
compile intl/l10nflist.c.

This is because localedef is built separately from eglibc and uses some parts of
eglibc that don't compile in standalone without this preprocessor definition.

This fixes the following error:

[ALL ] gcc -g -O2 -DNO_SYSCONF -DNO_UNCOMPRESS
-DLOCALE_PATH='"/usr/lib/locale:/usr/share/i18n"'
-DLOCALEDIR='"/usr/lib/locale"' -DLOCALE_ALIAS_PATH='"/usr/share/locale"'
-DCHARMAP_PATH='"/usr/share/i18n/charmaps"'
-DREPERTOIREMAP_PATH='"/usr/share/i18n/repertoiremaps"'
-DLOCSRCDIR='"/usr/share/i18n/locales"' -Iglibc/locale/programs -Iglibc/locale
-I/<snip>/.build/src/eglibc-localedef-2_14/include
-I/<snip>/.build/src/eglibc-localedef-2_14 -I.
-include /<snip>/.build/src/eglibc-localedef-2_14/include/always.h -Wall
-Wno-format -c -o locarchive.o glibc/locale/programs/locarchive.c
[ALL ] glibc/locale/programs/locarchive.c: In function 'enlarge_archive':
[ALL ] glibc/locale/programs/locarchive.c:303:21: warning: variable
'oldlocrectab' set but not used [-Wunused-but-set-variable]
[ALL ] In file included from glibc/locale/programs/locarchive.c:651:0:
[ALL ] glibc/locale/programs/../../intl/l10nflist.c: In function
'_nl_normalize_codeset':
[ERROR] glibc/locale/programs/../../intl/l10nflist.c:342:9: error:
'_nl_C_locobj_ptr' undeclared (first use in this function)
[ALL ] glibc/locale/programs/../../intl/l10nflist.c:342:9: note: each
undeclared identifier is reported only once for each function it appears in
[ALL ] glibc/locale/programs/locarchive.c: In function
'add_locales_to_archive':
[ALL ] glibc/locale/programs/locarchive.c:1450:7: warning: passing argument
1 of '__xpg_basename' discards 'const' qualifier from pointer target type
[enabled by default]
[ALL ] /usr/include/libgen.h:35:14: note: expected 'char *' but argument is
of type 'const char *'
[ERROR] make[1]: *** [locarchive.o] Error 1

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

2011-12-15libc/newlib: build manual for newlib
Zhenqiang Chen <zhenqiang.chen@linaro.org> [Thu, 15 Dec 2011 15:20:33 +0800] rev 2808
libc/newlib: build manual for newlib

Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>
[yann.morin.1998@anciens.enib.fr: copy with a single call to 'cp']
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-12-13scripts: fix dumping execution backtrace
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 13 Dec 2011 23:32:39 +0100] rev 2807
scripts: fix dumping execution backtrace

Dumping the backtrace has been broken since changeset #652e56d6d35a:
scripts: execute each steps in a subshell

We can spawn sub-sub-shells in some cases.

The way the fault handler works is to dump the backtrace, but to avoid
printing it once for every sub-shell (which could get quite confusing),
it simply exits when it detects that it is being run in a sub-shell,
leaving to the top-level shell the work to dump the backtrace.

Because each step is executed in its own sub-shell, the variable arrays
that contain the step name, the source file and line number, are lost
when exiting the per-step sub-shell.

Hence, the backtrace is currently limited to printing only the top-level
main procedure of the shell.

Fix this thus:
- when dumping the bckatraces for the steps & the functions, remember
it was dumped, and only dump it if it was not already dumped
- at the top-level shell, print the hints

Also, rename the top-level step label.

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

2011-11-21libc/glibc: document the glibc backend arguments
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 21 Nov 2011 23:35:21 +0100] rev 2806
libc/glibc: document the glibc backend arguments

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

2011-11-21libc/glibc: create build dir using libc_mode
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 21 Nov 2011 23:26:18 +0100] rev 2805
libc/glibc: create build dir using libc_mode

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

2011-12-12binutils/binutils: fix extra config array variable name
"Benoît Thébaudeau" <benoit.thebaudeau@advansee.com> [Mon, 12 Dec 2011 20:24:05 +0100] rev 2804
binutils/binutils: fix extra config array variable name

The changeset 2467 #200836977ce6 missed renaming one occurrence of
CT_BINUTILS_EXTRA_CONFIG to CT_BINUTILS_EXTRA_CONFIG_ARRAY, which is fixed by
this patch.

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

2011-12-12debug/gdb: update Linaro GDB revisions to 2011.12
"Benoît Thébaudeau" <benoit.thebaudeau@advansee.com> [Mon, 12 Dec 2011 13:27:59 +0100] rev 2803
debug/gdb: update Linaro GDB revisions to 2011.12

Update Linaro GDB with the latest available revisions.

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

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

Update Linaro GCC with the latest available revisions.

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

2011-12-12scripts: unset CONFIG_SITE
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 12 Dec 2011 21:41:16 +0200] rev 2801
scripts: unset CONFIG_SITE

Some distributions (eg. openSUSE 12.1) systematically export
the CONFIG_SITE environment variable to point to a custom
script setting misc paths for ./configure.

This can, and does, break when cross-compiling for architectures
that are not supported by this script.

The simple workaround is to unset this variable.
NB: buildroot has a similar fix:
http://git.buildroot.org/buildroot/commit/?id=12c9f7dd6dee9c6029b4f9a12d6aac1516911ab4

Reported-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-12-12kernel/linux: fix missing quote
"Benoît Thébaudeau" <benoit.thebaudeau@advansee.com> [Mon, 12 Dec 2011 21:47:08 +0100] rev 2800
kernel/linux: fix missing quote

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

2011-12-11kernel/linux: add latest versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 11 Dec 2011 23:14:57 +0100] rev 2799
kernel/linux: add latest versions

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

2011-12-12kernel/linux: add alternate download locations
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 12 Dec 2011 00:01:54 +0100] rev 2798
kernel/linux: add alternate download locations

Some longterm versions are not in the usual directory.
Account for these new locations.

Get rid of the mirror location, now that the main kernel site is
(almost) back to normal operations.

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

2011-11-28binutils/binutils: add binutils 2.22
Titus von Boxberg <titus@v9g.de> [Mon, 28 Nov 2011 21:27:08 +0100] rev 2797
binutils/binutils: add binutils 2.22

Enable (EXPERIMENTAL) selection of binutils 2.22

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

2011-12-07scripts: create CT_HEADERS_DIR
Zhenqiang Chen <zhenqiang.chen@linaro.org> [Wed, 07 Dec 2011 16:15:50 +0800] rev 2796
scripts: create CT_HEADERS_DIR

"${CT_SYSROOT_DIR}/usr/include" is only for "${CT_USE_SYSROOT}" = "y".
We should also mkdir when "${CT_USE_SYSROOT}" != "y".
"${CT_HEADERS_DIR}" can support both cases.

Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>

2011-11-30scripts: use CT_CONFIG_SHELL instead of CT_SHELL
Titus von Boxberg <titus@v9g.de> [Wed, 30 Nov 2011 12:07:59 +0100] rev 2795
scripts: use CT_CONFIG_SHELL instead of CT_SHELL

CT_SHELL is undefined.
Thus, the generated wrapper scripts are not executable by the kernel
because they do not contain a valid interpreter.
Use CT_CONFIG_SHELL instead.

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

2011-11-25config/target: enforce floating point support
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 25 Nov 2011 23:59:29 +0100] rev 2794
config/target: enforce floating point support

Do not prompt for the type of floating-point support, if the
architecture did not explicitly stated that it did support it.

Reported-by: Morten Thunberg Svendsen <mts@doredevelopment.dk>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-11-24arch/sparc: Sparc supports setting the floating point type
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 24 Nov 2011 19:48:35 +0100] rev 2793
arch/sparc: Sparc supports setting the floating point type

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

2011-11-24arch/powerpc: PowerPC supports setting the floating point type
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 24 Nov 2011 19:44:17 +0100] rev 2792
arch/powerpc: PowerPC supports setting the floating point type

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

2011-11-24arch/mips: MIPS supports setting the floating point type
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 24 Nov 2011 19:42:02 +0100] rev 2791
arch/mips: MIPS supports setting the floating point type

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

2011-11-24arch/arm: ARM supports setting the floating point type
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 24 Nov 2011 19:38:37 +0100] rev 2790
arch/arm: ARM supports setting the floating point type

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

2011-11-25config/target: add float support selection
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 25 Nov 2011 23:57:55 +0100] rev 2789
config/target: add float support selection

Changeset #149c33923f47 broke the architectures that do not
support the --with-float=X ./configure flag (in gcc). For example,
x86_64 does not support it.

Add a new blind config option that architectures can set to tell
they support floating point selection.

Reported-by: Morten Thunberg Svendsen <mts@doredevelopment.dk>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-11-30arch: rename the SUPPORT_XXX options
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 30 Nov 2011 00:25:22 +0100] rev 2788
arch: rename the SUPPORT_XXX options

First, 'SUPPORT' should be spelled 'SUPPORTS'.

Second, 'SUPPORT_XXX' really means 'supports --with-xxx', so rename the
affected options accordingly. Update the affected archs to match the new
namings.

Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-11-28libc/newlib: remove hard-coded "-O"
Zhenqiang Chen <zhenqiang.chen@linaro.org> [Mon, 28 Nov 2011 16:05:23 +0800] rev 2787
libc/newlib: remove hard-coded "-O"

With hard-coded "-O", users can not customize CFLAGS_FOR_TARGET
by CT_TARGET_CFLAGS. If "-O" is needed, users can input it in
CT_TARGET_CFLAGS. By default, "-Os" is enabled.

Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>

2011-11-28config: fix NLS typo
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 28 Nov 2011 18:35:17 +0100] rev 2786
config: fix NLS typo

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

2011-11-22scripts/functions: extract: portable call for old and defective tars
Titus von Boxberg <titus@v9g.de> [Tue, 22 Nov 2011 10:08:10 +0100] rev 2785
scripts/functions: extract: portable call for old and defective tars

Instead of using -J, --lzma, --use-compress-program or the like
use <compressor> -dc <file> | tar -f -

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

2011-11-23debug/gdb: add extra config for gdb cross.
Zhenqiang Chen <zhenqiang.chen@linaro.org> [Wed, 23 Nov 2011 13:15:27 +0800] rev 2784
debug/gdb: add extra config for gdb cross.

Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>
[yann.morin.1998@anciens.enib.fr: prompt rewording, as suggested by M. Hope]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-11-22libc/newlib: add option to optimise for size
Zhenqiang Chen <zhenqiang.chen@linaro.org> [Tue, 22 Nov 2011 14:18:14 +0800] rev 2783
libc/newlib: add option to optimise for size

Add an option to build with -Os instead of the default -O.

Reviewed-by: Michael Hope
Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>

2011-11-18cc/gcc: Apply CT_CC_GCC_DISABLE_PCH to do_cc_core.
Zhenqiang Chen <zhenqiang.chen@linaro.org> [Fri, 18 Nov 2011 11:32:50 +0800] rev 2782
cc/gcc: Apply CT_CC_GCC_DISABLE_PCH to do_cc_core.

Otherwise, users have to input --disable-libstdcxx-pch option
when building bare-metal CANADIAN C++ compiler.

Reviewed-by: Michael Hope
Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>

2011-11-18libc/newlib: Add extra config for newlib.
Zhenqiang Chen <zhenqiang.chen@linaro.org> [Fri, 18 Nov 2011 11:47:30 +0800] rev 2781
libc/newlib: Add extra config for newlib.

So users can input config like --enable-newlib-register-fini.

Reviewed-by: Michael Hope
Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>

2011-11-17cc/gcc: handle NLS option
Zhenqiang Chen <zhenqiang.chen@linaro.org> [Thu, 17 Nov 2011 18:00:28 +0800] rev 2780
cc/gcc: handle NLS option

Add --disable-nls config when option "Enable nls" is not selected.

Reviewed-by: Michael Hope
Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>

2011-11-17binutils/binutils: handle NLS option
Zhenqiang Chen <zhenqiang.chen@linaro.org> [Thu, 17 Nov 2011 17:59:44 +0800] rev 2779
binutils/binutils: handle NLS option

Add --disable-nls config when option "Enable nls" is not selected.

Reviewed-by: Michael Hope
Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>

2011-11-18config/toolchain: Add "Enable nls" in "Toolchain options".
Zhenqiang Chen <zhenqiang.chen@linaro.org> [Fri, 18 Nov 2011 15:29:18 +0800] rev 2778
config/toolchain: Add "Enable nls" in "Toolchain options".

Reviewed-by: Michael Hope
Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>

2011-11-20libc/uClibc: use endian string in tests
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 20 Nov 2011 21:08:27 +0100] rev 2777
libc/uClibc: use endian string in tests

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

2011-11-20libc/eglibc: use endian string in tests
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 20 Nov 2011 21:06:36 +0100] rev 2776
libc/eglibc: use endian string in tests

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

2011-11-20arch/sh: use endian string in tests
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 20 Nov 2011 21:05:36 +0100] rev 2775
arch/sh: use endian string in tests

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

2011-11-20arch/mips: use endian string in tests
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 20 Nov 2011 21:04:31 +0100] rev 2774
arch/mips: use endian string in tests

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

2011-11-20scripts/functions: use endian string in tests
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 20 Nov 2011 21:01:34 +0100] rev 2773
scripts/functions: use endian string in tests

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

2011-11-14config: introduce endianness as a string
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 14 Nov 2011 19:13:00 +0100] rev 2772
config: introduce endianness as a string

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

2011-11-201.13: update version to 1.13.2+hg 1.13
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 20 Nov 2011 20:57:06 +0100] rev 2771
1.13: update version to 1.13.2+hg

2011-11-20Tagging release 1.13.2 1.13
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 20 Nov 2011 20:57:06 +0100] rev 2770
Tagging release 1.13.2

2011-11-201.13: update version to 1.13.2 1.13 crosstool-ng-1.13.2
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 20 Nov 2011 20:57:06 +0100] rev 2769
1.13: update version to 1.13.2

2011-11-17arch/x86: prescott is an i686 1.13
Titus von Boxberg <titus@v9g.de> [Thu, 17 Nov 2011 14:18:44 +0100] rev 2768
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>
(transplanted from d063b1ae8c1b30c7006b110d0f9045e6d7c34f13)

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

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

2011-10-16complibs/cloog: fix extraction 1.13
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 16 Oct 2011 14:58:29 +0200] rev 2766
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>
(transplanted from f070d922facf42b0395b7db909e1867d45b245dd)

2011-11-16scripts: add support for building manuals
Michael Hope <michael.hope@linaro.org> [Wed, 16 Nov 2011 10:06:21 +1300] rev 2765
scripts: add support for building manuals

Add support for building the HTML and PDF manuals for the major
components. Implement for binutils, GCC, GDB, and GLIBC.

Always build all manuals and install a subset. Be explicit about the
subset to reduce the clutter and to avoid getting copies of common
manuals like bfd from all of the sourceware based components. Downside of
being explicit is that you need to update it when a new component
comes along.

Build the manuals as part of the last GCC build, namely 'cc' for glibc
based ones and cc_core_pass_2 for baremetal.

An example of the output is at:
http://people.linaro.org/~michaelh/incoming/crosstool-NG/

Signed-off-by: Michael Hope <michael.hope@linaro.org>
[yann.morin.1998@anciens.enib.fr: depends on ! remove docs; gold manual install]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-11-16docs: Add strategies for assembling root filesystems.
Trevor Woerner <twoerner@gmail.com> [Wed, 16 Nov 2011 17:36:17 -0500] rev 2764
docs: Add strategies for assembling root filesystems.

Expand the documentation for using a crosstool-NG-generated toolchain for
building a root filesystem for a target device.

Signed-off-by: "Trevor Woerner" <twoerner@gmail.com>
yann.morin.1998@anciens.enib.fr: some eye-candy]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-11-07scripts: use wget, not curl
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 07 Nov 2011 21:40:28 +0100] rev 2763
scripts: use wget, not curl

It seems wget is more popular than curl.

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

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

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

2011-11-14libc/uClibc: use the floating-point string option in tests
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 14 Nov 2011 18:54:37 +0100] rev 2761
libc/uClibc: use the floating-point string option in tests

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

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>

2011-06-30libc/eglibc: Add option that allows for getting svn over http://
Bryan Hundven <bryanhundven@gmail.com> [Thu, 30 Jun 2011 18:14:01 +0200] rev 2520
libc/eglibc: Add option that allows for getting svn over http://

Instead of getting eglibc over standard svn://svn.eglibc.org
Add an option that allows the user to get source from
http://www.eglibc.org/svn

This is useful if you are behind a firewall or proxy.
If you are behind a proxy, don't forget to configure
${HOME}/.subversion/servers

In the [global] section setup your proxy configuration.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
[yann.morin.1998@anciens.enib.fr: removed useless 'default n']
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

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

2011-06-27libc/uClibc: add latest release 0.9.32 + patchset
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 27 Jun 2011 00:12:29 +0200] rev 2518
libc/uClibc: add latest release 0.9.32 + patchset

The patchset was obtained by dumping each changeset on the
upstream 0.9.32 branch since the release:
git log v0.9.32..origin/0.9.32 |sed -r -e '/^commit/!d; s/.* //;' |tac

and then creating a patch from each changeset.

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

2011-06-27config/kernel: Update kernel versions
Bryan Hundven <bryanhundven@gmail.com> [Mon, 27 Jun 2011 12:44:45 -0700] rev 2517
config/kernel: Update kernel versions

Add 2.6.39.2
Update 2.6.34 to 2.6.34.10
Update 2.6.33 to 2.6.33.15
Update 2.6.32 to 2.6.32.42

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

2011-06-27cc/gcc: Update gcc versions
Bryan Hundven <bryanhundven@gmail.com> [Mon, 27 Jun 2011 12:40:23 -0700] rev 2516
cc/gcc: Update gcc versions

Add gcc 4.6.1, 4.3.6, and 4.5.3.
Move 4.4.6 version string so that it is in order.

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

2011-06-26glibc: Refactor startfiles/headers into do_libc_backend()
Bryan Hundven <bryanhundven@gmail.com> [Sun, 26 Jun 2011 03:26:54 -0700] rev 2515
glibc: Refactor startfiles/headers into do_libc_backend()

Refactor the contents of 'do_libc_start_files()' and 'do_libc()' into a
parameterized 'do_libc_backend()'. 'do_libc_start_files()' and 'do_libc()'
call 'do_libc_backend()' with either 'libc_mode=startfiles' or
'libc_mode=final' (respectively) so that the startfiles/headers and
the final libc builds are configured and built with the same options.

One example of where this is needed is when building a mips toolchain.
Previously, if you were building an n32 toolchain, you wouldn't have
noticed an issue, because if '-mabi' is not in CFLAGS, n32 is the
default:

http://sourceware.org/git/?p=glibc-ports.git;a=blob;f=sysdeps/mips/preconfigure;hb=HEAD

But when trying to build an o32 or n64 toolchain the build would
have failed. This is because (e)glibc expects "-mabi={o32,n32,n64}" to be
in CFLAGS, but was not previously provided in 'do_libc_start_files()'.
The build failure would happen in the shared-core gcc when it tries to
configure an n64 or o32 gcc with an n32 libc.

A simpler solution would have been to just add TARGET_CFLAGS to configure
in 'do_libc_start_files()', but this way makes configure and make
consistent for both steps.

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

2011-06-22kernel/linux: fix type in version strings
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 22 Jun 2011 22:54:14 +0200] rev 2514
kernel/linux: fix type in version strings

I missed refreshing the patch before pushing. :-(

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

2011-06-21config/kernel: Update linux kernel versions
Bryan Hundven <bryanhundven@gmail.com> [Tue, 21 Jun 2011 21:01:20 -0700] rev 2513
config/kernel: Update linux kernel versions

Add 2.6.39.1
Drop 2.6.38-2.6.38.6 provide the latest 2.6.38.8
Update longterm trees:
* 2.6.33 is 2.6.33.14
* 2.6.32 is 2.6.32.41

2011-06-21config/eglibc: Add eglibc-2_14 branch
Bryan Hundven <bryanhundven@gmail.com> [Tue, 21 Jun 2011 20:52:08 -0700] rev 2512
config/eglibc: Add eglibc-2_14 branch

Eglibc-2_14 has been branched.

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

2011-06-13samples: add mips-malta-linux-gnu toolchain config
Antony Pavlov <antonynpavlov@gmail.com> [Mon, 13 Jun 2011 22:54:29 +0400] rev 2511
samples: add mips-malta-linux-gnu toolchain config

2011-06-16cc/gcc: bump Linaro GCC revisions to 2011.06-0
"Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com> [Thu, 16 Jun 2011 21:10:12 +0200] rev 2510
cc/gcc: bump Linaro GCC revisions to 2011.06-0

This patch bumps the Linaro GCC revisions to 2011.06-0 when applicable.

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

2011-06-08configure: check for ncurses libs + headers in one go
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 08 Jun 2011 19:32:20 +0200] rev 2509
configure: check for ncurses libs + headers in one go

./configure now has the possibility to check for libraries and headers
in one go, so we can use it! :-)

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

2011-06-08debug/cross-gdb: check host dependencies
"Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com> [Wed, 08 Jun 2011 15:47:43 +0200] rev 2508
debug/cross-gdb: check host dependencies

Cross-gdb depends on expat and python. If either is missing, cross-gdb will
build successfully, but lacking some features.

Especially, if expat is missing, cross-gdb will be unable to parse the target
description, which may lead to runtime malfunctions and the following GDB
warning:
"Can not parse XML target description; XML support was disabled at compile time"

Hence, expat should be considered mandatory.

On the other hand, the features missing without python are not critical, so
python should not be considered mandatory.

This patch does the following:
- At configure time, warn the user if either expat or python is missing.
- In menuconfig, disable the static build options regarding cross-gdb if no
static version of expat is available, and disable cross-gdb if expat is
missing.

Signed-off-by: "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
[yann.morin.1998@anciens.enib.fr: add comment for impossible static cross-gdb]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-06-08configure: give check_for() the ability to test several item types at once
"Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com> [Wed, 08 Jun 2011 15:47:03 +0200] rev 2507
configure: give check_for() the ability to test several item types at once

Currently, check_for() can only test one of prog, inc or lib at once. This patch
removes this limitation.

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

2011-06-04configure: rationalise error messages with meaningful texts
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 04 Jun 2011 19:17:26 +0200] rev 2506
configure: rationalise error messages with meaningful texts

Currently, error messages just state the obvious: a required
component is required. While in some cases, there is not much
else to say, in some other cases we could tell much more.

For example, a missing libstdc++ means no static toolchain.

Also, format error and warning messages in a similar fashion,
with a {error,warning} intro, followed by the message specified
by the caller.

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

2011-06-04Makefile: make it work for auto-completion
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 04 Jun 2011 17:43:49 +0200] rev 2505
Makefile: make it work for auto-completion

The latest autocompletion calls 'make -qp' to get all the possible
targets. This currently fails, as our makefile is calling itself
again and again ad-libitum.

Fix it by detecting that the recursion level is not 0, and bail out
if so. It works so well that it has the side effect of showing only
the 'public' target, and hide our internal ones! :-)

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

2011-06-04libc/glibc: do not try to download NPTL add-on
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 04 Jun 2011 17:15:58 +0200] rev 2504
libc/glibc: do not try to download NPTL add-on

The NPTL add-on has always been internal, so there is no
reason to try downloading it, it will never succeed.
Add provision to skip other add-ons as well.

For consistency, do the same test in both glibc and eglibc.

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

2011-06-03kconfig: prepend CT-NG's version tag to PKGVERSION
"Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com> [Fri, 03 Jun 2011 17:21:56 +0200] rev 2503
kconfig: prepend CT-NG's version tag to PKGVERSION

"crosstool-NG-${CT_VERSION}" is currently the default for TOOLCHAIN_PKGVERSION,
and this options is passed as is to --with-pkgversion.

This patch prepends "crosstool-NG ${CT_VERSION}" to TOOLCHAIN_PKGVERSION before
passing it to --with-pkgversion.

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

2011-06-02functions: save & restore the static companion libraries install dir
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 02 Jun 2011 22:30:55 +0200] rev 2502
functions: save & restore the static companion libraries install dir

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

2011-06-02functions: fix downloading files
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 02 Jun 2011 23:56:13 +0200] rev 2501
functions: fix downloading files

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

2011-06-02cc/gcc: CC_STATIC_LIBSTDCXX 'depends on' CONFIGURE_has_static_libstdcpp
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 02 Jun 2011 19:50:12 +0200] rev 2500
cc/gcc: CC_STATIC_LIBSTDCXX 'depends on' CONFIGURE_has_static_libstdcpp

Hide the staticaly linked libstdc++ option if the static libstdc++ is not
present, detected at configure time.

Add a blind option that says whether static linking is possible at all.
It defaults to 'y', but depends on the needed CONFIGURE_* options. For
now, it only depends on static libtdc++, but new dependencies can be
easily added.

Hide the global static toolchain option behind this new option.

Original patch by Bryan Hundven <bryanhundven@gmail.com>

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

2011-06-02configure: check for libstdc++.{so,dylib,a}
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 02 Jun 2011 19:49:36 +0200] rev 2499
configure: check for libstdc++.{so,dylib,a}

It's probably a good thing to check for at least one instance of
libstdc++.{so,dylib,a} at configure time. At least one is needed
by the companion libraries and gcc.

Original patch by Bryan Hundven <bryanhundven@gmail.com>

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

2011-06-02configure: add prefix to err messages in has_or_{abort,warn}
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 02 Jun 2011 21:43:36 +0200] rev 2498
configure: add prefix to err messages in has_or_{abort,warn}

Make it easier to spot messages spewed out by has_or_{abort,warn}.

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

2011-06-02configure: maintain single quotes in error messages
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 02 Jun 2011 19:58:05 +0200] rev 2497
configure: maintain single quotes in error messages

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

2011-05-30glibc: properly handle internal addons
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 30 May 2011 23:05:28 +0200] rev 2496
glibc: properly handle internal addons

Some addons are bundled with glibc/eglibc, so we should not try to
download and extract them.

This is done as thus:
- at download time:
- if the add-on download fails, keep going;
- at extract time:
- if the addon is present in the source tree, ignore it;
- if the addon is missing in the source tree:
- if the archive is present, extract it;
- if the archive is missing, bail out.

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

2011-05-31libc/eglibc: use generic SVN functions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 31 May 2011 00:20:44 +0200] rev 2495
libc/eglibc: use generic SVN functions

eglibc is only available from SVN. The script currently calls svn
in its own tortuous and convoluted way.

Use the egeneric SVN extract functions, and sinplify the eglibc
download function.

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

2011-05-31scripts/functions: do not abort on failed svn
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 31 May 2011 00:57:36 +0200] rev 2494
scripts/functions: do not abort on failed svn

In case of eglibc, some add-ons that were previously external are
now internal (bundled with the main sources).

So we do not want to fail if an add-on can't be downloaded; we
want to post-pone the check until we can extract the main archive.

So:
- try to retrieve the add-on
- if it fails, print a warning instead of calling CT_Abort
- return 1

So, components that want to catch the error and want to handle it can,
while components that do not will gracefuly fail thanks to our catching
every errors.

Bonus: it works without changing any existing retrieval procedure! :-)

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

2011-05-30scripts/functions: do not abort on failed extract
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 30 May 2011 23:24:45 +0200] rev 2493
scripts/functions: do not abort on failed extract

For glibc/eglibc, if the add-on can not be extracted, we want to catch
the error to print a meaningful error message.

So:
- try to extract the tarball
- if it fails, print a waring instead of calling CT_Abort
- return 1

So, components that want to catch the error and want to handle it can,
while components that do not will gracefuly fail thanks to our catching
every errors.

Bonus: it works without changing any existing extract procedure! :-)

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

2011-05-30scripts/functions: do not abort on failed download
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 30 May 2011 23:24:11 +0200] rev 2492
scripts/functions: do not abort on failed download

In case of glibc/eglibc, some add-ons that were previously external are
now internal (bundled with the main sources).

So we do not want to fail if an add-on tarball can't be downloaded; we
want to post-pone the check until we can extract the main archive.

So:
- try to download the tarball
- if it fails, print a warning instead of calling CT_Abort
- return 1

So, components that want to catch the error and want to handle it can,
while components that do not will gracefuly fail thanks to our catching
every errors.

Bonus: it works without changing any existing retrieval procedure! :-)

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

2011-05-31cc/gcc: fix a misleading FIXME
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 31 May 2011 01:30:54 +0200] rev 2491
cc/gcc: fix a misleading FIXME

The FIXME about the static libstdc++ is misleading; it only deserves
being an INFO.

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

2011-05-31gdb: use the PKGVERSION and BUGURL options
"Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com> [Tue, 31 May 2011 21:03:03 +0200] rev 2490
gdb: use the PKGVERSION and BUGURL options

This patch makes gdb benefit from the TOOLCHAIN_PKGVERSION and
TOOLCHAIN_BUGURL options.

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

2011-05-31eglibc: use the PKGVERSION and BUGURL options
"Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com> [Tue, 31 May 2011 20:55:30 +0200] rev 2489
eglibc: use the PKGVERSION and BUGURL options

This patch makes eglibc benefit from the TOOLCHAIN_PKGVERSION and
TOOLCHAIN_BUGURL options.

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

2011-05-31binutils: use the PKGVERSION and BUGURL options
"Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com> [Tue, 31 May 2011 20:39:42 +0200] rev 2488
binutils: use the PKGVERSION and BUGURL options

This patch makes binutils benefit from the TOOLCHAIN_PKGVERSION and
TOOLCHAIN_BUGURL options.

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

2011-05-31gcc: promote PKGVERSION and BUGURL options to toolchain level
"Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com> [Tue, 31 May 2011 20:12:35 +0200] rev 2487
gcc: promote PKGVERSION and BUGURL options to toolchain level

This patch promotes the PKGVERSION and BUGURL options to toolchain level so that
all toolchain components supporting them can benefit from them.

These options are passed to configure through --with-pkgversion and
--with-bugurl.

They are supported by binutils 2.18+, gcc 4.3+, eglibc 2.9+ and gdb 7.0+.

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

2011-05-31gcc: add a CC_GCC_HAS_PKGVERSION_BUGURL option
"Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com> [Tue, 31 May 2011 19:55:59 +0200] rev 2486
gcc: add a CC_GCC_HAS_PKGVERSION_BUGURL option

This patch adds a blind option CC_GCC_HAS_PKGVERSION_BUGURL to test the support
of --with-pkgversion and --with-bugurl by GCC's configure.

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