aboutsummaryrefslogtreecommitdiff
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #309 from bhundven/remove_old_binutils_versionsBryan Hundven2016-01-051-11/+11
|\ | | | | Remove old binutils versions
| * binutils: Remove older versions of binutilsBryan Hundven2016-01-031-11/+11
| | | | | | | | | | | | | | | | | | Since older GCC versions have been removed, older versions of binutils are not needed. This commit removes these older versions. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* | libelf: Cygwin fix for UNC pathsRay Donnelly2016-01-031-0/+7
| | | | | | | | | | | | | | | | | | | | If destdir was / and prefix began with / then we would attempt to install libelf to a path beginning with // which is a UNC path on Cygwin. This is generally incorrect. Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
* | libiconv: configure with --disable-nlsRay Donnelly2016-01-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Windows a build failure can be triggered during the build of the static iconv if a dynamic iconv is already present: There's a circular dependency between libiconv and gettext which (on a system with a dynamic gettext (and thus iconv) installed in the system prefix) causes a failure to build iconv.exe statically if it is built with nls .. .. Which needs gettext .. which depends on libiconv .. so libtool finds a dynamically linked libgettext.la .. and therefore presents ld with the dll import library libiconv.dll.a when linking iconv.exe .. as well as the static libiconv.a that it has just built! .. leading to multiply defined symbols from iconv. Therefore, we build it without nls. If it later turns out that we need it to be built with nls, then I will have to build it in two passes (common practice when bootstrapping GNU/Linux distros, MSYS2 and probably Cygwin and Homebrew). Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
* | expat: Tidy up and correct configure flagsRay Donnelly2016-01-031-9/+24
| | | | | | | | | | | | | | | | | | | | | | Build shared builds for host unless CT_STATIC_TOOLCHAIN. In all other situations, build statically, as before. It is necessary that the static/shared-ness of expat matches that of gettext on Cygwin/MinGW-w64 as they can't be linked together if they don't match, so we follow the same logic. Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
* | gcc: Add new linaro download pathBryan Hundven2016-01-021-3/+4
|/ | | | | | It seems that linaro is changing where they release, again. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* binutils: Fix installing libiberty for targetBryan Hundven2016-01-021-0/+4
| | | | | | | | | | If CT_BINUTILS_FOR_TARGET_IBERTY is set, then it seems that we also must set `--enable-install-libiberty` for configure to pickup that it needs to be installed. This closes #302 Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* Whitespace: We don't use tabs in shell or kconfig filesBryan Hundven2015-12-087-102/+102
| | | | | | | We indent by multiples of 4. This change cleans up whitespace in offending files. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* scripts: Update usage of CT_GetCustomBryan Hundven2015-12-089-89/+29
| | | | | | | This commit updates the build scripts to match the new usage of CT_GetCustom from the previous change. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* CT_GetCustom: Rewrite function to meet expectationsBryan Hundven2015-12-081-26/+47
| | | | | | | | | | | | | | | | | | | | | | The previous version of CT_GetCustom was a bit... funky. It didn't handle custom versions to location very well. This new version is exactly as it appears: CT_GetCustom <name> <version> <location> The name is the beginning of the archive (file or directory). The version is the second half of the archive. The location is where it can be found. This should be made an absolute path, but this version is expecting the path in kconfig to be absolute. A file should extract to a directory: <name>-<version> A directory will be copied to: <name>-<version> This keeps our expectations of what we should get. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
* Linux: Remove obsolete Linux custom headersBryan Hundven2015-12-082-53/+3
| | | | | | | | | | | This option allowed you to use a custom headers directory/tarball to use in your sysroot. Not to be confused with using a custom source, that option is the preferred method. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
* xtensa: Remove support for CT_CUSTOM_LOCATION_ROOT_DIRBryan Hundven2015-12-081-7/+1
| | | | | | | | | Since CUSTOM_LOCATION_ROOT_DIR was removed from config/global/paths.in in commit c499ccb, xtensa should depend only on it's ARCH_XTENSA_CUSTOM_OVERLAY_LOCATION. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
* CT_Extract: Move check extracted upBryan Hundven2015-12-081-6/+6
| | | | | | | | | | | | | If we are using a custom location, and that custom location is a directory that does not have an associated tarball, then we shouldn't warn about not finding a tarball in CT_TARBALLS_DIR if CT_SRC_DIR/.<basename>.extracted is found. If the extracted file is not found, then we can warn that the tarball was not found then error out that the tarball is missing. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
* Merge pull request #282 from bhundven/less_gcc_versions_part2Bryan Hundven2015-12-075-245/+38
|\ | | | | Less gcc versions part2
| * gcc: Gnu OpenMP support depends on threadingBryan Hundven2015-11-291-1/+0
| | | | | | | | | | | | | | | | Instead of checking if thread support is enabled during the build, move the check to kconfig-time. Since if threading support is not availble, libgomp should not be available either. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
| * gcc: CLooG should be optional for configureBryan Hundven2015-11-291-2/+6
| | | | | | | | | | | | | | | | | | Because >= gcc-5.x does not require cloog, it should not be forced on the command line arguments for configure if graphite is enabled. Make CLooG optionally added, if it is needed (aka: <= gcc-4.9). Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
| * PPL: Remove support for PPL and CLooG/PPLBryan Hundven2015-11-295-222/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that versions of gcc that required PPL are no longer supported ( >= gcc-4.5.x AND <= gcc-4.7.x ) ...we no longer require PPL or CLooG/PPL. This commit: * Removes PPL * Removes CLooG/PPL * Updates the documentation * Updates build script for CLooG and GCC * Removes PPL and CLooG/PPL from scripts/addToolVersion.sh and scripts/showSamples.sh * Adds ISL to scripts/addToolVersion.sh and scripts/showSamples.sh I know that sounds like a lot for one commit, but it was all kind of inter-tangled. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
| * gcc: Remove gcc <= 4.7.xBryan Hundven2015-11-291-21/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 <bryanhundven@gmail.com>
* | binutils: Fix LDFLAGS for static toolchainBryan Hundven2015-12-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | If building a static toolchain, the ldflags option passed to do_binutils_backend is overridden when we set `LDFLAGS=-all-static`. We should pass `LDFLAGS=${ldflags} -all-static` in this case. This fixes #297 Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* | binutils: Fix binutils manuals_install variableBryan Hundven2015-12-051-2/+2
|/ | | | | | | | | In commit: 74d555b2 A regex in a parameter subsitution replaces a '#' hash symbol, but it is not made literal '\#', so from the hash to the end of the line is a comment. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* binutils/gdb: Fix configure options when building from binutils-gdb repoBryan Hundven2015-11-242-0/+19
| | | | | | | | | | | | When building from: {git,http}://sourceware.org/git/binutils-gdb.git and setting BINUTILS_CUSTOM or GDB_CUSTOM, they could be the same source. These config options should not affect normal released versions. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* uClibc: Add kconfig option to enable IPv6 supportBryan Hundven2015-11-221-0/+7
| | | | | | This commit adds a kconfig option to enable IPv6 support. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* Clang: Use {C,CXX}FLAG -fbracket-depth=512 for GCC buildRay Donnelly2015-11-221-0/+13
| | | | | | | https://llvm.org/bugs/show_bug.cgi?id=19650 https://gcc.gnu.org/ml/gcc/2014-05/msg00014.html Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
* uClibc: remove references to sh64*Bryan Hundven2015-11-211-1/+0
| | | | | | | | | | | As per the change notes of GCC-6: https://gcc.gnu.org/gcc-6/changes.html and conversations I've had with the buildroot folks, there is no need to support sh5/sh64. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* showSamples: Fix uClibc-ng name and Mingw-w64 versionsBryan Hundven2015-11-171-4/+14
| | | | | | | | | | | | Some LIBCs need some love in showSamples.sh. uClibc-ng is of type of uClibc, so output uClibc-ng if CT_LIBC_UCLIBC_NG=y. mingw-w64 doesn't have a CT_LIBC_VERSION, but it does have a CT_WINAPI_VERSION. So output that instead. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* showSamples.sh: Fix how we get gcc and version for showSamples.shBryan Hundven2015-11-171-12/+8
| | | | | | | | | I'm not even sure how the previous loop was supposed to work. The config variables are not exported to the environment. Now we properly get which cc we are using and grab the version to display it correctly with the output of wiki-samples. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* Merge pull request #268 from bhundven/consistent_usage_of_found_appsBryan Hundven2015-11-1737-183/+184
|\ | | | | consistency: Use exported variables of required tools
| * consistency: Use exported variables of required toolsBryan Hundven2015-11-1737-183/+184
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We check for apps: * make * sed * grep * awk * libtool/libtoolize * install * patch * and more ...during configure. Our scripts should be consistent about using the variables that define where the found tool was found. Of course, we do hard-link these tools in buildtools, but that should be a backup for the components we are building. Our scripts should always use the tools we find. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* | ncurses: bump to ncurses-6.0Bryan Hundven2015-11-161-0/+4
|/ | | | | | | | | This commit removes ncurses-5.9 and adds 6.0. I also provide the stable patch updates in patches/ncurses/6.0. I have also added an experimental toggle for enabling the new ABI support. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* file modes: Fix file modes... again.Bryan Hundven2015-11-143-0/+0
| | | | | | These files are sourced, not executed, and do not need to be executable. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* Merge pull request #249 from stilor/expat_ncursesBryan Hundven2015-11-1414-228/+304
|\ | | | | Promote expat/ncurses to 'companion libs'
| * Update new companion libs with *_for_target.Alexey Neyman2015-11-132-0/+2
| | | | | | | | Signed-off-by: Alexey Neyman <stilor@att.net>
| * Pass CFLAGS/LDFLAGS to backends.Alexey Neyman2015-11-132-1/+11
| | | | | | | | Signed-off-by: Alexey Neyman <stilor@att.net>
| * Clean up 300-gdb.sh a bit.Alexey Neyman2015-11-131-52/+31
| | | | | | | | | | | | | | Now that expat/curses have migrated into separate script, no need for do_debug_gdb_parts() and need_gdb_src checks. Signed-off-by: Alexey Neyman <stilor@att.net>
| * Enable building expat/ncurses for host.Alexey Neyman2015-11-133-2/+54
| | | | | | | | | | Then re-enable cross-gdb for nios2-spico-elf sample, previously disabled.
| * Change ncurses to a companion library.Alexey Neyman2015-11-134-120/+122
| | | | | | | | | | | | | | | | | | | | | | Currently, builds for build and target (matching the current implementation). Need to add building for host for canadian crosses. TIC_PATH is removed - configure in ncurses searches $PATH, so it finds 'tic' in buildtools anyway. Arguably unneeded code for MacOS also removed, with a FIXME comment for validation by someone using MacOS. Signed-off-by: Alexey Neyman <stilor@att.net>
| * Convert expat for target into a companion lib.Alexey Neyman2015-11-134-54/+72
| | | | | | | | | | | | Expat-for-host to be done. Signed-off-by: Alexey Neyman <stilor@att.net>
| * Build companion libs for target.Alexey Neyman2015-11-137-3/+16
| | | | | | | | | | | | | | Currently, only libelf has a for-target step - but it generalizes the step to hook other libraries into this step. Signed-off-by: Alexey Neyman <stilor@att.net>
* | Do not log state saving/restoring as ERROR.Alexey Neyman2015-11-141-4/+2
|/ | | | | | These are not errors. Signed-off-by: Alexey Neyman <stilor@att.net>
* Merge pull request #253 from jcmvbkbc/xtensa-for-mainline-20151113Bryan Hundven2015-11-135-0/+99
|\ | | | | Add support for Xtensa architecture
| * xtensa: add support for the configurable Xtensa architecture.Chris Zankel2015-11-135-0/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Xtensa processor architecture is a configurable, extensible, and synthesizable 32-bit RISC processor core. Processor and SOC vendors can select from various processor options and even create customized instructions in addition to a base ISA to tailor the processor for a particular application. Because of the configurability, the build process requires one additional step for gcc, binutils, and gdb to update the default configuration. These configurations are packed into an 'overlay' tar image, and are simply untarred on top of the default configuration during the build. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
* | file modes: Set files to be non-executableBryan Hundven2015-11-121-0/+0
|/ | | | | | | | | | | | | | I was going to start doing some autoconf work, and noticed that configure.in was executable. Then I noticed Makefile.in was executable. o.O So, I ran ```find . -type f -executable``` and found a bunch of files that shouldn't be set executable. This commit makes them normal files again. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* Merge pull request #239 from diorcety-ctng/cc-cygwin-mingw-linuxBryan Hundven2015-11-124-1/+264
|\ | | | | Canadian cross build = x86_64 Cygwin host = x86_64 MinGW_W64 target = x86_64 GNU/Linux
| * libtool: Update to 2.4.6 and patch for CygwinRay Donnelly2015-11-131-1/+1
| | | | | | | | Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
| * Add gettext and libiconv as companion libsRay Donnelly2015-11-133-0/+263
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | .. they're needed for the RPC generation in glibc on both Cygwin and MinGW-w64. Neither are built on GNU/Linux and iconv is not built on Darwin. Two patches for gettext are needed, one so that -O0 works and one so that static builds can be made. They can take a good while to build, so if not needed for_host or for_build then they are not built. Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
* | Merge pull request #245 from villytiger/install-stripBryan Hundven2015-11-123-3/+7
|\ \ | | | | | | Use install-strip target for gcc optionally
| * | Use install-strip target for gcc optionallyIlya Lyubimov2015-11-113-3/+7
| | |
* | | Merge pull request #221 from bhundven/uclibc-ngBryan Hundven2015-11-123-245/+251
|\ \ \ | |_|/ |/| | Add support for uClibc-ng
| * | uClibc: Fall back to default configs if not providedBryan Hundven2015-11-121-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I've added the .config files to contrib/uClibc-defconfigs from buildroot to use as default configs if they are not provided in the sample. If a particular architecture really needs an option set, it should be either updated in the manange_uClibc_config function in scripts/build/libc/uClibc.sh or a custom ${uclibc_name}.config should be added to the sample (usually via `ct-ng saveconfig`). Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
| * | uClibc: Add support for uClibc-ngBryan Hundven2015-11-121-10/+17
| | | | | | | | | | | | | | | | | | This commit adds uClibc-ng 1.0.8. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>