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>

2011-05-31scripts/addToolVersion.sh: add a function to extract fields from versions
"Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com> [Tue, 31 May 2011 17:20:52 +0200] rev 2485
scripts/addToolVersion.sh: add a function to extract fields from versions

This patch adds a function to extract major, minor, revision, etc. from version
numbers.

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

2011-05-31kconfig: remove useless 'default n'
"Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com> [Tue, 31 May 2011 16:27:39 +0200] rev 2484
kconfig: remove useless 'default n'

kconfig bools are disabled by default, so specifying 'default n' is useless and
noisy. This patch removes all occurrences of 'default n'.

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

2011-05-29libc/glibc: commonalise extraction btw glibc and eglibc
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 29 May 2011 19:24:41 +0200] rev 2483
libc/glibc: commonalise extraction btw glibc and eglibc

glibc and eglibc have a very similar extraction process, so it
makes sense to commonalise it.

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

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

2011-05-26configure: add possibility to set arbitrary variable in check_for
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 26 May 2011 22:51:03 +0200] rev 2481
configure: add possibility to set arbitrary variable in check_for

If check_for is able to find the required prog/inc/lib, allow it to
set an arbitrary variable to 'y'. This variable is then pushed down
to the kconfig definition.

For example:
has_or_abort prog=foobar kconfig=has_foobar

If foobar is available, it yields a kconfig variable defaulting to y:
config CONFIGURE_has_foobar
bool
default y

If foobar is missing, it yields a kconfig variable defaulting to n:
config CONFIGURE_has_foobar
bool

Thus it is possible to depends on that variabel to show/hide options:
config SOME_FEATURE
bool
prompt "Some feature"
depends on CONFIGURE_has_foobar

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

2011-05-26configure: add has_or_warn
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 26 May 2011 18:33:53 +0200] rev 2480
configure: add has_or_warn

By popular request, add a function to only warn on missing stuff.

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

2011-05-26configure: move error message down to has_or_abort
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 26 May 2011 18:40:53 +0200] rev 2479
configure: move error message down to has_or_abort

When has_or_warn will come, we do want to print the error message
only in has_or_abort, so move it down there.

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

2011-05-25debug/gdb: bump Linaro revision to 2011.05-0
"Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com> [Wed, 25 May 2011 21:21:03 +0200] rev 2478
debug/gdb: bump Linaro revision to 2011.05-0

This patch bumps the Linaro GDB revision to 2011.05-0.

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

2011-05-25cc/gcc: bump Linaro revisions to 2011.05-0
"Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com> [Wed, 25 May 2011 21:19:09 +0200] rev 2477
cc/gcc: bump Linaro revisions to 2011.05-0

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

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

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

2011-05-24scripts: fix broken variable name
"Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com> [Tue, 24 May 2011 14:15:47 +0200] rev 2475
scripts: fix broken variable name

This patch fixes a config variable name missing its 'CT_' prefix.

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

2011-05-22kconfig: fix forward dependencies
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 22 May 2011 17:44:34 +0200] rev 2474
kconfig: fix forward dependencies

In case a set of options are conditional to two different paths,
the forward dependencies in these options is wrong, but in the
first path.

Fix by Arnaud Lacombe on linux-kbuild ML:
http://www.spinics.net/lists/linux-kbuild/msg04832.html

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

2011-05-21kernel/linux: add latest versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 21 May 2011 12:38:52 +0200] rev 2473
kernel/linux: add latest versions

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

2011-05-211.11: update version to 1.11.3+hg 1.11
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 21 May 2011 01:10:10 +0200] rev 2472
1.11: update version to 1.11.3+hg

2011-05-21Tagging release 1.11.3 1.11
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 21 May 2011 01:10:10 +0200] rev 2471
Tagging release 1.11.3

2011-05-211.11: update version to 1.11.3 1.11 crosstool-ng-1.11.3
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 21 May 2011 01:10:10 +0200] rev 2470
1.11: update version to 1.11.3

2011-05-18config: document array-capable variables
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 18 May 2011 23:42:57 +0200] rev 2469
config: document array-capable variables

Update help entries for thos variables that accept multiple
arguments with spaces (aka. array-capable variables).

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

2011-05-19scripts: munge .config to handle array variables
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 19 May 2011 22:29:49 +0200] rev 2468
scripts: munge .config to handle array variables

Transfrom array variables from pure strings (in the kconfig output)
into proper bash arrays declarations, for feeding to the build scripts.

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

2011-05-18config: rename variables that are arrays
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 18 May 2011 23:00:46 +0200] rev 2467
config: rename variables that are arrays

Make it explicit that a variable is an array bu the name of the variable.
It will be used later when .config gets munged to allow both multiple
arguments and arguments with spaces at the same time to be passed from the
configuration down to the build scripts.

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

2011-05-15scripts: interpret *_EXTRA_CONFIG config variables arrays
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 15 May 2011 18:51:40 +0200] rev 2466
scripts: interpret *_EXTRA_CONFIG config variables arrays

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

2011-05-19complibs/ppl: fix 0.11-0.11.2 to compile with --disable-shared 1.11
Anthony Foiani <anthony.foiani@gmail.com> [Thu, 19 May 2011 23:09:43 +0200] rev 2465
complibs/ppl: fix 0.11-0.11.2 to compile with --disable-shared

PPL 0.11 (through 0.11.2) had a small bug where it still tried to build
and test its Java interface even when shared libraries are disabled.
Since that's exactly what ct-ng does, it explodes.

This is the patch from the PPL authors (see final link below).

More information can be found in these messages/threads:

Anthony's initial report and analysis with Yann:
http://www.cygwin.com/ml/crossgcc/2011-05/msg00046.html

Ron Flory hit the same problem:
http://www.cygwin.com/ml/crossgcc/2011-05/msg00054.html

