2010-07-15scripts: update config.{guess,sub}
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 15 Jul 2010 10:18:40 +0200] rev 2025
scripts: update config.{guess,sub}

2010-07-14Merge.
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 14 Jul 2010 19:11:40 +0200] rev 2024
Merge.

2010-07-14complibs/ppl: backout #9f0de857cb05
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 14 Jul 2010 19:11:12 +0200] rev 2023
complibs/ppl: backout #9f0de857cb05

The patch breaks the build on most machines,
while the purpose of the patch is dubious.
So, simply back it out.

2010-07-11debug/gdb: properly remove build tic
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 11 Jul 2010 22:26:29 +0200] rev 2022
debug/gdb: properly remove build tic

tic is isntalled in buildtools, not in the toolchain's bin dir.
Plus, it may have an extension...

2010-07-11debug/gdb: Fix compilation for Mingw hosts
Remy Bohmer <linux@bohmer.net> [Sun, 11 Jul 2010 22:23:34 +0200] rev 2021
debug/gdb: Fix compilation for Mingw hosts

GDB requires PDcurses instead of ncurses while running on Windows.
So, do not always compile ncurses in case GDB needs to build.

PDcurses is provided by an earlier build step and is not described in
this file.

Signed-off-by: Remy Bohmer <linux@bohmer.net>
[yann.morin.1998@anciense.nib.fr: we already have a way to detect ncurses usage]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-07-11complibs/ppl: fix build for MINGW
Bart vdr Meulen <bartvdrmeulen@gmail.com> [Sun, 11 Jul 2010 21:37:43 +0200] rev 2020
complibs/ppl: fix build for MINGW

Signed-off-by: Bart vdr. Meulen <bartvdrmeulen@gmail.com>
---
patches/ppl/0.10.2/100-update-for-mingw-build.patch | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
create mode 100644 patches/ppl/0.10.2/100-update-for-mingw-build.patch

2010-07-11samples: add Linux -> Mingw32 sample
Bart vdr Meulen <bartvdrmeulen@gmail.com> [Sun, 11 Jul 2010 21:37:29 +0200] rev 2019
samples: add Linux -> Mingw32 sample

Sample to build compiler targetting mingw32 target systems

Signed-off-by: Bart vdr. Meulen <bartvdrmeulen@gmail.com>
---
samples/i686-pc-mingw32/crosstool.config | 302 +++++++++++++++++++++++++++++++
samples/i686-pc-mingw32/reported.by | 3
2 files changed, 305 insertions(+)
create mode 100644 samples/i686-pc-mingw32/crosstool.config
create mode 100644 samples/i686-pc-mingw32/reported.by

2010-07-11kernel/mingw: add target libraries
Bart vdr Meulen <bartvdrmeulen@gmail.com> [Sun, 11 Jul 2010 21:36:55 +0200] rev 2018
kernel/mingw: add target libraries

Add several development libraries to the build of the mingw cross-compiler
to be used on target

Libraries:
PDCurses (port of the ncurses library)
GnuRX (the regex library)
DirectX
OpenGL

Signed-off-by: Bart vdr. Meulen <bartvdrmeulen@gmail.com>
[yann.morin.1998@anciens.enib.fr: don't show DX and RX versions if disabled]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-07-11kernel: add mingw
Bart vdr Meulen <bartvdrmeulen@gmail.com> [Sun, 11 Jul 2010 21:36:20 +0200] rev 2017
kernel: add mingw

Add the option to build a cross-compiler for kernel type 'mingw'.
The resulting cross-compiler can be used to build applications on a Linux host
that can be run on a Windows target.

Compiler is build using the mingwrt and w32-api packages aviable from the
MinGW project (http://sourceforge.net/projects/mingw).

The windows headers (w32-api package) are extracting with the kernel_headers
step The libraries and other headers from both packages are build and
installed in the various steps of libc

Signed-off-by: Bart vdr Meulen <bartvdrmeulen@gmail.com>
[yann.morin.1998@anciens.enib.fr: fix kernel headers comment, don't "return 0"]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-07-11libc: add global threads support option
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 11 Jul 2010 14:26:52 +0200] rev 2016
libc: add global threads support option

2010-07-11samples: add an ARMeb uClibc/NPTL experimental sample
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 11 Jul 2010 00:20:13 +0200] rev 2015
samples: add an ARMeb uClibc/NPTL experimental sample

2010-07-10cc/gcc: gcc-4.4 does not use MPC
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 10 Jul 2010 15:25:10 +0200] rev 2014
cc/gcc: gcc-4.4 does not use MPC

As reported by Johannes Stezenbach, see thread at:
http://sourceware.org/ml/crossgcc/2010-07/msg00017.html

2010-07-10config: no need to push the download mirror in a sub menu
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 10 Jul 2010 14:20:16 +0200] rev 2013
config: no need to push the download mirror in a sub menu

