Commit Graph

357 Commits

Author SHA1 Message Date
Alexey Neyman
5211d68d08 Use dedicated option for 128-bit long double. 2015-10-15 17:34:26 -07:00
Alexey Neyman
7b3821450a Fix powerpc-e500v2-linux-gnuspe.
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).
2015-10-15 17:34:26 -07:00
Alexey Neyman
55d0770209 Fix bfin-unknown-linux-uclibc sample.
Pin GCC to 4.5.3 and binutils to 2.22, the last versions working. There
are multiple bugs affecting bfin configuration; while [3] is fixed on
trunk in GCC (but not backported to gcc-5-release branch yet), [1] and
[2] do not have fixes yet.

References:
[1] https://sourceware.org/bugzilla/show_bug.cgi?id=17334 (binutils bug)
[2] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47779 (gcc bug #1)
[3] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55144 (gcc bug #2)
2015-09-30 17:22:28 -07:00
Bryan Hundven
a3bb2aeb44 Remove ltrace from samples
As of right now, ltrace fails to build. To get CI happy, lets just
disable it!

When we fix ltrace, just revert this change.

This is also in reference to bug #115

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-09-29 12:37:29 -07:00
Frederick Zhang
f29c8332ed raspberry pi 2 sample 2015-09-06 07:06:53 +08:00
Ray Donnelly
86fbcfc36b mingw-w64: Rename targets to {i686,x86_64}-w64-mingw32
.. and set CT_TARGET_VENDOR to w64. Otherwise config.gcc doesn't
pickup the right files for include_next (and probably many other
things go wrong too).

w64 has been the correct vendor for absolutely ages now on all
distributions that provide MinGW-w64 cross compilers.

Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
2015-08-25 00:16:25 +01:00
Erico Nunes
2f436a02e3 avr: enable C++ support in the avr sample
C++ support is enabled in most samples existing in crosstool-ng and is also
supported by AVR.
As pointed out in pull request #124 in the crosstool-ng github, Arduino based
projects willing to use this toolchain will require C++ support.

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
2015-06-27 21:33:49 -03:00
Erico Nunes
6da2fde11e avr: add avr toolchain config sample
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.

Some patches are required in avr-libc for a toolchain with gcc 5.x to
work. These patches are still not part of any avr-libc release version,
so the config sample currently forces 4.9.x to avoid requiring to clone
avr-libc trunk.

References:
    https://savannah.nongnu.org/bugs/?44574
    https://gcc.gnu.org/gcc-5/changes.html

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
2015-06-21 20:53:18 -03:00
Bryan Hundven
cd47c091ba eglibc: Remove eglibc support
As posted on http://www.eglibc.org/
====================
EGLIBC is no longer developed and such goals are now being addressed
directly in GLIBC.
====================

I'm not interested in maintaining build support for unsupported
software.

Older branches of crosstool-ng continue to have eglibc support.
If you find issues with older branches, I'm always open to pull
requests.

Removing eglibc also frees up glibc cleanup and build optimization.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-01-27 22:43:25 -08:00
Daniel Zimmermann
25f2f07bf9 arch/sample : add sample file for the nios2 architecture
add sample file for the nios2 architecture.
2015-01-27 00:57:28 +01:00
Yann E. MORIN
50d94b2098 samples: powerpc-unknown-linux-uclibc is currently broken
Fixing this sample proved to be, well, challenging.

Mark it broken so it does not stop the release.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Bryan Hundven <bryanhundven@gmail.com>
2014-09-08 23:15:46 +02:00
Yann E. MORIN
5baad1d554 samples: update the PowerPC samples
powerpc-unknown-linux-uclibc is left aside for now...

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2014-09-08 19:18:22 +02:00
Yann E. MORIN
2e9b97a89a samples: update the sparc sample
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2014-09-06 01:31:49 +02:00
Yann E. MORIN
20346f27ad samples: update the MIPS samples
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2014-09-06 00:57:46 +02:00
Yann E. MORIN
bf5d513248 samples: update ARM little-endian samples
Removed the arm-davinci sample, it does not bring much more
that the other samples.

Add an ARM uClibc EABIhf sample.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2014-09-05 15:16:33 +02:00
Yann E. MORIN
95c4e89ac9 samples: update ARM big-endian samples
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2014-09-02 23:12:30 +02:00
Yann E. MORIN
741972070f samples: update the ix86 samples
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2014-09-02 23:11:59 +02:00
Yann E. MORIN
929f125fea samples: update the m68k samples
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2014-09-02 23:11:59 +02:00
Yann E. MORIN
7d55350716 samples: update the bfin sample
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2014-09-02 23:11:59 +02:00
Yann E. MORIN
b48b3c4e39 samples: update the s390 samples
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2014-09-02 23:11:59 +02:00
Yann E. MORIN
3170069ee8 samples: update sh4 sample
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2014-09-02 23:11:59 +02:00
Yann E. MORIN
00c5fb37af samples: update x86-64 samples
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2014-09-02 23:11:59 +02:00
Yann E. MORIN
2fb855f025 samples: update the alpha samples
Use latest versions where possible, don't use experimental versions.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2014-09-02 23:11:59 +02:00
Yann E. MORIN
b1f536966b libc: rename the threads options
Use a more coherent naming for the options. This will help commonalise
the native case (e.g. NPTL on Linux, win32 on Windows), and add alternate
implementations (e.g. musl.)

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Bryan Hundven <bryanhundven@gmail.com>
2014-07-28 01:23:34 +02:00
Alexandre Belloni
71074b7f82 samples: add arm-cortexa5-linux-uclibcgnueabihf
This configuration has been tested on an Atmel sama5d3 board. It is a Cortex-A5
without neon and the floating point unit is a vfpv4-d16.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
2014-07-27 01:21:13 +02:00
Thomas Petazzoni
1a8ca5b41b samples/arm-unknown-linux-uclibcgnueabi: major update
This commit updates the arm-unknown-linux-uclibcgnueabi sample to the
modern age:

 - gcc is bumped from 4.4.3 to 4.8.2
 - binutils is bumped from 2.19 to 2.24
 - gdb is bumped from 7.1 to 7.7
 - uclibc is bumped from 0.9.30 to 0.9.33
 - kernel headers are bumped to 3.10
 - strace is bumped to 4.8
 - all companion libraries are also updated

In addition, the ARCH_CPU/ARCH_TUNE configuration options are changed
from xscale to arm926ej-s, with the reasoning that in the ARMv5
ecosystem, ARM926EJ-S cores are much, much more widely used than
Xscale cores.

The resulting toolchain was tested by building a Busybox-only system
with Buildroot, and testing it under an ARMv5 Qemu emulation.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2014-06-28 22:37:46 +02:00
Yann E. MORIN"
6ed78d4cba all: fix wildcard to work with make-4.x
In make-3.8x, the $(wildacrd) function would sort the entries,
while in make-4.x, it would just return the entries in any
unpredictable order [*]

Use the $(sort) function to get reproducible behaviour.

[*] Well, most probably the roder the entries appear when read
from readdir()

Reported-by: Andrew Ruder <andrew.ruder@elecsyscorp.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Tested-by: Andrew Ruder <andrew.ruder@elecsyscorp.com>
2014-06-25 23:33:01 +02:00
Yann E. MORIN"
2f59557376 samples: add a Sparc sample
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-10-04 23:14:36 +02:00
Yann E. MORIN"
244d525522 samples: further fix before release
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-10-02 19:11:34 +02:00
Yann E. MORIN"
d8488d3b3a samples: update for the release
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-10-02 00:02:44 +02:00
Martin Guy
e284b218a7 arch/avr32: Fix download of header files
This patch fixes the download of the avr32 headers in crosstool-ng by
fetching them directly from Atmel's web site instead of the now-broken URL
given by the original author of the avr32-header-fetching modification,
who fetched them from a copy on his own, now-defunct server.

It also adds the necessary logic to extract from a zip file, as that is
how the headers are packaged.

To configure it for avr32 after launching ct-ng menuconfig in an empty
directory:

       Paths and misc options ->
               Shell to use as CONFIG_SHELL = sh
       Target options ->
               Target Architecture = avr32
       Toolchain options ->
               Tuple's alias = avr32
       Binary utilities ->
               binutils version = 2.18a
       C compiler
               gcc version = 4.2.2
       C-library
               newlib version = 1.17.0
               Enable IOs on long long = yes
               Enable IOs on floats and doubles = yes
               Disable the syscalls supplied with newlib = yes

CONFIG_SHELL is necessary to get round the "fragment: command not
found" bug when binutils-2.18 is configured using bash.

Prepared against crosstool-ng mercurial trunk on 31 March 2012.

Signed-off-by: Martin Guy <martinwguy@gmail.com>
[yann.morin.1998@free.fr: update bundles sample accordingly]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <CAL4-wQrg_NQ7jm-NCADqeyQr9twyhtx42OUGNThP6gWeqZc=kw@mail.gmail.com>
Patchwork-Id: 232612
2013-03-31 04:07:38 +00:00
Benoît Thébaudeau"
9eca679b7a samples: add arm-cortexa9_neon-linux-gnueabihf
Signed-off-by: "Benoît Thébaudeau" <benoit.thebaudeau@advansee.com>
[yann.morin.1998@free.fr: make it a defconfig with pinned versions]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <bdf1fde968aee8d0cd95.1360063830@advdt005-ubuntu>
Patchwork-Id: 218239
2013-02-05 12:29:52 +01:00
Yann E. MORIN"
81c28d831b cc/gcc: remove 'sub-level' version form symbols
Now we use defconfig files to store the samples, we have to be a bit more
conservatives in the symbols names, so as to avoid gigantic version bumps
when updating sub-level versions from a package.

Update samples accordingly.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-01-24 22:37:31 +01:00
Yann E. MORIN"
dd25744cc0 samples: print changed symbols when checking samples
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-01-24 22:24:38 +01:00
Yann E. MORIN"
cc6f1fd15b samples: update the rpi sample
And use the newly introduced CT_ARCH_SUFFIX at the same time. :-)

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-01-21 23:03:18 +01:00
Yann E. MORIN"
d82f1c6f2a samples: check if update is needed
Add a ct-ng action to check if samples needs being updated.
This will be usefull when the config options change.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-01-22 00:32:38 +01:00
Yann E. MORIN"
8d19cdd779 samples: rename this sample
This debug string slipped in surreptitiously...

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-01-10 18:46:15 +01:00
Yann E. MORIN"
6f1ab57e80 samples: add a sample for the Raspberry Pi
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-01-09 18:52:15 +01:00
Yann E. MORIN"
e8e7eca3c6 all: unmark experimental version
It's been a while we've had those versions, time to unmark them being
experimental. It does not mean everything is perfect, but may gather
some more testing on those versions.

Update samples accordingly.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-12-26 19:54:12 +01:00
Yann E. MORIN"
652906ac5f all: remove versions marked obsolete
For major components, keep the latest version of each major releases.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-12-26 11:53:05 +01:00
Yann Diorcet
3d01e9f275 libc/mingw: replace mingw32 with generic mingw
Replace the 32-bit-only mingw32 with mingw-w64 that is capable
of building toolchains for both 32-bit and 64-bit Windows.

kernel/mingw: replace mingw32 with generic Windows
kernel/windows: New windows kernel supporting 32 and 64 bit arch
libc/mingw: Remove old options
patches: Remove old mingw libc options' patches

Signed-off-by: "Yann Diorcet" <diorcet.yann@gmail.com>
[yann.morin.1998@free.fr: array var in libc/mingw.sh, typos]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <b045ac08fc9eac2e5ee3.1352898499@blackmint>
Patchwork-Id: 198901
2012-11-14 14:05:49 +01:00
Yann E. MORIN"
da76ef4f71 samples: update samples for release
Refresh all samples against the new set of options, to be
sure they all build OK, before we can do the release.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-11-09 18:22:31 +01:00
Esben Haabendal
90ebb82cb8 samples: add new m68k-unknown-uclinux-uclibc sample
Signed-off-by: "Esben Haabendal" <esben@haabendal.dk>
[yann.morin.1998@free.fr: upgrade to using gcc-4.7.2]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <87r4pod1hm.fsf@arh128.prevas.dk>
PatchWork-Id: 187182
2012-09-26 16:37:31 +02:00
Yann E. MORIN"
542bb18409 scripts+samples: fix listings the samples
Since we use defconfigs to save the samples, listing all the
samples can no longer be done by passing all the sample names
at one to the script; we need to pass them one-by-one after
we expand the sample's defconfig ibnto a complete .config.

Reported-by: Bryan Hundven <bryanhundven@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-07-23 22:02:23 +02:00
Yann E. MORIN"
eb6e2e87f0 samples: resave all samples with savedefconfig
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-05-07 00:10:00 +02:00
Yann E. MORIN"
33a6cdd7ec samples: rework show-tuple
Now that we are using defconfig files, the samples do not contain
the full configuration, so we can not simply parse them to show
their content.

Instead, we must fake recalling a sample, and parse the generated
.config file.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-05-07 21:37:59 +02:00
Yann E. MORIN"
99a6ddf3be samples: use savedefconfig when saving samples
When saving a sample, use savedefconfig instead of copying
the full .config file.

This reduces the saved .config, and reduces clutter when it
is later upgraded.

Also use defconfig when retrieving a sample.

Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-05-07 00:27:05 +02:00
Yann E. MORIN"
817c24034e samples: update to latest set of options
No feature- of version-bump, just update the samples
so that no (NEW) option pops up in the release.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-04-30 18:14:13 +02:00
Yann E. MORIN"
4ffc66613f samples: update to latest config option set
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-04-09 11:00:35 +02:00
Yann E. MORIN"
e1d16aa95e samples: update before release
Update all samples to reflect the new set of options, plus:
- remove the arm-iphone-linux-gnueabi sample (obsolete...)
- disable hard-float in ARM bare-metal samples.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2012-02-01 00:10:59 +01:00