Anthony's report to the ppl-devel list:
http://www.cs.unipr.it/pipermail/ppl-devel/2011-May/017450.html

Roberto's reply with a link to the fix in the PPL git repo:
http://www.cs.unipr.it/pipermail/ppl-devel/2011-May/017455.html

Signed-Off-By: Anthony Foiani <anthony.foiani@gmail.com>
(transplanted from 139b85d70b623e51f7585e7c64ecb8c6a6cf4567)

2011-05-19complibs/ppl: build only C and C++ interfaces for PPL 1.11
Anthony Foiani <anthony.foiani@gmail.com> [Thu, 19 May 2011 23:06:16 +0200] rev 2464
complibs/ppl: build only C and C++ interfaces for PPL

By default, PPL wants to build interfaces for any of a variety of
langauges it finds on the local host (python, java, possibly perl, also
more esoteric languages such as ocaml and prolog).

These extra interfaces can double the compile time for the library. For
single-process builds, I found a savings of more than 40%:

default / j1: 716s total, 143.2s avg, 0.52s stdev
just_c / j1: 406s total, 81.2s avg, 0.33s stdev
just_c_cpp / j1: 413s total, 82.6s avg, 0.22s stdev

And for multi-process builds, it approached 50%:

default / j4: 625s total, 125.0s avg, 0.57s stdev
just_c / j4: 338s total, 67.6s avg, 1.25s stdev
just_c_cpp / j4: 327s total, 65.4s avg, 0.36s stdev

Since the PPL we build within ct-ng is only used by GCC, we only need to
build the C and C++ interfaces.

Signed-Off-By: Anthony Foiani <anthony.foiani@gmail.com>
(transplanted from ec30b191f0e3fe9bc73199f0bcb8d789db17aa92)

2011-05-19complibs/ppl: update GMP location configuration argument for PPL v0.11 and later 1.11
Anthony Foiani <anthony.foiani@gmail.com> [Thu, 19 May 2011 23:05:32 +0200] rev 2463
complibs/ppl: update GMP location configuration argument for PPL v0.11 and later

'configure' for PPL 0.11 (and later) needs "--with-gmp-prefix" to
provide the location of the GMP toolkit; the previous switches were
"--with-libgmp-prefix" and "--with-libgmpxx-prefix".

The upstream log message is:

commit 08dfb6fea094f8c5a533575a3ea2095edce99a6d
Author: Roberto Bagnara <bagnara@cs.unipr.it>
Date: Sun Jul 12 21:39:46 2009 +0200

New configure option --with-gmp-prefix supersedes the (now removed)
options --with-libgmp-prefix and --with-libgmpxx-prefix.

Link: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=08dfb6fea094f8c5a533575a3ea2095edce99a6d

Since PPL's 'configure' ignores unknown switches, we use all three so we
don't have to conditionalize the ppl.sh build script itself.

Signed-Off-By: Anthony Foiani <anthony.foiani@gmail.com>
(transplanted from 4f0c4fb572e2862c24b28e8d27ce7e9cb9adba65)

2011-05-19complibs/ppl: fix 0.11-0.11.2 to compile with --disable-shared
Anthony Foiani <anthony.foiani@gmail.com> [Thu, 19 May 2011 23:09:43 +0200] rev 2462
complibs/ppl: fix 0.11-0.11.2 to compile with --disable-shared

PPL 0.11 (through 0.11.2) had a small bug where it still tried to build
and test its Java interface even when shared libraries are disabled.
Since that's exactly what ct-ng does, it explodes.

This is the patch from the PPL authors (see final link below).

More information can be found in these messages/threads:

Anthony's initial report and analysis with Yann:
http://www.cygwin.com/ml/crossgcc/2011-05/msg00046.html

Ron Flory hit the same problem:
http://www.cygwin.com/ml/crossgcc/2011-05/msg00054.html

Anthony's report to the ppl-devel list:
http://www.cs.unipr.it/pipermail/ppl-devel/2011-May/017450.html

Roberto's reply with a link to the fix in the PPL git repo:
http://www.cs.unipr.it/pipermail/ppl-devel/2011-May/017455.html

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

2011-05-19complibs/ppl: build only C and C++ interfaces for PPL
Anthony Foiani <anthony.foiani@gmail.com> [Thu, 19 May 2011 23:06:16 +0200] rev 2461
complibs/ppl: build only C and C++ interfaces for PPL

By default, PPL wants to build interfaces for any of a variety of
langauges it finds on the local host (python, java, possibly perl, also
more esoteric languages such as ocaml and prolog).

These extra interfaces can double the compile time for the library. For
single-process builds, I found a savings of more than 40%:

default / j1: 716s total, 143.2s avg, 0.52s stdev
just_c / j1: 406s total, 81.2s avg, 0.33s stdev
just_c_cpp / j1: 413s total, 82.6s avg, 0.22s stdev

And for multi-process builds, it approached 50%:

default / j4: 625s total, 125.0s avg, 0.57s stdev
just_c / j4: 338s total, 67.6s avg, 1.25s stdev
just_c_cpp / j4: 327s total, 65.4s avg, 0.36s stdev

Since the PPL we build within ct-ng is only used by GCC, we only need to
build the C and C++ interfaces.

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

2011-05-19complibs/ppl: remove unnecessary (and confusing) --enable-cxx configure switch.
Anthony Foiani <anthony.foiani@gmail.com> [Thu, 19 May 2011 23:05:58 +0200] rev 2460
complibs/ppl: remove unnecessary (and confusing) --enable-cxx configure switch.

PPL does not use the "--enable-cxx" configure switch at all; it's
possibly a cut-and-paste leftover from 'gmp.sh'. (PPL is written in C++
natively, so it doesn't make much sense to have to enable C++; GMP, on
the other hand, is written in C with an optional C++ wrapper.)

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