2010-07-09binutils/binutils: add binutils-2.20.1
Johannes Stezenbach <js@sig21.net> [Fri, 09 Jul 2010 15:53:49 +0200] rev 2012
binutils/binutils: add binutils-2.20.1

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

2010-07-09kernel/linux: update linux stable releases
Johannes Stezenbach <js@sig21.net> [Fri, 09 Jul 2010 15:51:59 +0200] rev 2011
kernel/linux: update linux stable releases

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

2010-07-03libc/uClibc: fix snapshots 1.7
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 03 Jul 2010 00:17:54 +0200] rev 2010
libc/uClibc: fix snapshots

Snapshots are in a subdir named uClibc, not uClibc-snapshot
(or uClibc-YYYYMMDD either).
(transplanted from b13d0db6fa95795bb663bf674372b58221682dd6)

2010-07-03libc/uClibc: enable NPTL for snapshots
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 03 Jul 2010 01:15:28 +0200] rev 2009
libc/uClibc: enable NPTL for snapshots

Recently, NPTL has matured a lot in uClibc, and more and more
people are interested to at least give it a try. So enable it.

2010-07-03libc/uClibc: fix snapshots
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 03 Jul 2010 00:17:54 +0200] rev 2008
libc/uClibc: fix snapshots

Snapshots are in a subdir named uClibc, not uClibc-snapshot
(or uClibc-YYYYMMDD either).

2010-07-02libc/uClibc: fix munging .config for LT old/new
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 02 Jul 2010 22:11:45 +0200] rev 2007
libc/uClibc: fix munging .config for LT old/new

2010-07-03debug/ltrace: add latest version
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 03 Jul 2010 14:51:02 +0200] rev 2006
debug/ltrace: add latest version

2010-07-07scripts/finish: do not try to symlink if sed expr is a no-op 1.7
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 07 Jul 2010 22:33:49 +0200] rev 2005
scripts/finish: do not try to symlink if sed expr is a no-op

If the sed expression does not transform the
tuple, do not try to create the symlink.
(transplanted from 5d6d3c28a658a65551d4eb5de414fd97b575f314)

2010-07-07scripts/finish: do not try to symlink if sed expr is a no-op
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 07 Jul 2010 22:33:49 +0200] rev 2004
scripts/finish: do not try to symlink if sed expr is a no-op

If the sed expression does not transform the
tuple, do not try to create the symlink.

2010-07-01debug/gdb: fix incorrect path
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 01 Jul 2010 01:17:01 +0200] rev 2003
debug/gdb: fix incorrect path

Fix discrepancy between the directory we create,
and the directory into which we install tic.

2010-07-01libc/glibc: fix installed scripts
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 01 Jul 2010 00:24:04 +0200] rev 2002
libc/glibc: fix installed scripts

glibc installs some bash-scripts, but uses the path to the buildtool
bash as interpreter (on the shebang line). This is only a symlink to
the real bash, and thus is not available at runtime.

Fix that by assuming that bash on the target *will* be /bin/bash.

2010-06-271.7: update version to 1.7.1+hg 1.7
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 27 Jun 2010 18:38:12 +0200] rev 2001
1.7: update version to 1.7.1+hg

2010-06-27Tagging release 1.7.1 1.7
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 27 Jun 2010 18:38:12 +0200] rev 2000
Tagging release 1.7.1

2010-06-271.7: update version to 1.7.1 1.7 crosstool-ng-1.7.1
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 27 Jun 2010 18:38:12 +0200] rev 1999
1.7: update version to 1.7.1

2010-06-22scripts/wrapper: fix wrong test when checking access to the reall tool 1.7
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 22 Jun 2010 23:49:23 +0200] rev 1998
scripts/wrapper: fix wrong test when checking access to the reall tool

In C, the proper syntax for a bit-wise OR is a single '|', not two.

It worked so far because all was well:
- X_OK == 1
- R_OK||X_OK == 1
- the file we searched for had the x-bit set
-> access( file, R_OK||X_OK ) worked
- inicidentally, the file we searched for also had the r-bit set,
but we were not testing that in fact.
(transplanted from eebcaff6626f09af4f69b7b06f1246a06769d0af)

2010-06-16complibs/gmp: 5.0.0 misses 'EXPERIMENTAL' in the prompt 1.7
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 16 Jun 2010 18:57:10 +0200] rev 1997
complibs/gmp: 5.0.0 misses 'EXPERIMENTAL' in the prompt
(transplanted from 95b4a458fd60d3e0911750c2b7c1b6cf36285845)

2010-06-13cc/gcc: fix headers copy for core static 1.7
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 13 Jun 2010 20:25:00 +0200] rev 1996
cc/gcc: fix headers copy for core static
(transplanted from 22ce0c19f06a530d72fd65c89d0777d16c0a97ac)

