aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Work-around another quirk in GDB configure.Alexey Neyman2016-04-011-4/+11
| | | | | | | | Previous fix for cross-gdb broke powerpc-unknown_nofpu-linux-gnu which uses an old GDB (6.8a). That GDB's configure chokes on $CC values with multiple consecutive spaces; see the comment in 300-gdb.sh. Signed-off-by: Alexey Neyman <stilor@att.net>
* Mark x86_64-w64-mingw32,x86_64-pc-linux-gnu broken.Alexey Neyman2016-04-012-2/+0
| | | | | | | | | | | | | | | | | I couldn't get this sample to build. I tried rolling ct-ng back to 1.22 and back to the commit that introduced it, to no avail. Not sure if it ever built on my machine. The first problem is the failure to build binutils/gold because of the missing <pthread.h> in mingw. However, even if CT_BINUTILS_GOLD_THREADS option is unset, the build dies in configure of the pass-1 of the core CC. The config.log states that it failed to link with libmpfr.a, which has a lot of undefined references to symbols like '__imp___iob_func'. Googling shows that these symbols are some dark Cygwin/MinGW magic and I do not have the knowledge of these arcana. Let some other MinGWizard fix it another day. Signed-off-by: Alexey Neyman <stilor@att.net>
* Unbreak sparc-unknown-linux-gnu.Alexey Neyman2016-04-012-3/+23
| | | | | | | GLIBC 2.23 dropped support for pre-v9 SPARC in pthreads. Pass host triplet with s/sparc/sparcv9/ replacement for 2.23. Signed-off-by: Alexey Neyman <stilor@att.net>
* Remove --with-expat from extra GDB args.Alexey Neyman2016-04-014-4/+0
| | | | | | | 300-gdb.sh always adds --with-expat, no need to list it in crosstool.config. Signed-off-by: Alexey Neyman <stilor@att.net>
* Unbreak static cross-gdb.Alexey Neyman2016-04-012-5/+16
| | | | | | | | | | | GDB's configure mishandles the libexpat.{so,a} libraries when it is given -static in CFLAGS AND --with-libexpat-prefix in configure's args: it checks for <prefix>/lib/libexpat.so and finding that, attempts to link it as `gcc -static .. conftest.c <prefix>/lib/libexpat.so`; this obviously fails (.so cannot be statically linked), so configure assumes libexpat is unusable. Thus, --with-libexpat-prefix is dangerous and should be avoided; instead, configure should find the libraries via the supplied CC/LD definitions.
* Unbreak *-uclibc with native GDB.Alexey Neyman2016-04-011-0/+12
| | | | | | | | | | | | | | | Currently, native GDB 7.11 fails to build with uClibc-ng due to undefined reference to _obstack_free. On IRC [http://crosstool-ng.osuosl.org/download/ibot-logs/2016-02-28.html], it has been suggested to disable obstack in uClibc configuration. I think it is a workaround rather than a fix: if another library/app needs obstack, this leaves no viable configuration. IMO, if uClibc seeks to mimic the glibc API, it should also provide _obstack_free call (an alias for which it already has, even though commented out). Signed-off-by: Alexey Neyman <stilor@att.net>
* Unbreak powerpc-unknown-linux-uclibc.Alexey Neyman2016-04-012-0/+13
| | | | | | | | | | | | There is invalid assembly in dmalloc for PowerPC. The issue is that 'stw' expects a memory operand, and =g constraint allows both registers and memory. Newer GCC tends to choose register even at -O0, resulting in invalid assembly. Instead, force a register constraint in 'mflr' and let GCC decide if it wants to store it into memory at all. Reported this upstream. Signed-off-by: Alexey Neyman <stilor@att.net>
* Merge pull request #320 from bhundven/newlib_updatesBryan Hundven2016-03-263-3/+49
|\ | | | | Newlib updates
| * newlib: add option to enable nano formatted ioBryan Hundven2016-03-082-0/+13
| | | | | | | | Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
| * newlib: add option to enable nano mallocBryan Hundven2016-03-082-0/+14
| | | | | | | | Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
| * newlib: disable multilib if it is not enabledBryan Hundven2016-03-081-0/+5
| | | | | | | | Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
| * newlib: Update newlib versionsBryan Hundven2016-03-081-3/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | Newlib release seem to be snapshots now. Newlib 2.3.0 was released in git here: https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=commit;h=ad7b3cde9c157f2c34a6a1296e0bda1ad0975bda and the snapshot for 2.3.0 was here: https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=commit;h=06cd7127e3cf16ab3c0aa665956deb263e524753 The 2.2 series was also updated. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* | Merge pull request #376 from jcmvbkbc/gcc-flags-for-targetBryan Hundven2016-03-155-0/+109
|\ \ | |/ |/| Pass CFLAGS_FOR_TARGET/CXXFLAGS_FOR_TARGET for libstdc++ in baremetal build
| * scripts/build/cc: pass FLAGS_FOR_TARGET in do_gcc_core_backendMax Filippov2016-03-151-0/+3
| | | | | | | | | | | | | | | | Pass CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET and LDFLAGS_FOR_TARGET to gcc configure in do_gcc_core_backend as they may be used to build libstdc++ for bare-metal target. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
| * gcc: backport fixes that preserve FLAGS_FOR_TARGETMax Filippov2016-03-154-0/+106
|/ | | | | | | | | | CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET are rewritten in gcc-4.8.x and gcc-4.9.x, so libstdc++ does not get any flags passed to gcc configure. Backport fixes for config/mt-gnu and config/mt-ospace that preserve these flags. With these fixes libstdc++ gets built with flags specified in CT_TARGET_CFLAGS. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
* Merge pull request #364 from bhundven/aarch64_generic_sampleBryan Hundven2016-03-033-0/+18
|\ | | | | Aarch64 generic sample
| * travis-ci: Add aarch64-unknown-linux-gnueabiBryan Hundven2016-03-031-0/+1
| | | | | | | | Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
| * samples: Add generic aarch64 sampleBryan Hundven2016-03-032-0/+17
| | | | | | | | Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* | Merge pull request #365 from bhundven/no_aout_static_checkBryan Hundven2016-03-031-1/+1
|\ \ | | | | | | configure: Don't write a.out on static compiler check
| * | configure: Don't write a.out on static compiler checkBryan Hundven2016-03-031-1/+1
| |/ | | | | | | | | | | | | | | | | Because I don't pass `-o` to gcc, it makes an a.out file with gcc. For clang it doesn't make the a.out, as that is not the default. It doesn't hurt to output to /dev/null for both. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* | Merge pull request #363 from bhundven/update_configBryan Hundven2016-03-032-51/+58
|\ \ | | | | | | config.{sub,guess}: Ran ct-ng updatetools
| * | config.{sub,guess}: Ran ct-ng updatetoolsBryan Hundven2016-03-032-51/+58
|/ / | | | | | | Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* | Merge pull request #362 from bhundven/rpi_aarch64_sampleBryan Hundven2016-03-032-0/+17
|\ \ | |/ |/| samples: add aarch64-rpi3-linux-gnueabi
| * samples: add aarch64-rpi3-linux-gnueabiBryan Hundven2016-03-032-0/+17
|/ | | | | | | | This is a aarch64 raspberry pi 3 sample. Please test! Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* Merge pull request #360 from kongen/RPi3Bryan Hundven2016-03-022-0/+18
|\ | | | | Adds Raspberry Pi 3 sample config
| * Adds Raspberry Pi 3 sample configStefan Hallas Mulvad2016-03-022-0/+18
|/ | | | Signed-off-by: Stefan Hallas Mulvad <shm@hallas.nu>
* Merge pull request #359 from bhundven/fix_musl_libc_buildBryan Hundven2016-02-291-50/+67
|\ | | | | musl-libc: Rewrite musl.sh build script
| * musl-libc: Rewrite musl.sh build scriptBryan Hundven2016-02-291-50/+67
|/ | | | | | | | | | This commit moves the do_libc_configure function to do_libc_backend and switches do_libc_start_files and do_libc_final to call do_libc_backend. The major reason for the rewrite is that musl => 1.1.13 has had it's own build system rewritten and can now build out-of-tree. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* Merge pull request #358 from bhundven/musl_updateBryan Hundven2016-02-291-7/+2
|\ | | | | musl-libc: Update to 1.1.14
| * musl-libc: Update to 1.1.14Bryan Hundven2016-02-291-7/+2
|/ | | | | | We also remove the old 1.0 series. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* Merge pull request #356 from bhundven/check_static_linkBryan Hundven2016-02-286-0/+18
|\ | | | | configure: Check to see if gcc can static link
| * config: Add static link check to static optionsBryan Hundven2016-02-265-0/+5
| | | | | | | | | | | | If we can't static link with gcc, then don't allow static linking. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
| * configure: Check to see if gcc can static linkBryan Hundven2016-02-261-0/+13
| | | | | | | | | | | | | | | | This is a semi-nasty-hack to see if gcc can static link. Obviously on Mac OS X this is not possible, so we set CT_CONFIGURE_has_static_link=y if it can. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* | Merge pull request #357 from dajamminyogesh/masterBryan Hundven2016-02-281-8/+8
|\ \ | |/ |/| kernel: Updated kernel revisions
| * kernel: Updated kernel revisionsYogesh Sharma2016-02-261-8/+8
|/ | | | | | Kernel revisions updated to match kernel.org. Signed-off-by: Yogesh Sharma <YogeshASharma@gmail.com>
* Merge pull request #353 from bhundven/glibc_cleanupBryan Hundven2016-02-262-197/+35
|\ | | | | Glibc cleanup
| * glibc: Mirror extra_config flags from do_libc_backend_onceBryan Hundven2016-02-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In do_libc_backend_once: ``` # Also, if those two are missing, iconv build breaks extra_config+=( --disable-debug --disable-sanity-checks ) ``` But in do_libc_locales we only add ```--disable-debug```. This change adds ```--disable-sanity-checks``` to do_libc_locales to mirror this, as I've seen iconv break this way. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
| * glibc: remove do_libc_locales_extract; it's emptyBryan Hundven2016-02-231-10/+0
| | | | | | | | | | | | | | No point in calling an empty function. Must be left over from the glibc/eglibc split up... then re-merge. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
| * glibc: Remove support for downloading and extracting add-onsBryan Hundven2016-02-231-67/+0
| | | | | | | | | | | | | | Since external add-ons were removed in 2.17, and we only support >= 2.18, this support is no longer needed. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
| * glibc: reformat glibc build scriptBryan Hundven2016-02-231-66/+64
| | | | | | | | | | | | | | Move crosstool-ng hook functions to be in the normal locations. This commit has no functional changes. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
| * glibc: Clean out old glibc versionsBryan Hundven2016-02-231-86/+2
| | | | | | | | | | | | | | | | | | | | We now only support glibc >=2.18 This now enables us to clean up glibc support! Also, add a comment about glibc 2.20 as the point which glibc no longer supports not building with pthread. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* | Merge pull request #354 from westermo/upgrade-gdbBryan Hundven2016-02-255-0/+120
|\ \ | |/ |/| gdb: Add support for v7.11, port patches from v7.10.1 that apply
| * gdb: Help gnulib determine uClibc gettimeofday() is OKJoachim Nilsson2016-02-251-0/+20
| | | | | | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
| * gdb: Add support for v7.11, port patches from v7.10.1 that applyJoachim Nilsson2016-02-244-0/+100
|/ | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* Merge pull request #350 from dajamminyogesh/masterBryan Hundven2016-02-231-20/+20
|\ | | | | kernel: Update kernel versions
| * kernel: Updated kernel revisionsYogesh Sharma2016-02-231-20/+20
|/ | | | | | | | Kernel revisions updated to match kernel.org. Update includes removal of 4.2.x kernel (since it was EOL), addition of 4.4.x kernel, and marking of 4.3.x as EOL. Signed-off-by: Yogesh Sharma <YogeshASharma@gmail.com>
* Merge pull request #348 from bhundven/update_glibcBryan Hundven2016-02-232-0/+19
|\ | | | | Update glibc
| * glibc: port glibc patch from 2.22 to 2.23Bryan Hundven2016-02-231-0/+13
| | | | | | | | | | | | | | | | Only one patch ported forward from 2.22: * 100-Cygwin-doesnt-have-stat64.patch Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
| * glibc: Add glibc-2.23Bryan Hundven2016-02-231-0/+6
|/ | | | Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* Merge pull request #345 from bhundven/use_ln_for_softlinkBryan Hundven2016-02-191-1/+1
|\ | | | | functions: use 'ln -sf' for softlinks