summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)AuthorFilesLines
2010-05-22scripts/build/internals.sh: Always use binary wrapper under BSD/MacOSTitus von Boxberg1-0/+7
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 Boxberg1-0/+5
Documented that the call to readlink will not work on BSD systems.
2010-05-19scripts/crosstool-NG.sh.in: On MacOS/BSD use the output of CT_DoConfigGuess ↵Titus von Boxberg1-3/+3
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-19scripts/functions: Use stat correctly on non-GNU (BSD/Darwin) systems.Titus von Boxberg1-1/+11
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 statTitus von Boxberg1-1/+1
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 -oTitus von Boxberg1-2/+1
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-04-30scripts/mk-release: pretty-up the per-author statsYann E. MORIN"1-1/+1
Reverse sort first by number of changesets, then sort alphabetically on the author's names.
2010-04-29debug/gdb: install tic in the buildtools directoryYann E. MORIN"1-1/+1
'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 buildYann E. MORIN"1-12/+1
2010-04-28scripts: don't set LD_PRELOAD with static companion librariesYann E. MORIN"1-4/+3
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-25arch/sh: fix type in variant handlingYann E. MORIN"1-1/+1
2010-04-22scripts/savesample: be silent when checking for .config fileYann E. MORIN"1-1/+4
2010-04-21libc/newlib: don't do // downloadsYann E. MORIN"1-0/+9
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 checkYann E. MORIN"1-1/+3
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/includeYann E. MORIN"1-2/+5
2010-04-19scripts: check g++ only for hostYann E. MORIN"1-1/+5
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-metalRemy Bohmer1-1/+13
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 compilerBart vdr. Meulen1-19/+10
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 extensionYann E. MORIN"1-2/+8
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-15cc/gcc: add support for 4.5.0 or later versionsYann E. MORIN"2-1/+10
starting with 4.5.0, gcc requires libelf.
2010-04-15complibs/libelf: enable the host buildYann E. MORIN"1-37/+33
Host libelf is required by gcc-4.5.0
2010-04-15complibs/libelf: build target libelf in its own directoryYann E. MORIN"1-2/+2
2010-04-15debug/gdb: remove insightYann E. MORIN"1-20/+1
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-15scripts: don't print the build system guess warningYann E. MORIN"1-1/+0
2010-04-07Add basic support for the Blackfin architectureThomas Petazzoni3-6/+26
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 stringsYann E. MORIN"1-0/+3
2010-04-13scripts/functions: compress with gzip level 3, as stated in the documentationYann E. MORIN"1-8/+12
Thanks to Bruno Tarquini <btarquini@gmail.com> for the report.
2010-04-13scripts/functions: add a save/restore handlerYann E. MORIN"1-62/+62
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 againYann E. MORIN"1-4/+6
2010-04-12Merge.Yann E. MORIN"1-1/+1
2010-04-12Revert 3ea4e6f7b85f: Force autoreconf for mpfrYann E. MORIN"1-1/+1
It breaks on my machine. Revert until we find the exact cause leading to the initial patch, and we come up with a patch that properly fixes it.
2010-04-12scripts/functions: fix CT_PatchYann E. MORIN"1-2/+2
2010-04-11scripts/functions: make CT_Patch dumberYann E. MORIN"25-53/+54
It is the responsibility of the caller to split the package name from its version. It already knows that.
2010-04-11libc/newlib: only compute version string, not full filenameYann E. MORIN"1-8/+8
2010-04-11debug/gdb: remove snapshot versionYann E. MORIN"1-13/+6
2010-04-09cc/gcc: add bugurl and compiler version to core gcc compilerRemy Bohmer1-0/+4
When building for bare-metal the core-gcc compiler is delivered as final compiler, so the version info and bugurl is useful in the core compiler as well. Signed-off-by: Remy Bohmer <linux@bohmer.net>
2010-04-09scripts: prevent trailing - in CT_TARGETBart vdr Meulen1-4/+4
Not all target tuples consist of an VENDOR, KERNEL and SYSTEM part, build up the tuple in such a way to no extra or trailing dashes are added to CT_TARGET Signed-off-by: Bart vdr Meulen <bartvdrmeulen@gmail.com>
2010-04-09[CT-NG:patch 05/19] Force autoreconf for mpfrBart vdr. Meulen1-1/+1
In some exotic case the autoreconf step of mpfr is not executed (correctly) leaving an incorrect version number for libtool in the configure script. After extracting the sources files, force autoreconf to be executed. Signed-off-by: Bart vdr. Meulen <bartvdrmeulen@gmail.com>
2010-04-11complibs: save directory with static complibs for stop/restartYann E. MORIN"2-0/+15
2010-04-11complibs: don't install in toolchain dir when built as staticYann E. MORIN"8-37/+42
2010-04-10complibs: allow either static or shared buildYann E. MORIN"7-27/+87
2010-04-10complibs: build static librariesYann E. MORIN"6-10/+13
2010-04-10config: replace COMP_LIBS with COMPLIBSYann E. MORIN"5-5/+5
2010-04-10complibs/mpfr: fix extractYann E. MORIN"1-1/+1
With MPFR 2.4.2, autoreconf needs to be run as well.
2010-04-10scripts: add script to publish patchesYann E. MORIN"1-0/+44
This script creates the patches for an existing version.
2010-04-07cc/gcc: fix thread-less final gcc buildArnaud Lacombe1-1/+9
If threads are disabled in libc, we don't want to enable them in the final compiler. Doing so pass the configure stage, but fails latter on a missing <pthread.h>. Moreover, we don't want to build libgomp if threads are disabled; its configure script would fails anyway. Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
2010-04-07cc/gcc: fix recent gcc buildArnaud Lacombe1-4/+4
This fix missed conversion of CT_GCC_USE_* to CT_CC_GCC_USE_*. Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
2010-04-01scripts: misc help and auto-complete fixesYann E. MORIN"1-4/+6
- don't list samples in the main help screen - improve the samples listing in list-samples - don't document the 'config' action, it's long dead - document the 'V' environment variable - improve on START, STOP and PREFIX environment variables - add PREFIX and V to autocomplete - advertise auto-complete at install time
2010-03-29scripts/addToolsVersion: fix handling libelfYann E. MORIN"1-1/+1
libelf has moved to the companion libraries section, and is no longer in the tools section.
2010-03-28scripts/populate: optimise search loopYann E. MORIN"1-31/+53
Curently, populate will iterate over all ELF (shared objects|executables) to look for missing NEEDED DSOs, adding to the list at every iterations of the search loop. Instead of looking again at previously handled ELF files, recursively resolve every ELf files. Also, in case there are a whole lot of files (more than the shell can accept as arguments list, or creating a command line longer than the shell can cope with), use a temporary file with the list of files to search for missing dependencies.