path: root/config/global
AgeCommit message (Collapse)AuthorFilesLines
2017-02-13Detect both wget/curl and allow user to select the agentAlexey Neyman1-5/+38
Signed-off-by: Alexey Neyman <>
2017-01-30Allow for per-tool templates when creating overridesAlexey Neyman2-2/+2
... will be used to implement a smarter install wrapper. While there, correct the spelling of "OVERIDE". Signed-off-by: Alexey Neyman <>
2017-01-20Make build-all rely on kconfig options.Alexey Neyman1-1/+5
For that, make CT_BUILD_TOP_DIR a non-settable config option (so that it is recursively expanded with CT_HOST/CT_TARGET). Use a common prefix, with same default as for regular sample build. Use to determine host toolchain path (for canadian crosses) and build directory to be removed. Remove LIBC_SYSROOT_ARG (unused). Signed-off-by: Alexey Neyman <>
2017-01-20Simplify config saving.Alexey Neyman2-4/+3
Instead of hardcoding defaults in, have the same defaults in config. Then we can just remove them when saving the config.
2017-01-20Install canadian crosses into a separate subdir.Alexey Neyman1-1/+1
Makes them sorted out by host, and removes the need for similar hack in Change how canadian crosses are named: using `=' character resulted in Glibc build failure. Move loading config into a common function, CT_LoadConfig. Signed-off-by: Alexey Neyman <>
2016-12-19Kill CT_INSTALL_DIR.Alexey Neyman1-14/+1
We now use CT_PREFIX and expect the resulting toolchain to be relocatable. Signed-off-by: Alexey Neyman <>
2015-12-08config: Remove CUSTOM_LOCATION_ROOT_DIRBryan Hundven1-9/+0
On top of making <component>_CUSTOM much more complicated to rewrite, you couldn't depend on a requirement for all of the components to treat custom sources the same with it around. If you need a custom source for a component, define it in the component. Signed-off-by: Bryan Hundven <> Reviewed-by: "Yann E. MORIN" <>
2015-11-30gcc: Remove gcc <= 4.7.xBryan Hundven1-1/+0
As per #222, in crosstool-NG >= 1.23.0, we will only support: [upstream supported gcc versions] - 1 As of this writing, these versions are: * 5.2.0 * 4.9.3 * 4.8.5 (the -1, since development on 4.8.x is now closed) I plan to keep 4.8.5 around because of some architectures having issues with over-optimization or just faulty optimization in the 4.9.x and possibly newer versions. I also cleaned up a requirement for glibc to depend on >= gcc-4.6.x for >= glibc-2.20, but since the lowest gcc we support after this change is >= 4.8.5, this condition can go away. Patches for older gcc versions are removed in the next commit. This closes #222 Signed-off-by: Bryan Hundven <>
2015-11-11Use install-strip target for gcc optionallyIlya Lyubimov1-3/+13
2015-10-03Revert the automated build optionJean-Marie Lemetayer1-6/+1
This reverts commits: * d6413fe29fbdcd72a04b3d5820ba2e134dbaf558. * 4f266e1a8c78cec2c425b17784576db56125bbbd. Signed-off-by: Jean-Marie Lemetayer <>
2015-09-30config: Tone down automated build logsBryan Hundven1-7/+0
I forgot that the logs must stay small, and if they fail we'll grab the last few hundered lines. Note, the logs must stay smaller then 4M. Signed-off-by: Bryan Hundven <>
2015-09-29configure: Add automated build optionBryan Hundven1-1/+13
This commit introduces a configure time option to let the build know that this is going to be an automated build. This forces the build to disable the progress bar, log tool warnings, and force the log level to debug. Signed-off-by: Bryan Hundven <>
2015-06-02Remove support for experimental patches and musl patchesBryan Hundven1-10/+0
This functionality was provided so that crosstool-ng could have a further set of patches considered experimental and unsupported. Now that musl-libc support is making it's way upstream in gcc, I'm removing this support and the experimental musl patches. In later commits, backports from gcc upstream will be added to the supported patch sets to support musl-libc. Signed-off-by: Bryan Hundven <>
2014-07-27Add main EXPERIMENTAL_PATCHES settingBryan Hundven1-0/+10
This change adds support for experimental patches to be introduced to crosstool-ng. The patches enabled by this option are to be located here: patches/experimental/<package>/<version>/XXXX-NAME.patch Where, XXXX is the patch number to be applied in order, like: 0001-some_patch_one.patch 0002-some_patch_two.patch 9999-some_patch_to_be_applied_last.patch In the first patch series, all patches in the EXPERIMENTAL_PATCHES option will be applied all at once, or none at all. In a later [RFC] patch, I plan on adding finer tuned patch enable/disable options based on the name of the patch and where it is located in the patches/experimental sub-tree. So the name of the patch should use underscores between words in the patch name. Signed-off-by: Bryan Hundven <> [ slightly reword prompt] Signed-off-by: "Yann E. MORIN" <>
2014-05-10scripts: remove references to curlYann E. MORIN"1-5/+2
It's been a while we're not using curl anymore. Signed-off-by: "Yann E. MORIN" <>
2014-05-10scripts: add possibility to not override default connection timeoutCody Schafer1-0/+2
Allow '-1' to be specified as CONNECTION_TIMEOUT to disable the use of the connection timeout for wget. Signed-off-by: Cody P Schafer <> Message-Id: <cb33f8c2cbaf802d4f04.1399687632@localhost> Patchwork-Id: 347582
2013-01-27script: allow to pass any float value for CT_LOADSamuel Martin1-9/+7
Signed-off-by: Samuel Martin <> Message-Id: <b51acf21c72b4a8e882e.1359320015@laptop> Patchwork-Id: 216062
2013-01-10scripts: check for running as rootYann E. MORIN"1-0/+31
Running as root is really, really dangerous. Add a runtime-check that refuses to build if running as root. Can be overriden with a double switch in the menuconfig. Signed-off-by: "Yann E. MORIN" <>
2012-12-26all: unmark experimental featuresYann E. MORIN"1-1/+1
It's been some time now we've had those features, so unmark them being experimental. It does not mean everything is perfect, but may gather some more testing of those features. Signed-off-by: "Yann E. MORIN" <>
2012-11-16scripts: add BUILD/HOST extra cflags/ldflagsYann Diorcet1-1/+31
On some hosts, and for certain toolchains (eg. toolchain targetting the upcoming Darwin), it may be necessary to pass arbitrary CFLAGS and/or LDFLAGS when building the components. And necessary infrastructure: - EXTRA_{CFLAGS,LDFLAGS}_FOR_{BUILD,HOST} as config options - pass those extra flags to components Fix-up a slight typo in elf2flt at the same time (misnamed cflags). Signed-off-by: Yann Diorcet <> Message-Id: <d24043276c9243a35421.1353077450@macbook-smorlat.local> Patchwork-Id: 199645
2012-10-06scripts: add option to start an interactive debug shellYann E. MORIN"1-0/+19
Add an option that, when a command fails: - starts an interactive shell with the failed command's environment - attempts re-execution of the failed command, continues, or aborts at user's whim. Before starting the debug-shell, the backtrace is printed. When exiting for an abort, the standard error message is printed. Based on an idea and a patch from: Johannes Stezenbach <> Signed-off-by: Johannes Stezenbach <> [ integrate in the fault handler] Signed-off-by: "Yann E. MORIN" <> Acked-by: Johannes Stezenbach <> Patchwork-Id: 191571 Patchwork-Id: 191668
2012-10-04scripts/functions: add a generic custom location infrastructureDavid Holsgrove1-0/+9
Add a generic custom location infrastructure (inspired by the one in kernel/linux) to allow the user to use custom tarballs or directories for any component. Signed-off-by: "David Holsgrove" <> [ move config option, improve help text, fix API doc] Signed-off-by: "Yann E. MORIN" <> Message-Id: <131c163c69f9cc81d2be.1349931191@localhost.localdomain> PatchWork-Id: 190784 Message-Id: <0bbaba9190a76ba97f72.1349931192@localhost.localdomain> PatchWork-Id: 190785
2012-08-12scripts: add option to only use the mirrorYann E. MORIN"1-3/+14
Currently, if downloads are forbidden, the mirror is still tried for. Change this way: - if downlaods forbidden, do not try neither upstream locations nor mirror - add option to only use the mirror, and avoid upstream locations Signed-off-by: Austin Morton <> [ broaden the if USE_MIRRORto enclode mirror location] Signed-off-by: "Yann E. MORIN" <>
2011-11-15scripts: add support for building manualsYann E. MORIN"1-0/+8
Add support for building the HTML and PDF manuals for the major components. Implement for binutils, GCC, GDB, and GLIBC. Always build all manuals and install a subset. Be explicit about the subset to reduce the clutter and to avoid getting copies of common manuals like bfd from all of the sourceware based components. Downside of being explicit is that you need to update it when a new component comes along. Build the manuals as part of the last GCC build, namely 'cc' for glibc based ones and cc_core_pass_2 for baremetal. An example of the output is at: Signed-off-by: Michael Hope <> [ depends on ! remove docs; gold manual install] Signed-off-by: "Yann E. MORIN" <>
2011-10-18misc: change references to point to the new websiteYann E. MORIN"1-9/+12
It's been a while now that crosstool-NG has been hosted on it's own website, and not at my home. Change every reference to the old site to the new one, everywhere is makes sense to. Signed-off-by: "Yann E. MORIN" <>
2011-10-16config: use '0' for automatic number of jobsYann E. MORIN"1-3/+3
Also, make it the default. Signed-off-by: "Yann E. MORIN" <>
2011-10-11config: simplify setting CONFIG_SHELL, add a bit to the help entryYann E. MORIN"1-7/+16
Signed-off-by: "Yann E. MORIN" <>
2011-10-05scripts: support extra host compiler flagsYann E. MORIN"1-0/+10
Allow the user to configure extra flags to pass to the host compiler at build time. Applies to both C and C++. Useful on Ubuntu to turn off the stack protector and fortify defaults so the program stands a better chance of running on other distros. Signed-off-by: Michael Hope <> [ put the custom flags at the end] Signed-off-by: "Yann E. MORIN" <>
2011-09-28config: add a 'auto' value for the number of parallel jobsMichael Hope1-0/+2
When CT_PARALLEL_JOBS is -1, set the number of parallel jobs to the number of online CPUs + 1. Update documentation to match. I find this useful when building in the cloud. You can use the same .config file and have the build adapt to the number of processors available. Limited testing shows that NCPUS+1 is faster than NCPUS+0 or NCPUS+2. Signed-off-by: Michael Hope <>
2011-08-02scripts: try the mirror even if downloads are forbiddenYann E. MORIN"1-31/+31
Signed-off-by: "Yann E. MORIN" <>
2011-08-02scripts/functions: always prefer the mirrorYann E. MORIN"1-10/+1
Currently, the mirror can be used either: - as a fallback in case upstream is unavailable (default behavior) - as the preferred source for downloads But the most common use-case seems to provide a truely-LAN mirror to speed up downloads in big corpos', and/or provide a 'trusted' source for the tarballs. So, make the following changes; - if a mirror is specified, always try that before trying upstream Signed-off-by: "Yann E. MORIN" <>
2011-07-17misc: fix more typos here and there...Yann E. MORIN"3-11/+11
Reported-by: "Antony N. Pavlov" <> Signed-off-by: "Yann E. MORIN" <>
2011-05-31kconfig: remove useless 'default n'Benoît THÉBAUDEAU"5-17/+0
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" <>
2011-04-27config: small help fix up for work dir defaultYann E. MORIN"1-1/+1
Signed-off-by: "Yann E. MORIN" <>
2011-01-28config: add an option not to remove the destination directoryYann E. MORIN"1-0/+22
In certain circumstances, removing the destination/installation directory is a bad idea. For example, when the build environment is already taking care of sanitising the build tree, and pre-installs stuff in there, it is a very bad idea to remove the destination directory. This happens now in buildroot, as the crostool-NG backend now installs the toolchain in the common host-tools directory, and pre-install there a few host-utilities (eg. host-automake and host-gawk). Provide a config knob to turn on/off the removal of the destination directory, defaulting to 'y' (previous behavior), and forced to 'n' when used as a backend. Reported-by: Peter Korsgaard <> Signed-off-by: "Yann E. MORIN" <>
2010-12-21docs: overview.txt is gone, point to the new documentationYann E. MORIN"1-1/+1
Signed-off-by: "Yann E. MORIN" <>
2010-12-18config: fix the patch fallbacks methodsYann E. MORIN"1-2/+2
Reported-by: Heiko Zuerker <> Signed-off-by: "Yann E. MORIN" <>
2010-11-16scripts: remove aria2c as downloader, retain only curl and wgetYann E. MORIN"1-15/+0
Signed-off-by: "Yann E. MORIN" <>
2010-09-12config: change name of default build dirYann E. MORIN"1-1/+1
'targets' is not really meaningfull. 'build' means what it means. '.build' just hides it as well! :-) Signed-off-by: "Yann E. MORIN" <>
2010-08-11scripts: do not download in // by defaultYann E. MORIN"1-1/+1
Parallel downloads can be a bit harsh on the servers, and some will fail (eg. in some cases. Signed-off-by: "Yann E. MORIN" <>
2010-05-27scripts: add option to strip all toolchain executablesRemy Bohmer1-0/+10
To reduce filesizes of the toolchain and even improve build times of projects to be build with this toolchain it is usefull to strip the delivered toolchain executables. Since it is not likely that we will debug the toolchain executables itself we do not need the debug information inside the executables itself. Signed-off-by: Remy Bohmer <>
2010-07-10config: no need to push the download mirror in a sub menuYann E. MORIN"1-1/+1
2010-03-29config: move backend-related options to their own fileYann E. MORIN"1-25/+0
2010-03-29config: hide arch and kernel selection when used as a backendYann E. MORIN"1-0/+16
When used as a backend, it is the responsibility of the upper-layer build system to set the target architecture and kernel.
2010-03-29config: hide options to debug crosstool-NG when a backendYann E. MORIN"1-0/+1
When used as a backend, it does not make sense to debug crosstool-NG, so hide the option.
2010-03-29config: hide more config options when a backendYann E. MORIN"1-10/+14
Hide the prompts for some behavioral options, for which the upper-layer build system is responsible for: - parallel jobs and maximum load - use pipes - use custom shell
2010-03-29config: hide paths when used as a backendYann E. MORIN"1-6/+7
When crosstool-NG is used as a backend, it is the responsibility of the upper-layer build-system to properly set paths, so we just hide the prompts in this case.
2010-03-05config: prepare for build-system backendYann E. MORIN"1-0/+9
When acting as a backend for a build-system, we should not build any application that runs on the target, that is: - no native gdb - no companion libraries - no binutils libraries - no debug tools (save for gdbserver) - ... Here, we simply prepare the (hidden) config option that will detect that we are acting as a back-end. Update doc accordingly.
2010-02-03config: re-order the log entries inthe menuconfigYann E. MORIN"1-8/+8
2010-01-31config: rename mirror prompt, update help entryYann E. MORIN"1-4/+1
The mirror is not necessarily on the /LAN/.