2010-10-04kconfig: resync curses check with Linux kernel
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 04 Oct 2010 00:16:56 +0200] rev 2125
kconfig: resync curses check with Linux kernel

check-lxdialog.sh breaks on 64-bit distributions which are lacking
the lib -> lib64 symlinks (eg. some Fedora).

The script from the 2.6.35 Linux kernel is reportedly functional
on the systems that were requiring the current hack. See:
http://sourceware.org/ml/crossgcc/2010-09/msg00113.html

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

2010-09-19cc/gcc: add 4.3.5
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 19 Sep 2010 18:37:18 +0200] rev 2124
cc/gcc: add 4.3.5

4.3.5 is the latest 4.3 version, and probably the last one.

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

2010-09-12cc/gcc: disable complibs if not selected
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 12 Sep 2010 23:51:25 +0200] rev 2123
cc/gcc: disable complibs if not selected

Force gcc to not link with some companion libraries when
there are not needed (because selected-out).

There is no option to tell gcc *not* to build the Graphite and/or
LTO stuff. They *will* be built if gcc finds the suitable companion
libraries. If we do not provide them, but the host has them, then
gcc *will* find them, and link with them.

Consider the following:
- host has suitable PPL and CLooG (eg. Debian Squeeze)
- user wants to build gcc>=4.4
- user de-selects GRAPHITE
- gcc will find the hosts PPL and CLooG, and will use them
- the user moves the toolchain to an older host that does
not have them (eg. Debian Lenny)
- the toolchain fails, when it was properly setup not to

So, explicitly tell gcc *not* to use unneeded companion libs.

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

2010-09-12cc/gcc: do not force use of non-vital companion libraries
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 12 Sep 2010 20:54:54 +0200] rev 2122
cc/gcc: do not force use of non-vital companion libraries

While GMP and MPFR are required by gcc>=4.3 (to build the frontends),
and MPC is required by gcc>=4.5, the other libs are not. If they are
present then gcc will enable advanced features; if they are missing,
then gcc will (should) simply disable those features.

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

2010-09-10complibs: fix dependencies
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 10 Sep 2010 01:16:26 +0200] rev 2121
complibs: fix dependencies

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

2010-09-12arch/mips: add experimental mips64 samples
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 12 Sep 2010 23:38:18 +0200] rev 2120
arch/mips: add experimental mips64 samples

Both toolchains were tested to successfully:
- _build_ busybox, giving respectively an n32 and an n64 binary
although it has not been run-tested.
- build linux-2.6.36-rc3 for Loongson, giving an n64 vmlinux
(which is expected, due to the way the kernel is built),
and the kernel properly boots!

Credits are due to Julien MOUTHINO (julm on freenode#uClibc) for
testing that the kernel boots on his hardware! Cheers! ;-)

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

2010-09-12libc/uClibc: use the MIPS ABI selection
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 12 Sep 2010 22:15:12 +0200] rev 2119
libc/uClibc: use the MIPS ABI selection

Use the MIPS ABI selection to properly munge the uClibc config file.

This has the side effect to force the ISA:
- n32 ABI -> MIPS-III ISA
- n64 ABI -> MIPS64 ISA

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

2010-09-12arch/mips: add option for MIPS ABIs
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 12 Sep 2010 22:14:04 +0200] rev 2118
arch/mips: add option for MIPS ABIs

This adds selection for one of the o32, n32 and n64 ABIs.
Later, we can easily use those boolean options, rather than
relying on a user-supplied string option.

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

2010-09-11scripts/internal: cleanup build symlinks
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 11 Sep 2010 17:55:54 +0200] rev 2117
scripts/internal: cleanup build symlinks

The symlinks are needed only during the build process.
The final gcc will still search those dirs, but will also search
the standard lib/ dirs, so we can get rid of the symlinks.

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

2010-09-10scripts: hack-in lib32->lib symlinks
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 10 Sep 2010 12:14:24 +0200] rev 2116
scripts: hack-in lib32->lib symlinks

Some archs (eg. ppc64 with n32 ABI) will install their
variants in lib32/ instead of lib/, so do for lib32 as
we do for lib64->lib symlinks.

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

2010-09-10libc/uClibc: change munging code based on target arch
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 10 Sep 2010 13:23:58 +0200] rev 2115
libc/uClibc: change munging code based on target arch

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

2010-09-12arch/sh: move config-options to second-part
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 12 Sep 2010 00:07:41 +0200] rev 2114
arch/sh: move config-options to second-part

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

2010-09-12arch/alpha: move config-options to second-part
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 12 Sep 2010 00:05:46 +0200] rev 2113
arch/alpha: move config-options to second-part

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

2010-09-11arch/ppc: move config-options to second-part
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 11 Sep 2010 23:41:25 +0200] rev 2112
arch/ppc: move config-options to second-part

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

