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>