2011-05-19complibs/ppl: update GMP location configuration argument for PPL v0.11 and later
Anthony Foiani <anthony.foiani@gmail.com> [Thu, 19 May 2011 23:05:32 +0200] rev 2459
complibs/ppl: update GMP location configuration argument for PPL v0.11 and later

'configure' for PPL 0.11 (and later) needs "--with-gmp-prefix" to
provide the location of the GMP toolkit; the previous switches were
"--with-libgmp-prefix" and "--with-libgmpxx-prefix".

The upstream log message is:

commit 08dfb6fea094f8c5a533575a3ea2095edce99a6d
Author: Roberto Bagnara <bagnara@cs.unipr.it>
Date: Sun Jul 12 21:39:46 2009 +0200

New configure option --with-gmp-prefix supersedes the (now removed)
options --with-libgmp-prefix and --with-libgmpxx-prefix.

Link: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=08dfb6fea094f8c5a533575a3ea2095edce99a6d

Since PPL's 'configure' ignores unknown switches, we use all three so we
don't have to conditionalize the ppl.sh build script itself.

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

2011-05-191.11: update version to 1.11.2+hg 1.11
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 19 May 2011 00:58:02 +0200] rev 2458
1.11: update version to 1.11.2+hg

2011-05-19Tagging release 1.11.2 1.11
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 19 May 2011 00:58:01 +0200] rev 2457
Tagging release 1.11.2

2011-05-191.11: update version to 1.11.2 1.11 crosstool-ng-1.11.2
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 19 May 2011 00:58:01 +0200] rev 2456
1.11: update version to 1.11.2

2011-05-18libc/glibc: source common parts instead of symlinking
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 18 May 2011 23:48:56 +0200] rev 2455
libc/glibc: source common parts instead of symlinking

Symlinks are a nightmare when one is grepping...

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

2011-05-12kconfig: add the nconf frontend
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 12 May 2011 19:45:30 +0200] rev 2454
kconfig: add the nconf frontend

The nconf frontend is the new hot topic in the kconfig land! :-)

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

2011-05-09libc/glibc: use the multi-inclusion capability of the new kconfig
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 09 May 2011 20:15:39 +0200] rev 2453
libc/glibc: use the multi-inclusion capability of the new kconfig

Now that kconfig can include a file multiple times, link the glibc/eglibc
common stuff to two .in.2 files.

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

2011-05-12kconfig: remove mis-leading messages
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 12 May 2011 19:46:23 +0200] rev 2452
kconfig: remove mis-leading messages

Unlinke the Linux kernel, crosstool-NG does not (directly) use make
as a frontend, so remove any occurence of reference to running make
after the configuration.

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

2011-05-10kconfig: fix choice multi-display
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 10 May 2011 22:45:33 +0200] rev 2451
kconfig: fix choice multi-display

In case a choices has different combinations, it can be displayed
more than once.

See the discussion thread on the linux-kbuild ML:
http://www.spinics.net/lists/linux-kbuild/msg04709.html

The fix applied here was proposed by Arnaud LACOMBE.
That fix, or a similar one, will probably be pushed upstream soon.

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

2011-05-08kconfig: don't trim spaces with leading pipe
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 08 May 2011 15:12:55 +0200] rev 2450
kconfig: don't trim spaces with leading pipe

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

2011-05-08kconfig: do not warn on missing env variable
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 08 May 2011 14:57:09 +0200] rev 2449
kconfig: do not warn on missing env variable

In crosstool-NG, we use env variables for the backend mode.
So it is perfectly legit that these variables are not set.
So do not warn about it.

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

2011-05-08kconfig: update from linux-next
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 08 May 2011 14:14:40 +0200] rev 2448
kconfig: update from linux-next

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

2011-05-10config: add main menu title
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 10 May 2011 23:56:11 +0200] rev 2447
config: add main menu title

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

2011-05-09kernel/linux: reorder stuff
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 09 May 2011 19:26:54 +0200] rev 2446
kernel/linux: reorder stuff

Yet another reordering...

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

2011-05-08config: add generated help entries only if present
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 08 May 2011 22:57:57 +0200] rev 2445
config: add generated help entries only if present

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

2011-05-08config: fix recursive deps
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 08 May 2011 19:02:44 +0200] rev 2444
config: fix recursive deps

The latest kconfig stuff is more stringent when it comes to validating
the dependency of the symbols. It is no longer possible to have a symbol
depend on itself (such as our construct for arch/cc/libc/... was doing).

Fix our generated-file infrastructure to avoid these situations when the
new kconfig stuff will be merged (in a following changeset).

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

2011-05-08scripts/addToolVersion: fix gcc complibs dependency 1.11
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 08 May 2011 11:02:18 +0200] rev 2443
scripts/addToolVersion: fix gcc complibs dependency

Since the gcc configuration changes, the way to select the
dependent companion libraries has changed.

Update the addToolVersion script to match.

Reported-by: Xun Li <lxfind@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 4cd9cda2265c0c76df3d4ff77a2f3461aae3bc9f)

2011-05-08cc/gcc: fix complibs dependency 1.11
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 08 May 2011 10:52:21 +0200] rev 2442
cc/gcc: fix complibs dependency

Since the gcc configuration changes, the way to select the
dependent companion libraries has changed. The addToolVersion
script was not updated to match, and a new gcc version was
added with this script.

Fix the gcc version; the script will be updated in a subsequent
changeset.

Reported-by: Xun Li <lxfind@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 79947df7ec4b482297ba90c3fe77314336d200e5)

2011-05-08scripts/addToolVersion: fix gcc complibs dependency
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 08 May 2011 11:02:18 +0200] rev 2441
scripts/addToolVersion: fix gcc complibs dependency

Since the gcc configuration changes, the way to select the
dependent companion libraries has changed.