2010-09-11arch/arm: move config-options to second-part
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 11 Sep 2010 12:42:22 +0200] rev 2111
arch/arm: move config-options to second-part

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

2010-09-11config/arch: re-organise architecture-specific options
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 11 Sep 2010 12:38:12 +0200] rev 2110
config/arch: re-organise architecture-specific options

Move the arch-specific options to the second-part of
the generated files, so they appear after the generic
options, but before the optimisations.

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

2010-09-12config: change name of default build dir
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 12 Sep 2010 21:38:12 +0200] rev 2109
config: change name of default build dir

'targets' is not really meaningfull.
'build' means what it means.
'.build' just hides it as well! :-)

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

2010-08-31binutils/binutils: remove faulty patch 1.8
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 31 Aug 2010 23:24:40 +0200] rev 2108
binutils/binutils: remove faulty patch

The added code should be conditinal to the target system
being !MIPS, but is based on the host system being !MIPS.

This is plain wrong, and had not been noticed until now
as I never used those binutils versions on MIPS.

See:
http://sourceware.org/ml/crossgcc/2010-08/msg00192.html

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

2010-08-31binutils/binutils: remove faulty patch
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 31 Aug 2010 23:24:40 +0200] rev 2107
binutils/binutils: remove faulty patch

The added code should be conditinal to the target system
being !MIPS, but is based on the host system being !MIPS.

This is plain wrong, and had not been noticed until now
as I never used those binutils versions on MIPS.

See:
http://sourceware.org/ml/crossgcc/2010-08/msg00192.html

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

2010-08-31kernel/mingw32: show only for x86, 32-bit targets
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 31 Aug 2010 18:52:07 +0200] rev 2106
kernel/mingw32: show only for x86, 32-bit targets

Mingw32 on non-x86, non-32-bit target makes no sense

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

2010-08-31kernel/linux: add latest versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 31 Aug 2010 18:57:56 +0200] rev 2105
kernel/linux: add latest versions

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

2010-08-31kernel/linux: remove old versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 31 Aug 2010 19:02:45 +0200] rev 2104
kernel/linux: remove old versions

Remove those versions whose series does no longer appear on the
front page of kernel.org

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

2010-08-26scripts/log: do not interpret log string as printf format 1.8
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 26 Aug 2010 23:36:54 +0200] rev 2103
scripts/log: do not interpret log string as printf format

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

2010-08-30complibs: remove help entries, as they're not used
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 30 Aug 2010 22:51:22 +0200] rev 2102
complibs: remove help entries, as they're not used

The help entries for each of the companion libraries are now
wrong, and anyway are not displayed. Nuke, nuke, nuke...

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

2010-08-23debug/gdb: use libexpat
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 23 Aug 2010 10:47:00 +0200] rev 2101
debug/gdb: use libexpat

gdb can use libexpat to parse target memory descriptions,
among other things. See:
http://sourceware.org/ml/crossgcc/2010-08/msg00168.html

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

2010-08-23debug/gdb: install dependable libs in a generic target static libs dir
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 23 Aug 2010 14:32:16 +0200] rev 2100
debug/gdb: install dependable libs in a generic target static libs dir

For now, ncurses is the only dependable target library built for gdb.
But expat is coming, and there's no reason to install each library in
its own place.

So, install ncurses in a generic directory, where other dependable
libraries can be installed as well.

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

2010-08-23complibs: noone is using companion libs on the target; nuke them
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 23 Aug 2010 23:18:49 +0200] rev 2099
complibs: noone is using companion libs on the target; nuke them

As there's no longer any user of the companion libraries on the
target, nuke the build for the target.

Well, at least, there's libelf that's still needed by ltrace, so
we keep it.

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

2010-08-23debug/gdb: companion libs are not used
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 23 Aug 2010 10:38:15 +0200] rev 2098
debug/gdb: companion libs are not used

Although the gdb ./configure advertises for GMP and MPFR, those libraries
are not used by gdb (the ./configure is used across different packages,
hence the check for GMP/MPFR). See:
http://sourceware.org/ml/crossgcc/2010-08/msg00168.html

The same applies to MPC.

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

2010-08-23binutils/binutils: companion libraries are not used
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Mon, 23 Aug 2010 20:21:43 +0200] rev 2097
binutils/binutils: companion libraries are not used

GNU binutils does not use the companion libraries, although
./configure advertises switches for them. This is because the
configure file is shared between different packages, and is
a bit 'lax' about what it checks. See:
http://sourceware.org/ml/crossgcc/2010-08/msg00160.html
http://sourceware.org/ml/crossgcc/2010-08/msg00161.html

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

2010-08-26scripts/log: do not interpret log string as printf format
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 26 Aug 2010 23:36:54 +0200] rev 2096
scripts/log: do not interpret log string as printf format

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