path: root/samples
AgeCommit message (Collapse)AuthorFilesLines
2016-11-29Remove a broken sample.Alexey Neyman3-15/+0
We don't have a sample that builds the required toolchain (i586-mingw32msvc). Signed-off-by: Alexey Neyman <>
2016-11-29Add a canadian cross sample ...Alexey Neyman2-0/+14
... that was exhibiting the failures fixed in previous commits. Signed-off-by: Alexey Neyman <>
2016-11-23samples: rename xtensa-unknown-linux-uclibc to xtensa-fsf-linux-uclibcMax Filippov2-0/+1
Put xtensa core name to the tuple vendor string (without any overlay the default core is 'fsf') and rename sample directory accordingly. Signed-off-by: Max Filippov <>
2016-11-22samples: add target CFLAGS to xtensa-unknown-linux-uclibcMax Filippov1-0/+1
Add -mlongcalls and -mtext-section-literals to target CFLAGS. Target libraries built with these flags have great call range, useful for linux applications. Signed-off-by: Max Filippov <>
2016-11-22xtensa: fix endianness supportMax Filippov1-0/+1
To build uClibc correctly we need correct endianness selected in the crosstool-NG. Xtensa cores may be little- or big-endian, but this property is static. The toolchain knows the core endianness and doesn't need options to select it. Enable ARCH_SUPPORTS_BOTH_ENDIAN and select LE by default. Specify empty CT_ARCH_ENDIAN_CFLAG so that -m{big,little}-endian don't get added to the TARGET_CFLAGS, as it's not supported by gcc. Specify empty CT_ARCH_ENDIAN_LDFLAG so that -EB/-EL don't get added to the TARGET_LDFLAGS as they are ignored. Select big-endian in the example xtensa-unknown-linux-uclibc configuration. This fixes uClibc toolchain build for little-endian cores. Signed-off-by: Max Filippov <>
2016-11-18Make all samples save tarballs.Alexey Neyman4-0/+7
... and provide consistent logging. Signed-off-by: Alexey Neyman <>
2016-11-18Update samples previously using 4.9.3.Alexey Neyman4-4/+4
Signed-off-by: Alexey Neyman <>
2016-11-15Merge pull request #381 from enunes/avrAlexey Neyman2-3/+1
avr-libc: update to 2.0.0
2016-10-05Make sparc-leon-linux-uclibc "version neutral".Alexey Neyman2-1/+1
Signed-off-by: Alexey Neyman <>
2016-09-07sample: s390x-ibm-linux-gnu removed CT_PATCH_NONE=yYogesh Sharma1-1/+0
Signed-off-by: Yogesh Sharma <>
2016-09-07sample: i686-w64-mingw32,nios2-spico-elf updated ISLYogesh Sharma1-1/+1
Signed-off-by: Yogesh Sharma <>
2016-08-31Merge pull request #406 from vaibhav92/powerpc64le-sampleBryan Hundven2-0/+16
samples: Add powerpc64 little-endian toolchain sample
2016-08-31Merge pull request #409 from KirillSmirnov/masterBryan Hundven3-0/+40
samples: Add sparc-leon-linux-uclibc sample
2016-08-23Rename sample to match the 'saveconfig' location.Alexey Neyman2-0/+0
arm-cortex_a15-linux-gnueabi was actually arm-cortex_a15-linux-gnueabihf. Signed-off-by: Alexey Neyman <>
2016-08-23build-all: Remove successful build trees.Alexey Neyman1-1/+3
I am running out of space when running build-all for all samples. Signed-off-by: Alexey Neyman <>
2016-08-23arm-multilib-linux-uclibcgnueabi: Add.Alexey Neyman2-0/+21
No threads (uclibc/libpthread does not compile on ARMv8); no C++ (libitm depends on pthreads), no GDB/DUMA (depend on threads). Signed-off-by: Alexey Neyman <>
2016-08-23mips64el-*-linux-uclibc: Remove.Alexey Neyman4-35/+0
Now, both -mabi=n32 and -mabi=64 are available as multilibs. Signed-off-by: Alexey Neyman <>
2016-08-23Create multilib configurations based on certain *-linux-* samples.Alexey Neyman18-0/+166
Based on the following samples: - x86_64-unknown-linux-gnu (-m64/-m32/-mx32) - powerpc64-unknown-linux-gnu (-m64/-m32) - mipsel-unknown-linux-gnu (-mabi={32,n32,64}) - sh4-unknown-linux-gnu (-m4/-m4a) - x86_64-unknown-linux-uclibc (-m64/-m32) - mips64el-unknown-linux-uclibc (-mabi={32,n32,64}) New samples: - sparc64-multilib-linux-gnu (-m64/-m32) - sh4-multilib-linux-uclibc (-m4/-m4a/-m3) - x86_64-multilib-linux-musl (-m64/-m32) Notably missing is arm-unknown-linux-gnu (aprofile): GLIBC does not compile in one of the variants in its multilib set (-march=armv4t -mthumb) due to missing atomic ops implementation. Signed-off-by: Alexey Neyman <>
2016-07-25Add sparc-leon-linux-uclibc sampleKirill K. Smirnov3-0/+40
Signed-off-by: Kirill K. Smirnov <>
2016-07-19samples: Add powerpc64 little-endian toolchain sampleVaibhav Jain2-0/+16
This change adds a powerpc64le-unknown-linux-gnu sample that can be used to quickly create a little-endian tool-chain for powerpc64 architecture. This sample is based on the earlier work done by "Yann E. MORIN" to add support for powerpc64 tool chain and implementing the power64-unknown-linux-gnu sample. The existing sample however generates a big-endian tool chain by default. Signed-off-by: Vaibhav Jain <>
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 <>
2016-04-02Mark x86_64-w64-mingw32,x86_64-pc-linux-gnu broken.Alexey Neyman2-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 <>
2016-04-02Remove --with-expat from extra GDB args.Alexey Neyman4-4/+0 always adds --with-expat, no need to list it in crosstool.config. Signed-off-by: Alexey Neyman <>
2016-04-02Unbreak powerpc-unknown-linux-uclibc.Alexey Neyman1-0/+0
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 <>
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 <>
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 <>
2016-03-03Adds Raspberry Pi 3 sample configStefan Hallas Mulvad2-0/+18
Signed-off-by: Stefan Hallas Mulvad <>
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 <>
2015-11-17Document {check,update}-samples targets.Alexey Neyman1-0/+2
Signed-off-by: Alexey Neyman <>
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 <>
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 <>
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 <>
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 <>
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 <>
2015-11-14Use $* to simplify rules in Neyman1-9/+9
Signed-off-by: Alexey Neyman <>
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 <>
2015-11-14Samples: Update samplesBryan Hundven36-87/+24
This commit updates samples to latest config/ changes. This closes #114 Signed-off-by: Bryan Hundven <>
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 <>
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 was executable. Then I noticed 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 <>
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 <>
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 <>
2015-11-11uClibc: Reduce supported versionsBryan Hundven1-8/+0
This commit reduces the number of supported versions to: * * custom location Signed-off-by: Bryan Hundven <>
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 <>
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