summaryrefslogtreecommitdiff
path: root/samples
AgeCommit message (Collapse)AuthorFilesLines
2016-04-19avr: update sample to use up-to-date gccErico Nunes2-3/+1
With avr-libc 2.0.0 released, we no longer need to force gcc 4.9.x for the avr toolchain. So, remove the gcc version constraint and allow it to follow the default gcc version. There is also no need to force companion libraries' versions anymore. The 'experimental' flag was also removed from the description as it seems to be following upstream development now. This sample has been build tested on Arch Linux and Ubuntu 14.04 hosts. Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
2016-03-03Merge pull request #364 from bhundven/aarch64_generic_sampleBryan Hundven2-0/+17
Aarch64 generic sample
2016-03-03samples: Add generic aarch64 sampleBryan Hundven2-0/+17
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-03-03samples: add aarch64-rpi3-linux-gnueabiBryan Hundven2-0/+17
This is a aarch64 raspberry pi 3 sample. Please test! Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2016-03-03Adds Raspberry Pi 3 sample configStefan Hallas Mulvad2-0/+18
Signed-off-by: Stefan Hallas Mulvad <shm@hallas.nu>
2015-11-19mingw-w64: Set it as experimentalBryan Hundven2-0/+2
With the upcoming release of 1.22.0, mingw-w64 is still in an experimental state, and is not considered to be fully supported yet. This change should be reverted after the release. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-11-17Document {check,update}-samples targets.Alexey Neyman1-0/+2
Signed-off-by: Alexey Neyman <stilor@att.net>
2015-11-15samples: Forgot to unmark mips64 samples as not experimentalBryan Hundven2-2/+0
As per 4be766254d2368901513aa25fefbaa383092f3cd, mips64 is not longer experimental, and as such, the samples should not need it enabled. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-11-15Merge pull request #249 from stilor/expat_ncursesBryan Hundven1-1/+0
Promote expat/ncurses to 'companion libs'
2015-11-14Remove redundant configure options.Alexey Neyman1-1/+0
-mcpu= and -msoft-float are added due to ARCH_* flags, and correctly passed down to libstdc build. Signed-off-by: Alexey Neyman <stilor@att.net>
2015-11-14Remove --disable-libsanitizer.Alexey Neyman1-1/+0
It is now added automatically if CT_GCC_SANITIZER is not set - and that option depends on !UCLIBC. Signed-off-by: Alexey Neyman <stilor@att.net>
2015-11-14Switch to using EV67 in alphaev67-*.Alexey Neyman1-1/+1
It does not make much sense to have alphaev67 example use -mcpu=ev67, does it? Signed-off-by: Alexey Neyman <stilor@att.net>
2015-11-14More trivial sample updates.Alexey Neyman1-2/+0
Drop ARCH_ARCH/ARCH_TUNE where it is overridden by ARCH_CPU. Also, same updates as in the previous batch for architectures with !ARCH_EXCLUSIVE_WITH_CPU (i.e. where there is no need to drop ARCH_CPU/ARCH_TUNE). Signed-off-by: Alexey Neyman <stilor@att.net>
2015-11-14Use $* to simplify rules in samples.mk.Alexey Neyman1-9/+9
Signed-off-by: Alexey Neyman <stilor@att.net>
2015-11-14Add update-samples target.Alexey Neyman1-6/+18
Same as check-samples, but actually updates the crosstool.config. Signed-off-by: Alexey Neyman <stilor@att.net>
2015-11-14Samples: Update samplesBryan Hundven36-87/+24
This commit updates samples to latest config/ changes. This closes #114 Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-11-13Enable building expat/ncurses for host.Alexey Neyman1-1/+0
Then re-enable cross-gdb for nios2-spico-elf sample, previously disabled.
2015-11-13Merge pull request #253 from jcmvbkbc/xtensa-for-mainline-20151113Bryan Hundven2-0/+10
Add support for Xtensa architecture
2015-11-13samples: add xtensa-unknown-linux-uclibc configMax Filippov2-0/+10
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2015-11-13file modes: Set files to be non-executableBryan Hundven1-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>
2015-11-13Merge pull request #239 from diorcety-ctng/cc-cygwin-mingw-linuxBryan Hundven2-0/+31
Canadian cross build = x86_64 Cygwin host = x86_64 MinGW_W64 target = x86_64 GNU/Linux
2015-11-13Samples: Add x86_64-w64-mingw32,x86_64-pc-linux-gnuRay Donnelly2-0/+31
Tested on build machines of x86_64-pc-cygwin and x86_64-unknown-linux-gnu Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
2015-11-13samples: Update samples to use default uClibc-ng configBryan Hundven22-2818/+2
This commit removes per-sample configuration files for uClibc and falls back to using the default config file in contrib/uClibc-defconfigs. Only one sample is broken: * powerpc-unknown-linux-uclibc * breaks on dmalloc I will come back and work on the dmalloc failure later, but I don't want it to hold up getting uClibc-ng out in ct-ng. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-11-11uClibc: Reduce supported versionsBryan Hundven1-8/+0
This commit reduces the number of supported versions to: * 0.9.33.2 * custom location Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-11-10blackfin: Remove blackfin supportBryan Hundven14-259/+0
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>
2015-11-04Merge pull request #233 from stilor/fix-build-allBryan Hundven3-14/+60
Fix build-all
2015-11-03Merge pull request #235 from stilor/ctng-sourceBryan Hundven1-1/+1
ctng source
2015-10-31gcc: Support only the latest branch releases of gccBryan Hundven16-28/+14
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>
2015-10-30Fix samples using GMP 4.3.2.Alexey Neyman1-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>
2015-10-30Do not stop build-all after a failed sample.Alexey Neyman1-3/+31
Instead, continue until the end and provide a summary (PASS/XFAIL/FAIL) at the end. If there are any FAILs, exit with code 1. Signed-off-by: Alexey Neyman <stilor@att.net>
2015-10-30Order the samples in build-all.Alexey Neyman1-3/+13
First, build cross samples (indicated by lack of comma in their names); then, build canadian cross samples (and, when they are supported, cross-native). While building canadian cross, set up the path to the build-to-host cross if it was built previously. Signed-off-by: Alexey Neyman <stilor@att.net>
2015-10-30Avoid commas in autogenerated CT_PREFIX_DIR.Alexey Neyman1-5/+12
Signed-off-by: Alexey Neyman <stilor@att.net>
2015-10-30Make build-all non-interactive.Alexey Neyman1-3/+4
'make oldconfig' results in asking the user about options not explicitly set in the defconfig. Instead of copying, run 'conf --defconfig', as in the normal sample's build sequence. Also, invoke 'conf --oldconfig' directly, with a -s option, to avoid spamming with useless "configuration written to .config" messages. Signed-off-by: Alexey Neyman <stilor@att.net>
2015-10-30Rename nios2 sample to match the naming convention.Alexey Neyman2-0/+0
With current name, 'make saveconfig' is broken for this sample. Also, it is confusing to have a sample named 'nios2-elf-mingw32' while show-tuple refers to it as 'nios2-spico-elf' and saveconfig attempts to save it into 'i686-w64-mingw32,nios2-spico-elf'. Signed-off-by: Alexey Neyman <stilor@att.net>
2015-10-30Change sed monstrosity into a make variable.Alexey Neyman1-1/+1
The convoluted sed expression was doing what is already available in make as `$*'. Signed-off-by: Alexey Neyman <stilor@att.net>
2015-10-28Merge pull request #225 from stilor/nios2-fixBryan Hundven1-523/+2
Unbreak nios2-elf-mingw32 sample
2015-10-28Turn off CT_MULTILIB in nios2-elf-mingw32.Alexey Neyman1-1/+0
There are no multilibs in GCC configured for this arch. Signed-off-by: Alexey Neyman <stilor@att.net>
2015-10-28Disable cross-gdb in nios2-elf-mingw32.Alexey Neyman1-1/+1
Building cross-gdb in canadian cross requires expat/ncurses for the host. Currently, 300-gdb.sh only builds expat/ncurses for the target (for native-gdb). For cross-gdb on regular cross (build==host), expat and ncurses are expected to be provided by the host. There are two approaches possible: - If building for canadian cross, build expat/ncurses for cross-gdb just as the native-gdb does. - Promote expat/ncurses to first class citizens and build them as companion libs during the build of the build-to-host toolchain. I am leaning towards the latter approach - it would also allow to specify the versions for expat/ncurses rather than have them hardcoded in 300-gdb.sh - but would appreciate feedback. Signed-off-by: Alexey Neyman <stilor@att.net>
2015-10-28Disable with-system-lib.Alexey Neyman1-1/+0
Target does not have libz/zlib.h. Signed-off-by: Alexey Neyman <stilor@att.net>
2015-10-28Stash nios2 config adjusted for consistence with the rest.Alexey Neyman1-521/+2
Signed-off-by: Alexey Neyman <stilor@att.net>
2015-10-27Mark broken: i586-mingw32msvc,i686-none-linux-gnu.Alexey Neyman1-0/+0
Error message: [EXTRA] Preparing working directories [ERROR] Missing: 'i586-mingw32msvc-ar' or 'i586-mingw32msvc-ar' or 'ar': either needed! Signed-off-by: Alexey Neyman <stilor@att.net>
2015-10-24Revert "Remove ltrace from samples"Alexey Neyman7-0/+7
This reverts commit a3bb2aeb4445bef4250acaaff99fc8dbb0599f8b.
2015-10-22samples: add arm-unknown-linux-musleabiBryan Hundven2-0/+21
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-10-20Merge pull request #198 from stilor/avr2-fixBryan Hundven1-1/+4
Fix avr sample
2015-10-20Merge pull request #201 from stilor/powerpc-e500v2Bryan Hundven1-7/+4
Fix option names in powerpc-e500v2 sample.
2015-10-20Merge pull request #200 from stilor/arm-unwind-uclibcBryan Hundven1-1/+1
Fix link error in arm/uclibc with GCC 5.x
2015-10-20Merge pull request #197 from stilor/avr-fixBryan Hundven1-1/+1
Trivial avr32 fix: name of config option has changed
2015-10-16Fix sh4-unknown-linux-gnu sample.Alexey Neyman1-1/+1
The issue with this sample is that the sh4-* targets in GCC do not implement __builtin_trap() function. Starting with release 5.1, GCC inserts abort() calls where NULL pointers are dereferenced. The elf/dl-conflict.c in glibc is one such place: it calls elf_machine_rela with NULL `sym' pointer. This causes an undefined `abort' symbol to appear in the object file and as a result, pulls in some files during the linking of the dynamic loader that are not supposed to. Eventually, it results in link error due to multiple definitions of _itoa and some other symbols. The right fix would be to implement __builtin_trap() for sh4 in GCC. A workaround would be adding -fno-delete-null-pointer-checks to CFLAGS-dl-conflict.c in elf/Makefile. Until either of these happens, though, pin the GCC version to 4.9.3 - the last that did not generate `abort' calls. Note that the version where GCC started to generate `abort' calls is apparently different for different architectures; the issue in [1] was reported against GCC 4.9. References: [1] https://www.sourceware.org/ml/libc-alpha/2014-10/msg00807.html (similar issue on HP-PA which was resolved by implementing __builtin_trap)
2015-10-16Use dedicated option for 128-bit long double.Alexey Neyman1-2/+3
2015-10-16Fix powerpc-e500v2-linux-gnuspe.Alexey Neyman1-7/+3
Options were renamed. However, matching current option names result in a compile error for strfmon_l.o in glibc: GCC 4.6 detects an unitialized variable in its own va_arg() implementation. Likely, an older GLIBC was used when this sample was submitted - which did not provide -Werror in CFLAGS. Thus, use most recent GCC (5.2.0) and revert GLIBC_FORCE_UNWIND to its default value, 'y' (as forced unwind is required with this version).