aboutsummaryrefslogtreecommitdiff
path: root/scripts/crosstool-NG.sh
Commit message (Collapse)AuthorAgeFilesLines
* Specify header path in CT_CC_SYSROOT_ARG only for glibcStephanos Ioannidis2024-10-061-3/+5
| | | | | | | | | | | | | | | | | | | When building a non-sysrooted toolchain, `--with-headers` argument is specified in `CT_CC_SYSROOT_ARG` as a hack, supposedly because "final gcc will define disable_glibc while building libgcc, and you'll have no profiling." This, however, leads to `--with-headers` being specified multiple times when building libstdc++ for additional libc variants (e.g. newlib-nano and picolibc) and results in wrong libc headers being used by the libstdc++ build under certain circumstances -- GCC does not use the last specified `--with-headers` when building for macOS and Windows hosts. Since the above hack is intended for glibc only, this commit adds a check to ensure that `--with-headers` is added to `CT_CC_SYSROOT_ARG` only when building glibc. Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
* Add mold linker buildArnaud Vrac2024-06-051-0/+2
| | | | | | | | | | | | | | | Allows building the #mold linker, which can then be used in the cross-toolchain by passing the -fuse-ld=mold to the gcc flags. It is much faster than ld or gold. This requires a C++20 compiler and cmake. Initially implemented by Arnaud, and HC added configure check for cmake. Outstanding task to validate compiler is C++20 compatible. Signed-off-by: Arnaud Vrac <avrac@freebox.fr> Signed-off-by: Hans-Christian Noren Egtvedt <egtvedt@samfundet.no>
* Ignore a bad id command to allow dockerQuentin Boswank2024-02-181-1/+1
| | | | Signed-off-by: Quentin Boswank <qubos@outlook.de>
* Add gnatls & gnatlinkc-grant2023-11-021-1/+2
| | | | | | | | add gnatls and gnatlink to list of tools since it is needed to support Ada just like gnatmake and gnatbind Update crosstool-NG.sh & TODO Signed-off-by: c-grant <60671494+c-grant@users.noreply.github.com>
* fix toolchain build with linker pluginsNorbert Lange2023-09-241-1/+11
| | | | | | | | | older binutils dont automatically pick up plugins, but need to manually use wrappers like gcc-ar. This fix allows to compile the host toolchain with -ftlo on debian stretch. Signed-off-by: Norbert Lange <nolange79@gmail.com>
* Add the gdc compiler to the list of tools checked/linkedMarc Poulhiès2022-10-161-1/+1
| | | | | | Add gdc to the tool list but leave it optionnal. Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
* Switch CT_CC_{CORE_}SYSROOT_ARG to arraysJustin Chen2022-07-011-4/+4
| | | | | | | CT_CC_{CORE_}SYSROOT_ARG is being used both as an array and string. Switch everything to be used as an array for consistency. Signed-off-by: Justin Chen <justinpopo6@gmail.com>
* Add EXTRA_CXXFLAGS_FOR_BUILD optionRaphael Catolino2021-07-061-0/+2
| | | | Signed-off-by: Raphael Catolino <raphael.catolino@gmail.com>
* crosstool-NG: Fix libtool for mangled tuples as all other cross-toolsAnton Maklakov2020-08-031-1/+1
|
* move BUILD_DIR variable into KconfigNorbert Lange2019-10-191-1/+0
| | | | | | | this allows users to reference this variable, for ex. in TARGET_CFLAGS to remap paths. Signed-off-by: Norbert Lange <nolange79@gmail.com>
* Rename JOBSFLAGS -> CT_JOBSFLAGSAlexey Neyman2019-04-041-4/+4
| | | | | | ... so that it is saved/restored when restarting the build. Signed-off-by: Alexey Neyman <stilor@att.net>
* Add an ability to mark a configuration as invalidAlexey Neyman2019-04-041-0/+2
| | | | | | ... so that the build will fail early and predictably. Signed-off-by: Alexey Neyman <stilor@att.net>
* Meet our new companion tool, bisonAlexey Neyman2019-03-041-1/+2
| | | | | | | Which is here courtesy of CentOS6, which only has bison 2.4 - while new glibc requires 2.7. Signed-off-by: Alexey Neyman <stilor@att.net>
* Check/increase `ulimit -n` settingAlexey Neyman2019-02-151-0/+8
| | | | | | | ... 2.32 ld runs out of file descriptors while linking uClibc-ng on SuperH. Signed-off-by: Alexey Neyman <stilor@att.net>
* clang check before add to CT_CFLAGS_FOR_BUILD/HOSTRoy Storey2019-02-131-0/+6
|
* Moved uClibc configuration installation to uClibc.shDima Krasner2019-01-231-9/+1
| | | | Signed-off-by: Dima Krasner <dima@dimakrasner.com>
* Store the uClibc .config alongside the ct-ng .configDima Krasner2019-01-221-0/+5
| | | | Signed-off-by: Dima Krasner <dima@dimakrasner.com>
* Consider it success if DoForceRmdir removes only the contentAlexey Neyman2018-12-011-5/+0
| | | | | | Fixes #929. Signed-off-by: Alexey Neyman <stilor@att.net>
* Add moxiebox as a choice for libcAlexey Neyman2018-12-011-1/+0
| | | | | | | | | | | | | | | | | This required some rework of the libc selection, as moxiebox is a layer on top of another libc - newlib. Also, moxiebox'es host VM (`sandbox`) needs a libcrypto on the host. We will not have it if we're cross-compiling a canadian cross. Fortunately, all moxiebox needs from libcrypto is SHA256, and it already includes a standalone implementation of SHA256 in its runtime. Provide a little wrapper that allows moxiebox use that implementation for the host binary, too. Also, automate collecting/printing the list of all packages in a given category (e.g. LIBC or COMP_TOOLS), generate a list of all Kconfig symbols for a given category. Signed-off-by: Alexey Neyman <stilor@att.net>
* Fix state dir locationAlexey Neyman2018-10-191-1/+1
| | | | | | Fixes #1054 Signed-off-by: Alexey Neyman <stilor@att.net>
* Make CT_PREFIX_DIR/CT_WORK_DIR/CT_BUILD_TOP_DIR absoluteAlexey Neyman2018-09-271-3/+12
| | | | | | | | ... if they aren't already. Fixes #1010. Signed-off-by: Alexey Neyman <stilor@att.net>
* Fix restarting after a complete buildAlexey Neyman2018-09-261-4/+4
| | | | | | | | | It is much, much better to *first* make the directory writable and *then* do a test for case-sensitivity (which requires writing in that directory). Fixes #1033. Signed-off-by: Alexey Neyman <stilor@att.net>
* Avoid adding arch/cpu/tune flags for target to GCC buildAlexey Neyman2018-06-051-2/+2
| | | | | | ... as it may need to override them for building runtime-selectable code. Signed-off-by: Alexey Neyman <stilor@att.net>
* Restore the ability to build multiple configurationsAlexey Neyman2018-04-291-0/+1
| | | | | | ... in the shared .build directory. Signed-off-by: Alexey Neyman <stilor@att.net>
* Add checking for *sum and unzipAlexey Neyman2018-04-291-4/+6
| | | | | | | Also improve logging (add an ability to log commands/files/environment variables to config.log) Signed-off-by: Alexey Neyman <stilor@att.net>
* Support out-of-tree local buildsAlexey Neyman2018-04-071-1/+1
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Remove the need for configure substitutions in scriptsAlexey Neyman2018-04-071-0/+722
| | | | | | ... so that scripts/ directory can be installed verbatim. Signed-off-by: Alexey Neyman <stilor@att.net>
* Finally used the discovered paths from ./configure in scripts/crosstool-NG.sh:Yann E. MORIN"2009-01-261-472/+0
| | | | | | | | | | - fix Makefile to really, really not used built-in rules and variables - have scripts/crosstool-NG.sh generated from scripts/crosstool-NG.sh.in - create a bin-overide directory ( in ${CT_WORK_DIR}/bin ) that contains shell wrappers to the actual discovered tools /trunk/scripts/crosstool-NG.sh.in | 27 23 4 0 +++++++++++++++++++++--- /trunk/Makefile.in | 50 48 2 0 +++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 71 insertions(+), 6 deletions(-)
* On 20090115.0012+0100, "Andy Johnson" <ajohnson@aecno.com> wrote:Yann E. MORIN"2009-01-201-38/+0
| | | | | | | | | | | | | | ... I added a step after "debug" called "finish", and moved the code in crosstool.sh after the loop that processes the steps from crosstool.sh into a do_finish function in functions. Thus, it is now possible to restart after the "debug" step to re-do the final few things (clean and compress). /trunk/scripts/crosstool-NG.sh | 38 0 38 0 -------------------------------------- /trunk/scripts/functions | 42 42 0 0 ++++++++++++++++++++++++++++++++++++++++++ /trunk/steps.mk | 3 2 1 0 ++- 3 files changed, 44 insertions(+), 39 deletions(-)
* Rename scripts/crosstool.sh to scripts/crosstool-NG.sh.Yann E. MORIN"2009-01-181-0/+510
After all, this is not crosstool, but really crosstool-NG! /trunk/steps.mk | 2 1 1 0 +- /trunk/ct-ng.in | 2 1 1 0 +- 2 files changed, 2 insertions(+), 2 deletions(-)