2010-05-19crosstool-NG.sh: suppress failure message from uname -o 1.7
Titus von Boxberg <titus@v9g.de> [Wed, 19 May 2010 18:17:39 +0200] rev 1995
crosstool-NG.sh: suppress failure message from uname -o

On non-GNU systems (BSD/MacOS) there is no uname -o.
Suppress the failure message on these systems in the
call to set CT_SYS_OS (uname -s actually sets this variable).

yann.morin.1998@anciens.enib.fr: remove 'uname -o' altogether.
(transplanted from acae437fddccd7681c93a3b6c999c0796693d625)

2010-06-27scripts: enhance Makefile for installation
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 27 Jun 2010 16:40:21 +0200] rev 1994
scripts: enhance Makefile for installation

Split the multiple directory copies into autonomous rules.
Fix the autocompletion message.

2010-06-25test-suite: correctly install when not --local
"Andy Gibbs" <andyg1001@hotmail.co.uk> [Fri, 25 Jun 2010 12:33:30 +0200] rev 1993
test-suite: correctly install when not --local

2010-06-22scripts/wrapper: fix wrong test when checking access to the reall tool
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 22 Jun 2010 23:49:23 +0200] rev 1992
scripts/wrapper: fix wrong test when checking access to the reall tool

In C, the proper syntax for a bit-wise OR is a single '|', not two.

It worked so far because all was well:
- X_OK == 1
- R_OK||X_OK == 1
- the file we searched for had the x-bit set
-> access( file, R_OK||X_OK ) worked
- inicidentally, the file we searched for also had the r-bit set,
but we were not testing that in fact.

2010-06-17cc/gcc: add option do disable PCH
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 17 Jun 2010 21:26:23 +0200] rev 1991
cc/gcc: add option do disable PCH

In some cases, using Pre-Compiled Headers breaks the build.
Ass an option to disable building the PCH, as suggested by:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40974

2010-06-17kernel/linux: allow headers from full custom source tree
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 17 Jun 2010 18:30:09 +0200] rev 1990
kernel/linux: allow headers from full custom source tree

Accept a local tarball name as the source of the Linux kernel headers,
rather than forcing the user to use either an upstream tarball, or a
local pre-installed headers tree.

2010-06-15kernel/linux: reorder upstream/custom-tree handling
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 15 Jun 2010 20:04:01 +0200] rev 1989
kernel/linux: reorder upstream/custom-tree handling

2010-05-22docs/README.freebsd.txt: Short intro for FreeBSD
Titus von Boxberg <titus@v9g.de> [Sat, 22 May 2010 14:11:27 +0200] rev 1988
docs/README.freebsd.txt: Short intro for FreeBSD

Provide short README for FreeBSD as a host OS for ct-ng.

2010-05-30docs/README.macos.txt: Provide hints section
Titus von Boxberg <titus@v9g.de> [Sun, 30 May 2010 12:11:39 +0200] rev 1987
docs/README.macos.txt: Provide hints section

Hints for building tool chains.

2010-05-29patches/gdb: Fix canadian building of GDB for powerpc
Martin Lund <mgl@doredevelopment.dk> [Sat, 29 May 2010 15:08:11 +0200] rev 1986
patches/gdb: Fix canadian building of GDB for powerpc

Adds patch for GDB v6.8, v7.0, v7.0.1 to fix canadian
cross building of GDB for powerpc.

See original patch information here:
http://sources.redhat.com/bugzilla/show_bug.cgi?id=9638

The patch is not required for GDB v7.1 (fixed).

Tested in canadian combination using mingw32 and powerpc toolchains.
Tested to not affect normal cross building of GDB for powerpc target.

Signed-off-by: Martin Lund <mgl@doredevelopment.dk>

2010-06-16complibs/mpc: add latest version
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 16 Jun 2010 18:55:20 +0200] rev 1985
complibs/mpc: add latest version

2010-06-16complibs/gmp: 5.0.0 misses 'EXPERIMENTAL' in the prompt
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 16 Jun 2010 18:57:10 +0200] rev 1984
complibs/gmp: 5.0.0 misses 'EXPERIMENTAL' in the prompt

2010-06-13cc/gcc: baremetal requires a two-pass process
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 13 Jun 2010 23:38:37 +0200] rev 1983
cc/gcc: baremetal requires a two-pass process

Here, we implement a highly ugly hack. I'm not proud of that one...

To build the libstdc++ library, the compiler requires the C library. In
case we build for non-baremetal, this is normally handled by the final
step, later.

But in the case of bare-metal, we never go through the final step (because
it does not work, and it seems complex enough to make it work), so the
baremetal compilers are issued out of the core step.

2010-06-13libc/newlib: build in the 'start files' pass
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 13 Jun 2010 23:45:29 +0200] rev 1982
libc/newlib: build in the 'start files' pass

