aboutsummaryrefslogtreecommitdiff
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* mpfr: Swap primary mirror to gnu.orgBryan Hundven2015-11-111-2/+2
| | | | | | | | | mpfr.org has been less then reliable, so lets make gnu.org the primary instead of the secondary source. This closes #250 Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* Disable parallel build of mingw-w64-crt.Alexey Neyman2015-11-101-1/+4
| | | | | | | Unfortunately, parallel build issue is not yet fixed in current mingw-w64 sources. Signed-off-by: Alexey Neyman <stilor@att.net>
* Support mingw-w64 in addToolVersion.sh.Alexey Neyman2015-11-101-1/+3
| | | | | | ... and add 4.0.4 release. Signed-off-by: Alexey Neyman <stilor@att.net>
* blackfin: Remove blackfin supportBryan Hundven2015-11-093-18/+2
| | | | | | | | | | This commit removes blackfin support. I'm open to re-adding blackfin after crosstool-1.23.0 is released, but it is currently too difficult to port forward to newer versions of gcc and uclibc. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* Merge pull request #233 from stilor/fix-build-allBryan Hundven2015-11-043-7/+12
|\ | | | | Fix build-all
| * Interpret escape sequences in CT_DoLog.Alexey Neyman2015-10-301-1/+1
| | | | | | | | | | | | Otherwise, CT_Abort messages with \n are not displayed properly. Signed-off-by: Alexey Neyman <stilor@att.net>
| * Fix samples using GMP 4.3.2.Alexey Neyman2015-10-301-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Some older versions of configure (including the one in GMP 4.3.2) interpret the $ECHO environment variable as the `echo' utility to use. CT-NG sets the variable to `:' and exports it if V=0 or V=1 is supplied, breaking the samples using such configure. This currently includes bfin-unknown-linux-uclibc and powerpc-unknown-linux-uclibc. Also, correct the description of the V= variable - V=0 is *not* the default; in fact, default does not correspond to any of the V=[012] values. Signed-off-by: Alexey Neyman <stilor@att.net>
| * Only create backtrace stamp if dir exists.Alexey Neyman2015-10-301-1/+1
| | | | | | | | | | | | | | | | | | If the build is aborted before the working directory is created, there's also an induced error message about inability to create a 'backtrace' file. But in that case, there is no subshells executing yet. Signed-off-by: Alexey Neyman <stilor@att.net>
| * Make show-config consistent with sample name.Alexey Neyman2015-10-301-1/+6
| | | | | | | | | | | | | | | | 'ct-ng show-config' will prepend host for canadian builds; otherwise, the name is different from the name used to configure the build (and indistinguishable from a simple cross). Signed-off-by: Alexey Neyman <stilor@att.net>
* | Merge pull request #235 from stilor/ctng-sourceBryan Hundven2015-11-031-1/+9
|\ \ | | | | | | ctng source
| * | Sanity check for number of parallel jobs.Alexey Neyman2015-10-301-1/+6
| | | | | | | | | | | | Signed-off-by: Alexey Neyman <stilor@att.net>
| * | Implement 'ct-ng source'.Alexey Neyman2015-10-301-0/+3
| |/ | | | | | | | | | | | | Provides a simpler alternative to editing config to enable CT_ONLY_DOWNLOAD, doing ct-ng build and then restoring .config. Signed-off-by: Alexey Neyman <stilor@att.net>
* | uClibc: Don't use CROSS, use CROSS_COMPILE insteadBryan Hundven2015-11-021-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | As per: http://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/commit/Makefile.help?id=044843f002f666db3bc06c513ed6291a00ad1225 CROSS= is for compatibility, but we plan on dropping older uClibc versions, and adding uClibc-ng and uClibc-snapshot support. Use CROSS_COMPILE instead. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* | linux: Set CROSS_COMPILE while building/checking headersBryan Hundven2015-11-021-0/+2
| | | | | | | | | | | | | | | | | | | | | | Some architectures, like arc and blackfin set CROSS_COMPILE to a default if it is not set on the command-line. Since we are building the cross-compiler, we need to ALWAYS set CROSS_COMPILE, since building/checking headers is done after the GCC PASS1 step. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* | gcc: Support only the latest branch releases of gccBryan Hundven2015-10-312-32/+0
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change, as per #222, reduces the number of supported releases of gcc to the latest branch releases. I noticed while doing this work that gcc-4.5.4 was never added, so I moved patches for gcc-4.5.3 to 4.5.4 and updated the bfin-unknown-linux-uclibc example. Also, 120-siginfo.patch was fixed upstream in the 4.5.4 release, so this patch is omitted. I also bumped the avr sample to 4.9.3 from 4.9.2. With the addition of gcc-5.x, the gcc release team now releases the major.minor.0 versions, while updates to the branch are available in svn/git. We'll address that when we get to issue #219. This change just removes CC_GCC_5_1 and moves CC_GCC_5_2 to CC_GCC_5, and removes CC_GCC_5_1_or_later and moves CC_GCC_5_2_or_later to CC_GCC_5_or_later. This is the first of two part changes, as mentioned in #222. This change is slated for release in 1.22.0. The next change will be slated for 1.23.0, and will limit gcc versions to what is on https://gcc.gnu.org under "Release Series and Status", which is currently 4.9.3 and 5.2.0, although I will also support the previous supported version. In this example that would be 4.8.5. Last, but not least, this change also retires AVR32 support. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* scripts/config.{sub,guess}: Update from upstreamBryan Hundven2015-10-292-15/+44
| | | | | | | | | | Update config.sub and config.guess from: * git://git.sv.gnu.org/config.git See their gitweb: * http://git.savannah.gnu.org/gitweb/?p=config.git Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* Clean up *.la after installing compiler/libraries.Alexey Neyman2015-10-261-0/+19
| | | | | | | | | Having *.la in the installation directory breaks ltrace: in ltrace, libtool somehow considers libsupc++ to be an "accessory library" and does not add -lsupc++ to the link flags. Neither Ubuntu, nor RedHat include *.la files into their packages for libstdc++. Signed-off-by: Alexey Neyman <stilor@att.net>
* Using "all" and "install" targets in do_gcc_core_backend if configured.Jasmin Jessich2015-10-101-9/+47
| | | | | | | | | | | | | | | | | - New configurations: - CC_GCC_TARGET_FINAL: Use the default targets "all" and "install" for the final compiler for bare metal. - Adding parameter "build_step" to function do_gcc_core_backend: do_gcc_core_backend is used for the core compiler and in case of bare metal for the final compiler, too. To have better control over the parameters for the final compiler "build_step" is used. - Used for proper logging. - Use CT_CC_GCC_CORE_EXTRA_CONFIG_ARRAY or CT_CC_GCC_EXTRA_CONFIG_ARRAY. - If CT_CC_GCC_TARGET_FINAL is set and the final compiler is build then the make targets for the final compiler are used ("all", "install"). Signed-off-by: Jasmin Jessich <jasmin@anw.at>
* Merge pull request #187 from jasmin-j/sync_ltoBryan Hundven2015-10-071-0/+2
|\ | | | | Synchronize CC_GCC_USE_LTO parameter setting II
| * Synchronize CT_CC_GCC_USE_LTO parameter setting in do_gcc_backend with the oneJasmin Jessich2015-09-251-0/+2
| | | | | | | | | | | | from do_gcc_core_backend, by adding "--enable-lto"/"--disable-lto". Signed-off-by: Jasmin Jessich <jasmin@anw.
* | Merge pull request #184 from jasmin-j/add_gcc_env_arrayBryan Hundven2015-10-071-2/+7
|\ \ | | | | | | Add additional environment variables for gcc build.
| * | Added additional environment variables for gcc build (make) with new optionJasmin Jessich2015-09-221-2/+7
| | | | | | | | | | | | | | | | | | GCC_EXTRA_ENV_ARRAY. Signed-off-by: Jasmin Jessich <jasmin@anw.at>
* | | Merge pull request #182 from jasmin-j/add_missing_lib_optsBryan Hundven2015-10-071-0/+15
|\ \ \ | |_|/ |/| | Adding missing if/else blocks in do_gcc_core_backend.
| * | Adding missing if/else blocks in do_gcc_core_backend for CT_CC_GCC_LIBSSP,Jasmin Jessich2015-09-221-0/+15
| |/ | | | | | | | | | | | | | | CT_CC_GCC_HAS_LIBQUADMATH and CT_CC_GCC_LIBQUADMATH (--en/disable-libssp, --en/disable-libquadmath, --en/disable-libquadmath-support) from function do_gcc_backend. Signed-off-by: Jasmin Jessich <jasmin@anw.at>
* / Removed doubled setting of --disable-libmudflap in do_gcc_core_backend.Jasmin Jessich2015-09-221-1/+0
|/ | | | Signed-off-by: Jasmin Jessich <jasmin@anw.at>
* Added additional newlib specific target flags with new optionJasmin Jessich2015-09-141-1/+4
| | | | | | LIBC_NEWLIB_TARGET_CFLAGS. Signed-off-by: Jasmin Jessich <jasmin@anw.at>
* glibc: Fix applying addons to glibc => 2.17Bryan Hundven2015-09-011-25/+27
| | | | | | | | glibc-2.17 and above no longer have external addons or ports. So if we are => 2.17, don't even think about trying to mess with ports or addons. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* Merge pull request #144 from jasmin-j/fix_142Bryan Hundven2015-08-311-3/+3
|\ | | | | Fix for issue #142:
| * Fix for issue #142:Jasmin Jessich2015-09-011-3/+3
| | | | | | | | | | | | | | Configure for for core GCC did not use Core gcc extra config. Use now config variable CT_CC_GCC_CORE_EXTRA_CONFIG_ARRAY. Signed-off-by: Jasmin Jessich <jasmin@anw.at>
* | Added new config ISL_V_0_14_or_later and ISL_V_0_12_or_later to selectJasmin Jessich2015-09-011-4/+11
|/ | | | | | proper configure options for isl 0.14.x and 0.12.x in 121-isl.sh. Signed-off-by: Jasmin Jessich <jasmin@anw.at>
* functions: write permission in config.{guess,sub}Erico Nunes2015-06-211-1/+3
| | | | | | | | | | avr-libc doesn't have write permissions in these by default in the 1.8.1 tar release, this caused an error during build with CT_OVERIDE_CONFIG_GUESS_SUB enabled. chmod u+w them before overriding to avoid an this error. Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
* functions: add support for arch-specific patchErico Nunes2015-06-211-3/+4
| | | | | | | | | | | | | | | Add support for applying arch-specific patches found in "patches/${pkgname}/${version}/${CT_ARCH}". This is needed for applying a popular binutils patch specific for the AVR architecture but which isn't isolated for AVR in binutils' code. In this case, applying it for every architecture would end up bloating binutils' "size" options with AVR specifics. This feels like a bit of a hack but it is easy enough to support with current crosstool-ng infrastructure, seems like worth it for this case. Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
* avr-libc: add support for avr-libc C libraryErico Nunes2015-06-218-1/+104
| | | | | | | | | | | | | | | | | | | | | | | | This commit adds support for the avr-libc C library. According to the project page at http://www.nongnu.org/avr-libc , the avr-libc package provides a subset of the standard C library for Atmel AVR 8-bit RISC microcontrollers. In addition, the library provides the basic startup code needed by most applications. Support for this library in crosstool-ng is only enabled for the AVR 8-bit target. The avr-libc manual and most distributions build the AVR 8-bit gcc toolchain with the "avr" (non-canonical) target. Some experimentation also led to the conclusion that other (canonical) targets are not very well supported, so we force the "avr" target for crosstool-ng as well. The manual also recommends building avr-libc after the final gcc build. To accomplish this with crosstool-ng, a new do_libc_post_cc step is added, in which currently only avr-libc performs its build, and is a no-op for the other libc options. Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
* avr: add support for AVR 8-bit architectureErico Nunes2015-06-211-0/+5
| | | | | | | | | | | | | | | | | | | | | This commit adds support for the Atmel AVR 8-bit RISC architecture. This is the first 8-bit architecture to be added to crosstool-ng so the configuration options for 8-bit architectures are added here as well. gcc has had support for AVR for quite a while, at least since the 4.3 series for the currently popular ATmega microcontroler series. The AVR architecture only supports bare-metal toolchains. gcc for the AVR 8-bit architecture, usually referred to as avr-gcc, is commonly used in conjunction with the avr-libc library which provides additional resources for the Atmel AVR 8-bit microcontrollers. avr-gcc can also be found as a supported package in some recent Linux distributions. This commit also closes #66 Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
* gcc: Remove --enable-c99Bryan Hundven2015-06-031-1/+0
| | | | | | | | | This option is old. GCC 4.3.x old. It isn't supported anymore, and just confuses me. I'm not planning to support 4.3.x, or really anything older then 4.7. So this option is gone to the wind. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
* Merge pull request #107 from bhundven/remove_experimental_musl_patchesBryan Hundven2015-06-021-10/+4
|\ | | | | Remove support for experimental patches and musl patches
| * Remove support for experimental patches and musl patchesBryan Hundven2015-06-021-10/+4
| | | | | | | | | | | | | | | | | | | | | | | | 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 <bryanhundven@gmail.com>
* | Merge pull request #58 from dirkhusemann/masterBryan Hundven2015-06-021-1/+1
|\ \ | |/ |/| Update functions to grok symlinks
| * Update functions to grok symlinksDirk Husemann2015-06-021-1/+1
| | | | | | | | | | | | when specifying a custom kernel provided as a tar ball, the tar ball gets symlinked. the -e test will fail. Signed-off-by: Dirk Husemann <dirk@d2h.net>
* | Merge pull request #103 from bhundven/update_addtoolversionBryan Hundven2015-06-021-1/+1
|\ \ | | | | | | addToolVersion: multi_cc: update addToolVersion
| * | addToolVersion: multi_cc: update addToolVersionBryan Hundven2015-06-021-1/+1
| | | | | | | | | | | | | | | | | | | | | Since gcc moved from CC_ to CC_GCC_, addToolVersion neeeded to be updated. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* | | Merge pull request #102 from yann-morin-1998/yem/populateBryan Hundven2015-06-011-2/+2
|\ \ \ | |/ / |/| | populate: also search for gconv modules
| * | populate: also search for gconv modulesYann E. MORIN2015-05-311-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The gconv modules are present in the (e)glibc toolchains, and some applications directly link with one or more of those modules (even though the classic way of using them is by dlopen()ing them). So, also look in /usr/lib/gconv when searching for libraries. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
* | | test_suite: Update gcc test_suite for multiple compilersRay Donnelly2015-06-021-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | This commit updates gcc's test suite to use the new config options. Signed-off-by: Ray Donnelly <mingw.android@gmail.com> Reviewed-by: Bryan Hundven <bryanhundven@gmail.com> Reviewed-by: Yann Diorcet <diorcetyann@gmail.com>
* | | gdb: Update 300-gdb.sh for multiple compilersRay Donnelly2015-06-021-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | Update 300-gdb.sh to use the new config options. Signed-off-by: Ray Donnelly <mingw.android@gmail.com> Reviewed-by: Bryan Hundven <bryanhundven@gmail.com> Reviewed-by: Yann Diorcet <diorcetyann@gmail.com>
* | | cc: Update 100-gcc.sh for multiple compilersRay Donnelly2015-06-021-70/+70
| | | | | | | | | | | | | | | | | | | | | | | | Update 100-gcc.sh to use the new config option names. Signed-off-by: Ray Donnelly <mingw.android@gmail.com> Reviewed-by: Bryan Hundven <bryanhundven@gmail.com> Reviewed-by: Yann Diorcet <diorcetyann@gmail.com>
* | | scripts: Update crosstool-NG internals for multiple compilers.Ray Donnelly2015-06-022-30/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | This change updates the CC.* references to CC_GCC.* in the internal scripts. Signed-off-by: Ray Donnelly <mingw.android@gmail.com> Reviewed-by: Bryan Hundven <bryanhundven@gmail.com> Reviewed-by: Yann Diorcet <diorcetyann@gmail.com>
* | | showSamples: Update showSamples.sh for multiple compilersRay Donnelly2015-06-021-4/+18
| | | | | | | | | | | | | | | | | | | | | | | | This change adds support to show samples for multiple compilers. Signed-off-by: Ray Donnelly <mingw.android@gmail.com> Reviewed-by: Bryan Hundven <bryanhundven@gmail.com> Reviewed-by: Yann Diorcet <diorcetyann@gmail.com>
* | | config: Add config support for multiple compilersRay Donnelly2015-05-291-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change updates the config to support multiple compilers by moving CC_.* to CC_GCC_.* to make room for other compilers. We also update gen_in_frags.sh to check for a default cc. Signed-off-by: Ray Donnelly <mingw.android@gmail.com> Reviewed-by: Yann Diorcet <diorcetyann@gmail.com> Reviewed-by: Bryan Hundven <bryanhundven@gmail.com>
* | | multi_cc: Prepare ct-ng for multiple compilersRay Donnelly2015-05-293-1/+59
|/ / | | | | | | | | | | | | | | | | | | | | This commit moves gcc.sh to 100-gcc.sh to accomodate for other cross-compilers that crosstool-ng might be able to build. The first, to come soon, is llvm/clang. Signed-off-by: Ray Donnelly <mingw.android@gmail.com> Reviewed-by: Bryan Hundven <bryanhundven@gmail.com> Reviewed-by: Yann Diorcet <diorcetyann@gmail.com>