Update the addToolVersion script to match.

Reported-by: Xun Li <lxfind@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-05-08cc/gcc: fix complibs dependency
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 08 May 2011 10:52:21 +0200] rev 2440
cc/gcc: fix complibs dependency

Since the gcc configuration changes, the way to select the
dependent companion libraries has changed. The addToolVersion
script was not updated to match, and a new gcc version was
added with this script.

Fix the gcc version; the script will be updated in a subsequent
changeset.

Reported-by: Xun Li <lxfind@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-05-04sample: add new Alpha sample with glibc-.13
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 04 May 2011 19:19:56 +0200] rev 2439
sample: add new Alpha sample with glibc-.13

Sample provided by Ioannis E. VENETIS

Reported-by: "Ioannis E. Venetis" <venetis@mail.capsl.udel.edu>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-05-03libc/glibc: add 2.13
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 03 May 2011 00:19:56 +0200] rev 2438
libc/glibc: add 2.13

Patchset provided by "Ioannis E. Venetis" <venetis@mail.capsl.udel.edu>
http://sourceware.org/ml/crossgcc/2011-04/msg00072.html
http://sourceware.org/ml/crossgcc/2011-04/msg00073.html

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

2011-05-03libc/glibc: update patchset, add ports patchset
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 03 May 2011 00:20:04 +0200] rev 2437
libc/glibc: update patchset, add ports patchset

Patchset provided by "Ioannis E. Venetis" <venetis@mail.capsl.udel.edu>
http://sourceware.org/ml/crossgcc/2011-04/msg00072.html
http://sourceware.org/ml/crossgcc/2011-04/msg00073.html

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

2011-04-30complibs/mpfr: add latest version
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 30 Apr 2011 14:38:44 +0200] rev 2436
complibs/mpfr: add latest version

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

2011-04-30complibs/cloog: add latest version
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 30 Apr 2011 14:36:34 +0200] rev 2435
complibs/cloog: add latest version

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

2011-05-021.11: update version to 1.11.1+hg 1.11
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 02 May 2011 18:11:24 +0200] rev 2434
1.11: update version to 1.11.1+hg

2011-05-02Tagging release 1.11.1 1.11
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 02 May 2011 18:11:24 +0200] rev 2433
Tagging release 1.11.1

2011-05-021.11: update version to 1.11.1 1.11 crosstool-ng-1.11.1
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 02 May 2011 18:11:24 +0200] rev 2432
1.11: update version to 1.11.1

2011-05-02internals: fix stripping yet once again 1.11
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 02 May 2011 18:07:13 +0200] rev 2431
internals: fix stripping yet once again

Fix typo introduced by changeset #055e505f28be.
Also, handle older versions of gcc (typically, all versions
prior to 4.0.0).

Maxime provided a similar patch, missing the case for the
legacy versions of gcc.

Reported-by: Maxime Bizon <mbizon@freebox.fr>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 539a3fa894f00888b02c7f89a2046f02c9d51e75)

2011-05-02internals: fix stripping yet once again
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 02 May 2011 18:07:13 +0200] rev 2430
internals: fix stripping yet once again

Fix typo introduced by changeset #055e505f28be.
Also, handle older versions of gcc (typically, all versions
prior to 4.0.0).

Maxime provided a similar patch, missing the case for the
legacy versions of gcc.

Reported-by: Maxime Bizon <mbizon@freebox.fr>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-05-011.11: update version to 1.11.0+hg 1.11
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 01 May 2011 00:29:20 +0200] rev 2429
1.11: update version to 1.11.0+hg

2011-05-01Tagging release 1.11.0 1.11
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 01 May 2011 00:29:20 +0200] rev 2428
Tagging release 1.11.0

2011-05-011.11: create maintenance branch, update version to 1.11.0 1.11 crosstool-ng-1.11.0
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 01 May 2011 00:29:19 +0200] rev 2427
1.11: create maintenance branch, update version to 1.11.0

2011-04-28samples: update
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 28 Apr 2011 19:36:56 +0200] rev 2426
samples: update

Release is coming soon... Time to update samples...

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

2011-04-30internals: fix stripping canadians
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 30 Apr 2011 22:45:27 +0200] rev 2425
internals: fix stripping canadians

We can't run the newly built gcc when it is a canadian cross.
Thus, we can't get the version number, and thus we can't get
the directory libexec subdirectory to strip.

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

2011-04-30scripts: fix installation
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 30 Apr 2011 23:13:12 +0200] rev 2424
scripts: fix installation

Changeset e013ddebc063 forgot to install the samples.mk file.

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

2011-04-29docs: uninstall the man page
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 29 Apr 2011 00:05:41 +0200] rev 2423
docs: uninstall the man page

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

2011-04-28scripts: fix installing samples
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 28 Apr 2011 23:36:37 +0200] rev 2422
scripts: fix installing samples

It's been a while now that the working directory CT_WORK_DIR has
been changed from 'targets' to '.build'. Fix the install procedure
to properly tweak the installed samples.

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

2011-04-28debug/gdb: fix Linaro version string
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 28 Apr 2011 23:26:57 +0200] rev 2421
debug/gdb: fix Linaro version string

Last update missed updating the version string.

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

2011-04-28kernel/linux: add latest versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 28 Apr 2011 18:57:24 +0200] rev 2420
kernel/linux: add latest versions

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

2011-04-28config: small help fix up for work dir default
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 28 Apr 2011 01:10:23 +0200] rev 2419
config: small help fix up for work dir default

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

2011-04-28debug/gdb: add latest Linaro version
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 28 Apr 2011 00:56:15 +0200] rev 2418
debug/gdb: add latest Linaro version

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

2011-04-28debug/gdb: hide Linaro options by default
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 28 Apr 2011 00:21:27 +0200] rev 2417
debug/gdb: hide Linaro options by default