A few facts:
- building the C library requires a proper core compiler
- core compiler is issued from one of the core passes
- the C library is required to build libstdc++
- newlib is only built for baremetal
- in bare metal, the final compiler is issued from one of the core passes

So we need to build the C library between core pass 1 and core pass 2.
The only place is eithe libc_headers() or libc_start_files(). The most
pertinent seems to be libc_start_files().

So we build newlib from libc_start_files(), and leave libc() empty.

2010-06-13cc/gcc: store core build rules in an array
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 13 Jun 2010 20:43:02 +0200] rev 1981
cc/gcc: store core build rules in an array

Using an array makes it easier to add new rules.
Besides, it is easy to expand from build rules to install rules

2010-06-13cc/gcc: implement default for core options
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 13 Jun 2010 20:31:42 +0200] rev 1980
cc/gcc: implement default for core options

2010-06-13cc/gcc: fix headers copy for core static
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 13 Jun 2010 20:25:00 +0200] rev 1979
cc/gcc: fix headers copy for core static

2010-06-13complibs/mpfr: update to latest version
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 13 Jun 2010 19:15:53 +0200] rev 1978
complibs/mpfr: update to latest version

2010-06-09libc/uClibc: apply the threading model to the configuration
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 09 Jun 2010 00:41:25 +0200] rev 1977
libc/uClibc: apply the threading model to the configuration

The threading model shall be be set in the .config file.
Also, offer the choice between 'old/stable' and 'new' linuxthreads.

2010-06-08config: add support for a second part of the generated choices
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 08 Jun 2010 23:26:54 +0200] rev 1976
config: add support for a second part of the generated choices

Some components have configuration options that can depend on
generic options, so they should go below those.

uClibc for example:
- has its own options (wchar...)
- uses the generic options (threads...)
- if linuxthreads chosen, offers two impls

So we need to be able to split the components options in 2,
one part that is above the generic options, and one part that
ends up below the generic options.

2010-05-30docs: update credtis, point to the repository log
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 30 May 2010 18:19:05 +0200] rev 1975
docs: update credtis, point to the repository log

The docs/CREDITS file dates back to the SVN repository.
Now that we use Mercurial, the repository stores appropriate
authorship for each commit. Say so in the CREDITS.

2010-05-27kernel/linux: update to latest versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 27 May 2010 10:36:03 +0200] rev 1974
kernel/linux: update to latest versions

2010-05-24kconfig/lxdialog: more portable and use ncurses from macports on MacOS
Titus von Boxberg <titus@v9g.de> [Mon, 24 May 2010 16:33:45 +0200] rev 1973
kconfig/lxdialog: more portable and use ncurses from macports on MacOS

check-lxdialog.sh now correctly tests for ncurses and is a bit more portable.
On Darwin it uses the ncurses from macports.

2010-05-24cc/gcc: Make usage of --enable-target-optspace configurable
Titus von Boxberg <titus@v9g.de> [Mon, 24 May 2010 16:34:55 +0200] rev 1972
cc/gcc: Make usage of --enable-target-optspace configurable

Optionally configure to compile gcc-internal libs with -Os.

yann.morin.1998@anciens.enib.fr:
Rename the config options, it is in the GCC /namespace/.

2010-05-25docs: Provide new Readme for MacOS
Titus von Boxberg <titus@v9g.de> [Tue, 25 May 2010 18:25:11 +0200] rev 1971
docs: Provide new Readme for MacOS

Short README for usage of ct-ng under MacOS.
Remove obsolete MacOS-X.txt

yann.morin.1998@anciens.enib.fr:
Make it 80-columns clean, plus a few fixes

2010-05-22scripts/build/internals.sh: compile wrapper with portable options.
Titus von Boxberg <titus@v9g.de> [Sat, 22 May 2010 22:01:18 +0200] rev 1970
scripts/build/internals.sh: compile wrapper with portable options.

static linking is not possible on MacOS, and unnessecary on other systems.
The old optimization and warning flags crash the gcc on MacOS
and (imho) are a bit overdone for this software.

2010-05-23configure: add path to libtool to pathlist
Titus von Boxberg <titus@v9g.de> [Sun, 23 May 2010 16:34:15 +0200] rev 1969
configure: add path to libtool to pathlist

forgot var=libtool

2010-05-15debug/ltrace: fix LDFLAGS for libsupc++ and libiberty
Robert Schwebel <rsc@pengutronix.de> [Sat, 15 May 2010 07:42:55 +0200] rev 1968
debug/ltrace: fix LDFLAGS for libsupc++ and libiberty

