summaryrefslogtreecommitdiff
path: root/scripts/functions
AgeCommit message (Collapse)AuthorFilesLines
2008-02-14Robet P. J. DAY: typoes.Yann E. MORIN"1-1/+1
2008-01-16Fix a long standing bug when setting compiler flags.Yann E. MORIN"1-1/+1
2007-10-30Fix by "Arvid Brodin" <Arvid.Brodin@enea.com> to CFLAGS coming from ↵Yann E. MORIN"1-1/+1
CT_ARCH_TUNE. Thanks for spotting this one! ;-)
2007-09-16ARM EABI is now working for little endian ARM targets.Yann E. MORIN"1-6/+6
Big endian is still missing, though...
2007-09-15Further improve the architecture-specific framework.Yann E. MORIN"1-2/+21
Apply this framework into building of glibc and gcc. (Whoo! 500th commit! Yeah!)
2007-09-14Further expand the architecture-specific function: add CT_KERNEL_ARCH building.Yann E. MORIN"1-0/+3
2007-09-14Migrate all supported architectures to use the architecture-specific framework.Yann E. MORIN"1-31/+21
2007-09-11Merge from branches/ia64@476 : add ia64 preliminary support.Yann E. MORIN"1-0/+1
2007-09-08Use symlinks to the localy stored tarballs rather than copying them.Yann E. MORIN"1-3/+4
If saving tarballs to local storage is selected, move newly downloaded tarballs there and symlink.
2007-09-06Add a patch to enqable NPTL build on ARM OABI with glibc-2.6.1.Yann E. MORIN"1-1/+1
Fix a comment.
2007-08-16Fix restoring the environment.Yann E. MORIN"1-1/+1
2007-08-15Change "triplet" (target triplet) to "tuple". That sounds better!Yann E. MORIN"1-4/+4
Document overriding the number of // jobs. Some small documentation fixes.
2007-08-12Fix a small typo when extracting non-compressed steps.Yann E. MORIN"1-10/+10
Have a go for a sane handlign of tar options and extensions.
2007-08-12Fix saving the environment. Thanks to Mark Vels <Mark.Vels@fundem.net> for ↵Yann E. MORIN"1-4/+2
pointed it out!
2007-07-30Remove any reference to libfloat. That has gone once and for all.Yann E. MORIN"1-1/+1
Rationale: Most of the time, soft-float problems are caused by this sucker of gcc: it has support for soft float for all of the targets I've tried so far, but does not activate this code until you dwelve into half a dozen of files to make it accept to build and link the support code... So, yes: gcc has soft-float support. And again, yes: gcc is a sucker.
2007-07-15Add an option to save downloaded tarballs to local tarballs directory.Yann E. MORIN"1-8/+15
Sanitise CT_GetFile. Change some messages (Copying -> Retrieving).
2007-07-12Get rid of the legacy local variable got_it.Yann E. MORIN"1-9/+12
Allow to download files without extension. Allow to specify a preffered extension when downloading a file.
2007-07-12Test for curl or wget only once, not at each download.Yann E. MORIN"1-2/+2
2007-07-07Silence "which" being verbose in some distros. (eg. Mandriva's which spawns ↵Yann E. MORIN"1-3/+11
"foobar was not found in /bin:/usr/bin:...." directly on stderr)
2007-07-01Merge the build system to trunk: ct-ng is now installable:Yann E. MORIN"1-2/+22
- ./configure --prefix=/some/place - make - make install - export PATH="${PATH}:/some/place/bin" - ct-ng <action>
2007-06-16scripts/functions is responsible for initiating the log file.Yann E. MORIN"1-0/+7
Users of the log facility are in charge to use, move, delete this log file, now.
2007-06-16When searching a matching extension for a file, also check for the empty ↵Yann E. MORIN"1-1/+4
extension.
2007-06-01Messages from the downloaders should be tagged ALL, not DEBUG.Yann E. MORIN"1-2/+2
2007-05-29Small fix in the log level when dumping the last messages (elapsed time).Yann E. MORIN"1-2/+3
2007-05-28Don't start a state restoration if it is not available.Yann E. MORIN"1-4/+4
Fortuitly discovered that $SECONDS is inherited from shell to sub-shells. Good!
2007-05-27Merge the NPTL stuff.Yann E. MORIN"1-13/+44
That still leaves the linuxthreads stuff broken, but it was just before. I don't care anyway. Time to fix that later...
2007-05-25Add the possibility to stop after a specified step.Yann E. MORIN"1-1/+8
Update the Makefile help and the documentation accordingly.
2007-05-23In CT_Abort(), don't send output to stderr. Let the log facility handle ↵Yann E. MORIN"1-1/+1
where things should go.
2007-05-23Sanitise CT_DoBuildTargetTriplet a bit.Yann E. MORIN"1-7/+1
2007-05-22Implement a restart facility.Yann E. MORIN"1-1/+110
If you select to debug ct-ng, then you have two new options: - DEBUG_CT_PAUSE_STEPS : pause between every steps, - DEBUG_CT_SAVE_STEPS : save state between every steps. To restart a saved state, just set the RESTART make variable when calling make: - make RESTART=<step_name>
2007-05-20Ah! I finally have a progress bar that doesn't stall the build!Yann E. MORIN"1-7/+8
- pipe size in Linux is only 8*512=4096 bytes - pipe size is not setable - when the feeding process spits out data faster than the eating process can read it, then the feeding process stalls after 4KiB of data sent to the pipe - for us, the progress bar would spawn a sub-shell every line, and the sub-shell would in turn spawn a 'date' command. Which was sloooww as hell, and would cause some kind of a starvation: the pipe was full most of the time, and the feeding process was stalled all this time. Now, we use internal variables and a little hack based onan offset to determine the elapsed time. Much faster this way, but still CPU-intensive.
2007-05-19Correctly handle the libfloat case: download, extract and patch sub-actions.Yann E. MORIN"1-1/+2
Small improvement in messages in scipts/functions when retrieving a file.
2007-05-18Really use local copy first in case it does not have the same extension as ↵Yann E. MORIN"1-19/+18
the downloadable tarball.
2007-05-17Make the debug config menu a generated file.Yann E. MORIN"1-1/+1
Add a uClibc-0.9.29 patch directory with one patch (from me!). Update the armeb-unknown-linux-uclibc sample to uClibc-0.9.29. Some eyecandy in the gdb build process.
2007-05-17Debug facilities:Yann E. MORIN"1-23/+18
- add a framework to easily add new ones - add gdb as a first debug facility - add patches for gdb After the kernel checked its installed headers, clean up the mess of .checked.* files. Reorder scripts/crosstool.sh: - dump the configuration early - renice early - get info about build system early, when setting up the environment - when in cross or native, the host tools are those of the build system, and only in this case - elapsed time calculations moved to scripts/functions Remove handling of the color: it's gone once and for all. Update tools/addToolVersion.sh: - handle debug facilities - commonalise some code - remove dead tools (cygwin, tcc) Point to my address for bug reports.
2007-05-13Correctly handle the version string, defined in a single place now.Yann E. MORIN"1-3/+0
Fix and update README.
2007-05-10Update the way we handle directories supplied by the user:Yann E. MORIN"1-42/+45
- the tarball directory is considered as a local copy, and tarballs are copied to a working area, - the sources and build directories (CT_SRC_DIR and CT_BUILD_DIR) are now computed, and no longer an option, - the build dir has been renamed from 'build' to 'targets'. That should ease preparing a tarball of the resulting target.
2007-05-09Again, some progress bar optimisation.Yann E. MORIN"1-4/+11
2007-05-08Hop, a somewhat more efficient progress bar, less CPU consuming, if that was ↵Yann E. MORIN"1-0/+1
a problem :-) (a litlle recreation while toochains are building...)
2007-05-08Fix handling of downloader output: they are now correctly logged using the ↵Yann E. MORIN"1-3/+3
internal log facility.
2007-05-08Huge fixes to glibc build, so that we can build at least (and at last):Yann E. MORIN"1-12/+14
- use ports addon even when installing headers, - use optimisation (-O) when installing headers, to avoid unnecessary warnings (thanks Robert P. J. DAY for pointing this out!), - lowest kernel version to use is only X.Y.Z, not X.Y.Z.T, - a bit of preparations for NPTL (RSN I hope), - fix fixing the linker scripts (changing the backup file is kind of useless and stupid); Shut uClibc finish step: there really is nothing to do; Add a patch for glibc-2.3.6 weak aliases handling on some archs (ARM and ALPHA at least); Did not catch the make errors: fixed the pattern matching in scripts/functions; Introduce a new log level, ALL: - send components' build messages there, - DEBUG log level is destined only for crosstool-NG debug messages, - migrate sub-actions to use appropriate log levels; Update the armeb-unknown-linux-gnu sample: - it builds! - uses gcc-4.0.4 and glibc-2.3.6, - updated to latest config options set.
2007-05-08Inform that a component is already extracted.Yann E. MORIN"1-1/+4
2007-05-08Print the elapsed time alongside with the progress bar, such as below:Yann E. MORIN"1-1/+3
[02:27] \
2007-05-07Merge the save-sample branch to trunk:Yann E. MORIN"1-0/+231
- reorder most of the environment setup, - geting, extracting and patching are now components' sub-actions, - save the current config as a sample to be used as a pre-configured target.
2007-04-23Second shot at merging from the MIPS branch:Yann E. MORIN"1-7/+12
- log level boost for warnings and errors - option re-ordering - help updating
2007-02-24Add the full crosstool-NG sources to the new repository of its own.Yann E. MORIN"1-0/+215
You might just say: 'Yeah! crosstool-NG's got its own repo!". Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup. That means I'm putting backups in place in the afternoon. That also means we've lost history... :-(