It can be quite confusing for a new-comer to find strange
version numbers for gdb, so hide the Linaro versions by
default.

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

2011-04-28cc/gcc: add latest Linaro versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 28 Apr 2011 00:18:18 +0200] rev 2416
cc/gcc: add latest Linaro versions

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

2011-04-27cc/gcc: suffle options around
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 27 Apr 2011 22:41:17 +0200] rev 2415
cc/gcc: suffle options around

Move options around so it feels more organised.
Add comments to separate groups of related options.

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

2011-04-27config: reorder the kernels sub-menu
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 27 Apr 2011 22:37:32 +0200] rev 2414
config: reorder the kernels sub-menu

Re-organise the sub-menu so that:
- the kernels list comes first,
- followed by kernels generic options
- followed by kernels specific options

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

2011-04-27config: reorder the architectures sub-menu
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 27 Apr 2011 22:18:07 +0200] rev 2413
config: reorder the architectures sub-menu

Re-organise the sub-menu so that:
- the archs list comes first,
- followed by archs generic options
- followed by archs specific options

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

2011-04-28scripts/addToolsVersion: versions can be either in the .in or the .in.2
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 28 Apr 2011 00:13:41 +0200] rev 2412
scripts/addToolsVersion: versions can be either in the .in or the .in.2

The components have their version selection handled either in the .in
file or the .in.2 file. Handle both cases.

Also, when dumping an existing version, keep the user's grep options
(ie. do override neither options nor colors).

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

2011-04-24samples: add a new sample for ARM Cortex-A15 with VFP/NEON
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 24 Apr 2011 22:47:10 +0200] rev 2411
samples: add a new sample for ARM Cortex-A15 with VFP/NEON

Sample origiannly reported and provided by dsreed on the #crostool-ng
channel on freenode. I don't have the real ID for dsreed, but the
sample is not orginally mine, but his/hers.

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

2011-04-24libc/uClibc: use MMU settings
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 24 Apr 2011 18:57:01 +0200] rev 2410
libc/uClibc: use MMU settings

Enforce the MMU settings from the crosstool-NG configuration.

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

2011-04-24scripts: small eye-candy in the wiki table
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 24 Apr 2011 16:14:41 +0200] rev 2409
scripts: small eye-candy in the wiki table

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

2011-04-24internals/finish: do not remove ${PREFIX}/include
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 24 Apr 2011 15:39:53 +0200] rev 2408
internals/finish: do not remove ${PREFIX}/include

gcc installs the C++ headers in ${PREFIX}/include/ but we trash
that directory at the end of the build.

We previously removed that directory as it contained the companion
libraries header files. But it's been some time now that we isntall
the companion libraries in their own dedicated place, so we do not
need to remove that directory.

Until we have a better fix, just keep that directory for now.

Reported-by: Bob Rossi <bob@brasko.net>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-04-20config/toolchain: hide sysroot name when in backend mode
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 20 Apr 2011 19:21:39 +0200] rev 2407
config/toolchain: hide sysroot name when in backend mode

In backend mode, setting the sysroot name is the
responsibility of the upper-layer build system.

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

2011-04-16cc/gcc: add latest version
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 16 Apr 2011 22:01:35 +0200] rev 2406
cc/gcc: add latest version

Propagate the gcc-4.4.5 patchset to the newly added gcc-4.4.6.

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

2011-04-16kernel/linux: add latest versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 16 Apr 2011 21:50:26 +0200] rev 2405
kernel/linux: add latest versions

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

2011-04-12scripts: update config.sub
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 12 Apr 2011 22:12:23 +0200] rev 2404
scripts: update config.sub

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

2011-04-08scripts/mk-patch: squash all non alphanumeric chars
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 08 Apr 2011 00:58:33 +0200] rev 2403
scripts/mk-patch: squash all non alphanumeric chars

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

2011-04-081.10: update version to 1.10.1+hg 1.10
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 08 Apr 2011 00:59:32 +0200] rev 2402
1.10: update version to 1.10.1+hg

2011-04-08Tagging release 1.10.1 1.10
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 08 Apr 2011 00:59:32 +0200] rev 2401
Tagging release 1.10.1

2011-04-081.10: update version to 1.10.1 1.10 crosstool-ng-1.10.1
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 08 Apr 2011 00:59:32 +0200] rev 2400
1.10: update version to 1.10.1

2011-04-08functions: fix date calculations 1.10
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 08 Apr 2011 00:02:44 +0200] rev 2399
functions: fix date calculations

In case date(1) does not support nanosecond resolution, it does
not interpret '%N', and leave it as-is. So we have to remove it.

Note that some versions replaces '%N' with 'N', so we have to
take this into account as well.

Reported-by: Kyle Grieb <grieb.kyle@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from bb6e2df2427f3db871721c96ca3226cfa24204bc)

2011-04-07functions: avoid CR when progress bar is not enabled 1.10
Javier Viguera <javier.viguera@digi.com> [Thu, 07 Apr 2011 11:52:23 +0200] rev 2398
functions: avoid CR when progress bar is not enabled

Using CT-NG with progress bar disabled, still prints CR ('\r') characters
on the output. When you capture the output to a file as part of an
automated build, it shows extra empty lines.

For example:

------------------------------------------------------------
[INFO ] Performing some trivial sanity checks

[INFO ] Build started 20110404.113619

[INFO ] Building environment variables

[EXTRA] Preparing working directories

[EXTRA] Installing user-supplied crosstool-NG configuration
------------------------------------------------------------

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(transplanted from cbd07f3dd6e3689a6b971e999aa82d09fb94d515)

2011-04-05binutils/binutils: hide gold option if no support for current architecture 1.10
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 05 Apr 2011 01:17:58 +0200] rev 2397
binutils/binutils: hide gold option if no support for current architecture