The configure script correctly detects libsupc++ and libiberty, but in
the linker stage it tries to link in both libraries without taking care
of the test result.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
[yann.morin.1998@anciens.enib.fr: rework patch depth to be -p1]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-05-18libc/glibc: fix as/ld checks against recent binutils
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 18 May 2010 23:54:55 +0200] rev 1967
libc/glibc: fix as/ld checks against recent binutils

Backported from:
http://sourceware.org/ml/libc-alpha/2009-09/msg00024.html

Thanks to Khem RAJ for pointing to this fix:
http://sourceware.org/ml/crossgcc/2010-05/msg00033.html

2010-05-22test-suite: apply cleanup pass
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 22 May 2010 22:04:31 +0200] rev 1966
test-suite: apply cleanup pass

Remove all non-modifiable items (target tuple, gcc version, toolchain path...)
Makefile syntax ( use $(...) instead of ${...} )
Update doc
Space-damage cleanups

2010-05-19test-suite: Added new test suite feature (experimental)
Martin Lund <mgl@doredevelopment.dk> [Wed, 19 May 2010 17:53:04 +0200] rev 1965
test-suite: Added new test suite feature (experimental)

This patch adds support for installing the gcc test suite. A helper
Makefile is provided for building and running the gcc tests.

The default configuration runs all gcc tests and requires automatic
ssh/scp login access to a networked target board. See README for
more details.

Note: Current feature is tested with the powerpc-unknown-linux-gnu
sample but it should work with others as well.

Signed-off-by: Martin Lund <mgl@doredevelopment.dk>

2010-05-22scripts/wrapper.c: Under MacOS set DYLD_LIBRARY_PATH
Titus von Boxberg <titus@v9g.de> [Sat, 22 May 2010 12:37:02 +0200] rev 1964
scripts/wrapper.c: Under MacOS set DYLD_LIBRARY_PATH

Depending on (predefined) macro __APPLE__, use DYLD_LIBRARY_PATH
instead of LD_LIBRARY_PATH.

2010-05-22docs/overview.txt: Provide short mercurial HOWTO
Titus von Boxberg <titus@v9g.de> [Sat, 22 May 2010 18:48:50 +0200] rev 1963
docs/overview.txt: Provide short mercurial HOWTO

The usage of hg mq is imho not very well documented.
Give a short intro for the most important use cases
for contributions to ct-ng.

yann.morin.1998@anciens.enib.fr:
Slightly rewrote the explanations for the introductory message.

2010-05-17ct-ng: Add ability to configure and use some GNU tools
Titus von Boxberg <titus@v9g.de> [Mon, 17 May 2010 14:11:08 +0200] rev 1962
ct-ng: Add ability to configure and use some GNU tools

Make the paths to libtool, objcopy, objdump, readelf, patch configurable.

2010-05-22scripts/build/internals.sh: Always use binary wrapper under BSD/MacOS
Titus von Boxberg <titus@v9g.de> [Sat, 22 May 2010 17:30:44 +0200] rev 1961
scripts/build/internals.sh: Always use binary wrapper under BSD/MacOS

The shell wrapper script uses a nonportable call to readlink.
Thus, always use the binary wrapper under BSD/MacOS.

yann.morin.1998@anciens.enib.fr:
Use 'case' instead of 'if'.

2010-05-17scripts/wrapper.in: Add a comment about readlink not being portable.
Titus von Boxberg <titus@v9g.de> [Mon, 17 May 2010 12:27:32 +0200] rev 1960
scripts/wrapper.in: Add a comment about readlink not being portable.

Documented that the call to readlink will not work on BSD systems.

2010-05-17configure: make call to readlink portable to non-GNU (BSD) systems
Titus von Boxberg <titus@v9g.de> [Mon, 17 May 2010 12:23:24 +0200] rev 1959
configure: make call to readlink portable to non-GNU (BSD) systems

The argument '-e' for readlink is a GNU extension.
In setting the variable 'where' the argument '-e' is not necessary, thus eliminated.

2010-05-19scripts/crosstool-NG.sh.in: On MacOS/BSD use the output of CT_DoConfigGuess for CT_BUILD.
Titus von Boxberg <titus@v9g.de> [Wed, 19 May 2010 18:13:00 +0200] rev 1958
scripts/crosstool-NG.sh.in: On MacOS/BSD use the output of CT_DoConfigGuess for CT_BUILD.

On 64bit MacOS `gcc -dumpmachine` gives i686 for the host machine.
This conflicts with the expectations of some following configure scripts
that a 64bit x86 is given as x86_64; i686 is understood as a 32 bit machine.
config.guess sets the host machine in CT_BUILD correctly.

yann.morin.1998@anciens.enib.fr:
As suggested by Khem RAJ on the ML, always use config.guess.

2010-05-17configure: Do not require stat to be of GNU coreutils
Titus von Boxberg <titus@v9g.de> [Mon, 17 May 2010 11:29:26 +0200] rev 1957
configure: Do not require stat to be of GNU coreutils

calls to stat have been made portable, thus it is not necessary
that the GNU version is present on the user's system.

2010-05-19scripts/functions: Use stat correctly on non-GNU (BSD/Darwin) systems.
Titus von Boxberg <titus@v9g.de> [Wed, 19 May 2010 18:22:32 +0200] rev 1956
scripts/functions: Use stat correctly on non-GNU (BSD/Darwin) systems.

Call to get the directory mode depending on $CT_SYS_OS

yann.morin.1998@anciens.enib.fr:
CT_SYS_OS has changed on Linuxsystem, it only gets the kernel name "Linux",
and not the system name, 'GNU/'.

2010-05-19build/internals.sh: Replace nonportable call to stat
Titus von Boxberg <titus@v9g.de> [Wed, 19 May 2010 18:08:23 +0200] rev 1955
build/internals.sh: Replace nonportable call to stat

The call to stat to find out if a file is a symlink works only on GNU systems,
and the replacing portable call to readlink is also shorter and more concise code.

yann.morin.1998@anciens.enib.fr:
Apply simpler test, after discussion with author and Arnaud LACOMBE on the ML.

2010-05-19crosstool-NG.sh: suppress failure message from uname -o
Titus von Boxberg <titus@v9g.de> [Wed, 19 May 2010 18:17:39 +0200] rev 1954
crosstool-NG.sh: suppress failure message from uname -o

On non-GNU systems (BSD/MacOS) there is no uname -o.
Suppress the failure message on these systems in the
call to set CT_SYS_OS (uname -s actually sets this variable).

yann.morin.1998@anciens.enib.fr: remove 'uname -o' altogether.

2010-05-16cc/gcc: add latest version
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 16 May 2010 19:41:53 +0200] rev 1953
cc/gcc: add latest version

Add 4.4.4 and forward-port patchset from 4.4.3

2010-05-18kernel/linux: update versions list
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 18 May 2010 23:03:48 +0200] rev 1952
kernel/linux: update versions list

2010-05-18Merge. 1.7
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 18 May 2010 22:59:08 +0200] rev 1951
Merge.

2010-05-18Revert changeset e7f7220b5ba2 1.7
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 18 May 2010 22:59:00 +0200] rev 1950
Revert changeset e7f7220b5ba2

Arnaud LACOMBE rightly pointed out that this was done on the wrong branch.

2010-05-18Revert changeset d341be24dc68 1.7
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 18 May 2010 22:58:49 +0200] rev 1949
Revert changeset d341be24dc68

Arnaud LACOMBE rightly pointed out that this was done on the wrong branch.

2010-05-16cc/gcc: add latest version 1.7
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 16 May 2010 19:41:53 +0200] rev 1948
cc/gcc: add latest version

Add 4.4.4 and forward-port patchset from 4.4.3

2010-05-16kernel/linux: update versions list 1.7
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 16 May 2010 18:56:51 +0200] rev 1947
kernel/linux: update versions list

2010-04-301.7: update version to 1.7.0+hg 1.7
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 30 Apr 2010 22:26:52 +0200] rev 1946
1.7: update version to 1.7.0+hg

2010-04-30Tagging release 1.7.0 1.7
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 30 Apr 2010 22:26:52 +0200] rev 1945
Tagging release 1.7.0

2010-04-301.7: create maintenance branch, update version to 1.7.0 1.7 crosstool-ng-1.7.0
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 30 Apr 2010 22:26:52 +0200] rev 1944
1.7: create maintenance branch, update version to 1.7.0

2010-04-30scripts/mk-release: pretty-up the per-author stats
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 30 Apr 2010 22:25:45 +0200] rev 1943
scripts/mk-release: pretty-up the per-author stats

Reverse sort first by number of changesets, then sort alphabetically
on the author's names.

2010-04-30docs: update the known issues
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 30 Apr 2010 14:33:07 +0200] rev 1942
docs: update the known issues

2010-04-30samples: update
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Fri, 30 Apr 2010 14:28:14 +0200] rev 1941
samples: update

2010-04-29debug/gdb: install tic in the buildtools directory
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 29 Apr 2010 22:14:31 +0200] rev 1940
debug/gdb: install tic in the buildtools directory

'tic' is a build tool, its place is in the buildtools
directory, not in the toolchain's bin directory.

2010-04-29debug/gdb: be less verbose during the ncurses build
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 29 Apr 2010 22:12:27 +0200] rev 1939
debug/gdb: be less verbose during the ncurses build

2010-04-29scripts: don't set LD_PRELOAD with static companion libraries
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 29 Apr 2010 00:25:17 +0200] rev 1938
scripts: don't set LD_PRELOAD with static companion libraries

When cpmpanion libraries are built statically, it is useless to set
LD_PRELOAD. Worse, it might break the build in some corner cases.