The gold linker does currently support only a limited set of architectures:
- x86 (32- and 64-bit)
- ARM

Hide the gold option for other architectures.

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

2011-03-27cc/gcc: fix building core when building statically 1.10
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 27 Mar 2011 00:09:42 +0100] rev 2396
cc/gcc: fix building core when building statically

There was a mishap when cut-n-pasting code from the final
step into the core step: a variable was not renamed.

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

2011-03-22scripts/internals: fix stripping once more 1.10
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 22 Mar 2011 18:10:00 +0100] rev 2395
scripts/internals: fix stripping once more

Some scripts have 'very long lines', so the output of 'file'
will have that mentioned, such as:
POSIX shell script, ASCII text executable, with very long lines

Reported-by: Kyle Grieb <grieb.kyle@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 21025504dbc91d53eced23e337a547d5c1b94686)

2011-03-19scripts: fix stripping in finalisation step 1.10
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 19 Mar 2011 21:43:26 +0100] rev 2394
scripts: fix stripping in finalisation step

The heuristic to find shell script is deficient. Fix it.

Reported-by: Kyle Grieb <grieb.kyle@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from ade5d48d98f27ba75e28c2f559f1eec9e76e9c59)

2011-02-21libc/glibc: LinuxThreads are no longer supported in latest versions 1.10
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 21 Feb 2011 23:42:20 +0100] rev 2393
libc/glibc: LinuxThreads are no longer supported in latest versions

In fact, it is only supported in a few legacy versions.

Keep LT available for all eglibc versions, although it might need
a similar safeguard...

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

2011-02-22cc/gcc: do not build plugins for static toolchains 1.10
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 22 Feb 2011 23:27:42 +0100] rev 2392
cc/gcc: do not build plugins for static toolchains

Plugins are shared objects, and when building a toolchain statically,
the gcc build system breaks havok (although there is no hard technical
reasons it should not be possible)...

And consequently, do not enable plugin supoprt in binutils.

Reported-by: Thomas Spurden <thomas@ado.is-a-geek.net>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 9139319423fd7d71017dfc974d3a06ab79e08fb8)

2011-02-21internals: don't remove lib64 symlinks in sysroot 1.10
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 21 Feb 2011 14:39:24 +0100] rev 2391
internals: don't remove lib64 symlinks in sysroot

The lib64 symlinks are needed for the linker to find the libraries.

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

2011-01-22scripts: create the makeinfo wrapper before we set PATH 1.10
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 22 Jan 2011 23:20:18 +0100] rev 2390
scripts: create the makeinfo wrapper before we set PATH

If we set PATH to the tools wrappers before we create the
makeinfo wrapper, then we may well wrap an existing wrapper
from a previous run.

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

2011-02-17internals: fix stripping host binaries 1.10
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 17 Feb 2011 21:54:07 +0100] rev 2389
internals: fix stripping host binaries

The gcc used by linaro has a version number specific to Linaro, but
identifies itself with its upstream version numbering scheme.

This breaks the strip in the finish step, because the actual gcc version
is not the same as the configured one (eg. 4.5.2 vs. linaro-4.5-2011.02-0).

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

2011-04-08functions: pretty print error messages
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 08 Apr 2011 00:08:57 +0200] rev 2388
functions: pretty print error messages

Reformat the error messages:
- strip ${CT_LIB_DIR} from scripts path names
- strip ${CT_TOP_DIR} from build.log path and docs path
- overall shorter lines
- point to the known-issues file

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

2011-04-07docs: add a status for know issues
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 07 Apr 2011 19:21:15 +0200] rev 2387
docs: add a status for know issues

As time passes, a known issues can be no longer applicable (because
the component has been fixed, or a workaround ahs been added in the
crosstool-NG scripts/config...).

Some may also be unconfirmed, with no way to easily trigger the error,
or applies to old versions of components...

Add a status for every known issues.

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

2011-04-07docs: use the error message in the known issues titles
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 07 Apr 2011 19:17:12 +0200] rev 2386
docs: use the error message in the known issues titles

This helps users find the appropriate known issue entry.

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

2011-04-07docs: add known issues summary in the ToC
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 07 Apr 2011 19:13:09 +0200] rev 2385
docs: add known issues summary in the ToC

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

2011-04-07docs: add known issue about missing forced unwind support
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 07 Apr 2011 19:02:56 +0200] rev 2384
docs: add known issue about missing forced unwind support

This has been reported many times, and has become a FAQ.

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

2011-04-08functions: fix date calculations
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 08 Apr 2011 00:02:44 +0200] rev 2383
functions: fix date calculations

In case date(1) does not support nanosecond resolution, it does
not interpret '%N', and leave it as-is. So we have to remove it.

Note that some versions replaces '%N' with 'N', so we have to
take this into account as well.

Reported-by: Kyle Grieb <grieb.kyle@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-04-07functions: avoid CR when progress bar is not enabled
Javier Viguera <javier.viguera@digi.com> [Thu, 07 Apr 2011 11:52:23 +0200] rev 2382
functions: avoid CR when progress bar is not enabled

Using CT-NG with progress bar disabled, still prints CR ('\r') characters
on the output. When you capture the output to a file as part of an
automated build, it shows extra empty lines.

For example:

------------------------------------------------------------
[INFO ] Performing some trivial sanity checks

[INFO ] Build started 20110404.113619

[INFO ] Building environment variables

[EXTRA] Preparing working directories

[EXTRA] Installing user-supplied crosstool-NG configuration
------------------------------------------------------------

Signed-off-by: Javier Viguera <javier.viguera@digi.com>

2011-04-06complibs: disable building shared libs
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 06 Apr 2011 22:30:57 +0200] rev 2381
complibs: disable building shared libs