2010-04-28docs: update the section about the wrapper
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 28 Apr 2010 22:24:01 +0200] rev 1937
docs: update the section about the wrapper

The wrapper is no longer needed when building
non-shared companion libraries. Document that.

2010-04-25arch/sh: fix type in variant handling
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sun, 25 Apr 2010 18:27:23 +0200] rev 1936
arch/sh: fix type in variant handling

2010-04-22scripts/savesample: be silent when checking for .config file
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 22 Apr 2010 19:21:03 +0200] rev 1935
scripts/savesample: be silent when checking for .config file

2010-04-221.6: update version to 1.6.2+hg 1.6
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 22 Apr 2010 19:26:52 +0200] rev 1934
1.6: update version to 1.6.2+hg

2010-04-22Tagging release 1.6.2 1.6
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 22 Apr 2010 19:26:52 +0200] rev 1933
Tagging release 1.6.2

2010-04-221.6: update version to 1.6.2 1.6 crosstool-ng-1.6.2
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 22 Apr 2010 19:26:52 +0200] rev 1932
1.6: update version to 1.6.2

2010-04-20cc/gcc: fix cc symlink when executables have an extension 1.6
Remy Bohmer <linux@bohmer.net> [Tue, 20 Apr 2010 11:39:13 +0200] rev 1931
cc/gcc: fix cc symlink when executables have an extension

When building a cross-compiler for a host which depends
on file extensions the symlink for cc was not installed correctly

Signed-off-by: Bart vdr. Meulen <bartvdrmeulen@gmail.com>
[Yann E. MORIN: style fixes, enhancements, code prettying]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 214c64ba8b21db15f610eca886fb194a6675e40c)

2010-04-21libc/newlib: don't do // downloads
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 21 Apr 2010 19:06:29 +0200] rev 1930
libc/newlib: don't do // downloads

The newlib FTP site does not like // downloads, and quickly
blocks the IP from the downloader.

Override the number of chunks when downloading newlib.

2010-04-21libc/glibc: fix kernel version check
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Wed, 21 Apr 2010 18:54:58 +0200] rev 1929
libc/glibc: fix kernel version check

Since we log the test strings, it is no longer possible to call
the CT_Test* functions from sub-functions that print results to
their stdout.

2010-04-20scripts: also prepare include symlink to sysroot/include
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 20 Apr 2010 09:58:41 +0200] rev 1928
scripts: also prepare include symlink to sysroot/include

2010-04-19scripts: check g++ only for host
Remy Bohmer <linux@bohmer.net> [Mon, 19 Apr 2010 23:42:31 +0200] rev 1927
scripts: check g++ only for host

g++ is only needed when building additonal libs on the HOST,
so check wheter g++ is available for the HOST compiler only

Signed-off-by: Bart vdr. Meulen <bartvdrmeulen@gmail.com>
[Yann E. MORIN: fix space damage]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-04-09cc/gcc: use proper host compiler for canadian bare-metal
Remy Bohmer <linux@bohmer.net> [Fri, 09 Apr 2010 21:04:37 +0200] rev 1926
cc/gcc: use proper host compiler for canadian bare-metal

While compiling a canadian toolchain for host=mingw32, build=linux,
target=m68k-elf the build fails because in this step of the gcc build
the Host compiler is used in this stage with the build-flags for the
build system. This results in an error where the header <sys/wait.h>
cannot be found.
This problem happens at least in the GCC-4.3.x and GCC-4.4.x range.

This is solved by passing the proper compilers on the Make cmd-line

Signed-off-by: Remy Bohmer <linux@bohmer.net>

2010-04-20cc/gcc: allow building a canadian bare-metal compiler
Remy Bohmer <linux@bohmer.net> [Tue, 20 Apr 2010 10:06:04 +0200] rev 1925
cc/gcc: allow building a canadian bare-metal compiler

Previous addition of the canadian cross compiler did not allow
to build a baremetal only variant, no reason why this is not
allowed

Signed-off-by: Bart vdr. Meulen <bartvdrmeulen@gmail.com>

2010-04-20cc/gcc: fix cc symlink when executables have an extension
Remy Bohmer <linux@bohmer.net> [Tue, 20 Apr 2010 11:39:13 +0200] rev 1924
cc/gcc: fix cc symlink when executables have an extension

When building a cross-compiler for a host which depends
on file extensions the symlink for cc was not installed correctly

Signed-off-by: Bart vdr. Meulen <bartvdrmeulen@gmail.com>
[Yann E. MORIN: style fixes, enhancements, code prettying]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

2010-04-09libc/newlib: the m68k processor does not like unaligned 1.6
Remy Bohmer <linux@bohmer.net> [Fri, 09 Apr 2010 21:04:38 +0200] rev 1923
libc/newlib: the m68k processor does not like unaligned