Managing the shared version of the companion libraries
has become cumbersome.

Also, it will one day be possible to use the companion
libraries from the host distribution, and then we will
be able to easily use either shared or static libs.

As a side note, while working on the canadian-rework
series, it has become quite more complex to properly
handle shared companion libraries, as they need to be
built both for the build and gost systems. That's not
easy to handle. At all.

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

2011-04-06libc/glibc: remove duplicate patch
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 06 Apr 2011 21:34:22 +0200] rev 2380
libc/glibc: remove duplicate patch

Remove a now obsolete patch for glibc-2.9 (a better one has
just been contributed by Esben).

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

2011-04-06libc/glibc: workaround for autoconf'ed define of caddr_t
Esben Haabendal <eha@dev.doredevelopment.dk> [Wed, 06 Apr 2011 20:15:23 +0200] rev 2379
libc/glibc: workaround for autoconf'ed define of caddr_t

When building canadian cross compiler, I have some trouble with
configure defining caddr_t as a macro, like:
#define caddr_t char *

When combined with the types.h where caddr_t is protected together
with daddr_t, the typedef of caddr_t breaks.

This patch works around it by protecting the caddr_t typedef
specifically.

I am uncertain as to the real cause and solution to this :-(

Signed-off-by: Esben Haabendal <eha@dev.doredevelopment.dk>

2011-04-06libc/glibc: fix cross-compiling to i686
Esben Haabendal <eha@dev.doredevelopment.dk> [Wed, 06 Apr 2011 20:15:40 +0200] rev 2378
libc/glibc: fix cross-compiling to i686

In OE-lite we use the attached patch for building i686 cross compilers.
Thanks to Khem Raj for original patch :-)

At the same time, remove the corresponding patch that was in
the ports patchset.

CC: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Esben Haabendal <eha@dev.doredevelopment.dk>
[yann.morin.1998@anciens.enib.fr: remove patch from ports]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-04-05libc/glibc-common: force use of the BFD linker
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 05 Apr 2011 01:04:31 +0200] rev 2377
libc/glibc-common: force use of the BFD linker

gold can not build glibc/eglibc, force use of the BFD
linker during the toolchain build.

Reported-by: Bill Pringlemeir <bpringle@sympatico.ca>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-04-05binutils/binutils: add blind option to force use of ld.bfd during build
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 05 Apr 2011 01:02:28 +0200] rev 2376
binutils/binutils: add blind option to force use of ld.bfd during build

gold is not capable of building glibc/eglibc, so we have to
force using the BFD linker, ld.bfd.

Offer a blind option that affected components can select to
force use of the BFD linker during the build.

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

2011-04-05binutils/binutils: also install the wrapper for the internall ld
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 05 Apr 2011 23:34:16 +0200] rev 2375
binutils/binutils: also install the wrapper for the internall ld

ld is also installed in PREFIX/TUPLE/bin, so we need to wrap that
as well.

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

2011-04-04binutils/binutils: warn if only gold is selected
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 04 Apr 2011 01:00:17 +0200] rev 2374
binutils/binutils: warn if only gold is selected

gold is not capable of building glibc/eglibc. See this thread:
http://sourceware.org/ml/crossgcc/2011-04/msg00010.html

Reported-by: Bill Pringlemeir <bpringle@sympatico.ca>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-04-03binutils/binutils: always set name of the default linker
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 03 Apr 2011 23:44:57 +0200] rev 2373
binutils/binutils: always set name of the default linker

Always export the name of the default linker, even if only
one of them is selected.

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

2011-04-05binutils/binutils: hide gold option if no support for current architecture
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 05 Apr 2011 01:17:58 +0200] rev 2372
binutils/binutils: hide gold option if no support for current architecture

The gold linker does currently support only a limited set of architectures:
- x86 (32- and 64-bit)
- ARM

Hide the gold option for other architectures.

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

2011-04-03arch/sparc: add absic support
Sam Ravnborg <sam@ravnborg.org> [Sun, 03 Apr 2011 18:22:00 +0200] rev 2371
arch/sparc: add absic support

Add support for building SPARC targeted toolchain.
With this patch I have built a working sparc V8 (32 toolchain).

Testing shows that not all gcc versions works well:
4.4.1 OK (kernel builds and the final kernel can boot)
4.4.2 Not tested
4.4.3 Not tested
4.4.4 BAD (Kernel can build but fails during boot)
4.4.5 BAD (Kernel can build but fails during boot)
4.5.1 BAD (Build fails with a spill related ICE - http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35664)
4.5.2 OK (kernel builds and boots)

I have successfully been using the 4.5.2 version for a few months.

This patch does not add support for the LEON variant.
That may come later.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
[yann.morin.1998@anciens.enib.fr: for 32-bit, default CT_TARGET_ARCH is OK]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-03-28kernel/linux: update to latest versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 28 Mar 2011 22:45:49 +0200] rev 2370
kernel/linux: update to latest versions

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

2011-03-28samples: add first sample to build with gcc-4.6.0
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 28 Mar 2011 00:58:33 +0200] rev 2369
samples: add first sample to build with gcc-4.6.0

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

2011-03-28cc/gcc: fix linking with static PPL 0.11+
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 28 Mar 2011 01:07:31 +0200] rev 2368
cc/gcc: fix linking with static PPL 0.11+

PPL 0.11+ installs three libs: lippl, libppl_c and libpwl.
libppl_c has a dependency on libpwl (at least for watchdog stuff).

While gcc correctly links with libppl and libppl_c, it does not
pull libpwl in. In case of shared libs, this is not a problem, as
libppl_c has a NEEDED dependency on libpwl. But for static libs,
that does not work. Although libppl_c.la exists and has a correct
dependency on lipwl, somehow gcc misses it. So we have to force
pulling libpwl when needed.

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

2011-03-26cc/gcc: hide Linaro options by default
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 26 Mar 2011 22:04:22 +0100] rev 2367
cc/gcc: hide Linaro options by default

It can be quite confusing for a new-comer to find strange
version numbers for gcc, so hide the Linaro versions by
default.

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

2011-03-28cc/gcc: add linaro 4.6 pre-release
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 28 Mar 2011 01:06:53 +0200] rev 2366
cc/gcc: add linaro 4.6 pre-release

Before gcc 4.6 was released, Linaro has a pre-release available.
Include that version in the config list.

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

2011-03-26cc/gcc: add 4.6.0
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 26 Mar 2011 22:00:05 +0100] rev 2365
cc/gcc: add 4.6.0

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

2011-03-27complibs/ppl: build watchdog library
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 27 Mar 2011 00:07:59 +0100] rev 2364
complibs/ppl: build watchdog library

gcc-4.6+ requires the Parma Watchdog Library (libpwl).
Build it and use it.

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

2011-03-19cc/gcc: prepare for upcoming 4.6
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 19 Mar 2011 16:01:40 +0100] rev 2363
cc/gcc: prepare for upcoming 4.6

gcc 4.6 will no longer depend on libelf.

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

2011-03-28cc/gcc: cleanup the _or_later logic
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 28 Mar 2011 01:05:18 +0200] rev 2362
cc/gcc: cleanup the _or_later logic

So far, we've had a version always select appropriate _or_later option,
which in turn would select all previous _or_later options.

Because the dependencies on companion libs were cumulative, that was
working OK. But the upcoming 4.6 will no longer depend on libelf, so
we can't keep the cumulative scheme we've been using so far.

Have each release family select the corresponding dependencies, instead
of relying on selecting previous _or_later.

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

2011-03-28cc/gcc: update linaro versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 28 Mar 2011 01:04:17 +0200] rev 2361
cc/gcc: update linaro versions

Linaro has released version linaro-4.5-2011.03-0.

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

2011-03-27cc/gcc: fix building core when building statically
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 27 Mar 2011 00:09:42 +0100] rev 2360
cc/gcc: fix building core when building statically

There was a mishap when cut-n-pasting code from the final
step into the core step: a variable was not renamed.

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

2011-03-24kernel/linux: update version
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 24 Mar 2011 21:04:58 +0100] rev 2359
kernel/linux: update version

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

2011-03-23kernel/linux: add altest version
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 23 Mar 2011 23:11:29 +0100] rev 2358
kernel/linux: add altest version

Fix an incorrect version at the same time... :-(

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

2011-03-22scripts/internals: fix stripping once more
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 22 Mar 2011 18:10:00 +0100] rev 2357
scripts/internals: fix stripping once more

Some scripts have 'very long lines', so the output of 'file'
will have that mentioned, such as:
POSIX shell script, ASCII text executable, with very long lines

Reported-by: Kyle Grieb <grieb.kyle@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2011-03-22kernel/linux: add latest version
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 22 Mar 2011 17:30:03 +0100] rev 2356
kernel/linux: add latest version

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

2011-03-20cc/gcc: log even more
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 20 Mar 2011 01:17:27 +0100] rev 2355
cc/gcc: log even more

Also log variable assignement for single commands.

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

2011-03-20libc/mingw: log even more
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 20 Mar 2011 01:16:34 +0100] rev 2354
libc/mingw: log even more

Also log variable assignement for single commands.

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

2011-03-20libc/glibc-common: log even more
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 20 Mar 2011 01:15:34 +0100] rev 2353
libc/glibc-common: log even more

Also log variable assignement for single commands.

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

2011-03-20libc/newlib: log even more
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 20 Mar 2011 01:13:05 +0100] rev 2352
libc/newlib: log even more

Also log variable assignement for single commands.

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

2011-03-20complibs/libelf: log even more
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 20 Mar 2011 01:08:22 +0100] rev 2351
complibs/libelf: log even more

Also log variable assignement for single commands.

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

2011-03-20complibs/mpc: log even more
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 20 Mar 2011 01:07:31 +0100] rev 2350
complibs/mpc: log even more

Also log variable assignement for single commands.

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

2011-03-20complibs/cloog: log even more
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 20 Mar 2011 01:07:06 +0100] rev 2349
complibs/cloog: log even more

Also log variable assignement for single commands.

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

2011-03-20complibs/ppl: log even more
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 20 Mar 2011 01:06:26 +0100] rev 2348
complibs/ppl: log even more

Also log variable assignement for single commands.

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

2011-03-20complibs/mpfr: log even more
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 20 Mar 2011 01:05:15 +0100] rev 2347
complibs/mpfr: log even more

Also log variable assignement for single commands.

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

2011-03-20complibs/gmp: log even more
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 20 Mar 2011 01:04:22 +0100] rev 2346
complibs/gmp: log even more

Also log variable assignement for single commands.

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

2011-03-20debug/trace: log even more
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 20 Mar 2011 01:03:26 +0100] rev 2345
debug/trace: log even more

Also log variable assignement for single commands.

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

2011-03-20debug/gdb: log even more
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 20 Mar 2011 00:55:07 +0100] rev 2344
debug/gdb: log even more

Also log variable assignement for single commands.

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

2011-03-20debug/dmalloc: log even more
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 20 Mar 2011 00:53:41 +0100] rev 2343
debug/dmalloc: log even more

Also log variable assignement for single commands.

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

2011-03-20binutils/elf2flt: log even more
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 20 Mar 2011 00:45:44 +0100] rev 2342
binutils/elf2flt: log even more

Also log variable assignement for single commands.

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

2011-03-20binutils/binutils: log even more
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 20 Mar 2011 00:45:05 +0100] rev 2341
binutils/binutils: log even more

Also log variable assignement for single commands.

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