Disable unaligned access at least for mcpu32, m68010 and m68020.
These processors certainly do not like unaligned accesses.

Signed-off-by: Remy Bohmer <linux@bohmer.net>
(transplanted from faade25219ed565993b7b26357991d3130697515)

2010-04-10complibs/mpfr: fix extract 1.6
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Sat, 10 Apr 2010 22:45:36 +0200] rev 1922
complibs/mpfr: fix extract

With MPFR 2.4.2, autoreconf needs to be run as well.
(transplanted from b376baa43a50e178915f8d5dac40d9408bf2e962)

2010-04-15cc/gcc: add 4.5.0
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 15 Apr 2010 22:35:22 +0200] rev 1921
cc/gcc: add 4.5.0

2010-04-15cc/gcc: add support for 4.5.0 or later versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 15 Apr 2010 22:35:18 +0200] rev 1920
cc/gcc: add support for 4.5.0 or later versions

starting with 4.5.0, gcc requires libelf.

2010-04-15complibs/libelf: remove old versions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 15 Apr 2010 22:35:15 +0200] rev 1919
complibs/libelf: remove old versions

Those old versions are not suitable for use by gcc.

2010-04-15complibs/libelf: enable the host build
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 15 Apr 2010 22:42:06 +0200] rev 1918
complibs/libelf: enable the host build

Host libelf is required by gcc-4.5.0

2010-04-15complibs/libelf: build target libelf in its own directory
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 15 Apr 2010 22:35:04 +0200] rev 1917
complibs/libelf: build target libelf in its own directory

2010-04-15debug/gdb: remove insight
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 15 Apr 2010 20:00:23 +0200] rev 1916
debug/gdb: remove insight

Insight seems to be very slow to follow up on mainstreram gdb.
Latest snapshots are more than 6 months old.

Moreover, I don't have time to maintain insight support in crosstool-NG;
and, because I don't use it, I am unable to find any breakage.

2010-04-15debug/gdb: reorder options in the menuconfig
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 15 Apr 2010 19:54:00 +0200] rev 1915
debug/gdb: reorder options in the menuconfig

2010-04-15debug/gdb: allow static build with complibs
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 15 Apr 2010 22:34:35 +0200] rev 1914
debug/gdb: allow static build with complibs

It is now possible to built static versions of the companion libraries,
so we can now build a static cross-gdb using the complibs.

2010-04-15scripts: don't print the build system guess warning
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Thu, 15 Apr 2010 22:34:11 +0200] rev 1913
scripts: don't print the build system guess warning

2010-04-13complibs/gmp: mark 5.0.1 as being experimental
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 13 Apr 2010 23:26:12 +0200] rev 1912
complibs/gmp: mark 5.0.1 as being experimental

MPFR can't cope with GMP > 4.x.y so hide it behind EXPERIMENTAL
until we fix MPFR

2010-04-07samples: add Blackfin sample
Thomas Petazzoni <thomas.petazzoni@free-electrons.com> [Wed, 07 Apr 2010 09:26:12 +0200] rev 1911
samples: add Blackfin sample

2010-04-07Add basic support for the Blackfin architecture
Thomas Petazzoni <thomas.petazzoni@free-electrons.com> [Wed, 07 Apr 2010 09:18:20 +0200] rev 1910
Add basic support for the Blackfin architecture

For uClibc, the name of the Blackfin architecture is 'bfin'. Actually,
the naming of the architecture is quite messy: for toolchain tuples
and uClibc, it's bfin, but for the kernel, it's blackfin. We've
arbitraly choosen to name it "blackfin" in Crosstool-NG.

Add Blackfin-related uClibc patch to fix a build failure related to
fork() being used in unistd/daemon.c.

Yann E. MORIN:
Apply the patch to the kernel/linux build script to use 'linux'
in the noMMU tuples. See:
http://sourceware.org/ml/crossgcc/2010-04/msg00010.html

2010-04-13scripts/functions: log the test strings
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 13 Apr 2010 22:54:57 +0200] rev 1909
scripts/functions: log the test strings

2010-04-13scripts/functions: compress with gzip level 3, as stated in the documentation
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 13 Apr 2010 21:47:34 +0200] rev 1908
scripts/functions: compress with gzip level 3, as stated in the documentation

Thanks to Bruno Tarquini <btarquini@gmail.com> for the report.

2010-04-13scripts/functions: add a save/restore handler
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 13 Apr 2010 20:52:38 +0200] rev 1907
scripts/functions: add a save/restore handler

Saving and restoring the steps requires saving/restoring multiple
directories. Depending on the configuration, some may not exist.

Add a wrapper that checks before creating/extracting the tarballs.

2010-04-13scripts/functions: fix CT_Patch again
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> [Tue, 13 Apr 2010 20:05:47 +0200] rev 1906
scripts/functions: fix CT_Patch again