Commit Graph

39 Commits

Author SHA1 Message Date
Bryan Hundven
1a25115a18 gcc: Support only the latest branch releases of gcc
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-31 12:17:35 -07:00
Alexey Neyman
f1e2315700 Fix arm/uclibc; see the description in the patch.
This should ideally be upstreamed to uclibc maintainers, but with the
last release more than 3 years ago, I wouldn't hold my breath for a
fix being released any time soon.
2015-10-15 17:27:32 -07:00
Andreas Bießmann
99435117fd uClibc: fix darwin build
uClibc's unifdef tool declares strlcpy(3) which is problematic on OS X. There
(and probably on other systems) strlcpy(3) is defined as a macro, re-declaring
it here will fail cause the macro expansion will generate an invalid function
name.
The declaration of strlcpy(3) is however useless cause it is never used in the
tool. Also upstream patch 2a021ae81c36f4281883a3195f7ce81504edf978 will remove
it. Using that patch here is overkill, cause it rewrites a lot of the
unifdef.c code.

Signed-off-by: Andreas Bießmann <andreas@biessmann.de>
Cc: Yann E. MORIN <yann.morin.1998@free.fr>
2015-01-08 19:30:36 -08:00
Thomas Petazzoni
348a67cceb patches/uClibc: add uClibc 0.9.33.2 patch to build with recent kernel headers
uClibc 0.9.33.2 has an issue related to __kernel_long and similar
types when building with kernel headers >= 3.4. This commit adds a
uClibc that fixes this issue, and allows building with recent kernel
headers.

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:36:37 +02:00
Esben Haabendal
e23defd4ec libc/uClibc: add workaround patch for ICE in m68k builds
This patch/workaround is similar to the one proposed in
http://www.mail-archive.com/uclibc@uclibc.org/msg02475.html

Bug reproduced with GCC 4.6.3.

[ALL  ]    In file included from libc/inet/inet_ntoa.c:8:0:
[ALL  ]    libc/inet/addr.c: In function 'inet_ntoa_r':
[ALL  ]    libc/inet/addr.c:135:1: warning: visibility attribute not supported in this configuration; ignored [-Wattri
butes]
[ERROR]    libc/inet/addr.c:135:1: internal compiler error: in output_move_qimode, at config/m68k/m68k.c:3160

Signed-off-by: "Esben Haabendal" <esben@haabendal.dk>
Message-Id: <87sja4d1ke.fsf@arh128.prevas.dk>
Patchwork-Id: 187181
2012-09-26 16:41:02 +02:00
Yann E. MORIN"
13a05a4720 libc/uClibc: add latest version
Add 0.9.32.1

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-12-30 22:04:24 +01:00
Yann E. MORIN"
a292fbae0f libc/uClibc: add patch to fix fork in threads with ARM EABI
uClibc-0.9.32 requires libgcc_eh.a (for ARM EABI), but only when libubacktrace
is enabled. As this is not the default, provide a workaround to disable linking
with libgcc_eh.a if libubacktrace is not selected.

This will however still break if uClibc is configured to enable libubacktrace,
but it requires a fix in gcc, and we can take care of that later.

Reported-by: Grant Edwards <grant.b.edwards@gmail.com>
Reported-by: Tor Krill <tor@codeknot.com>
Tested-by: Tor Krill <tor@codeknot.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-08-31 11:00:35 +02:00
Yann E. MORIN"
03ecefbfc3 libc/uClibc: workaround for a MIPS TLS issue
Some macros declarations were missing, so we duplicate them.
See the added patch description for more information.

---->  THIS IS A DIRTY HACK!  <----

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-09-12 14:09:31 +02:00
Titus von Boxberg"
7af1d22c17 libc/uClibc: portability fixes to install_headers
Add patch files for uClibc-0.9.30:
extra/scripts/install_headers.sh: find must be called with path.
extra/scripts/unifdef.c: getline is declared in <stdio.h>, use different name.

Reported-by: "Guylhem Aznar" <crossgcc@guylhem.net>
Reported-by: "Titus von Boxberg" <titus@v9g.de>
Signed-off-by: "Titus von Boxberg" <titus@v9g.de>
2011-08-22 09:38:19 +02:00
Yann E. MORIN"
b7e9cbb06c libc/uClibc: add latest release 0.9.32 + patchset
The patchset was obtained by dumping each changeset on the
upstream 0.9.32 branch since the release:
  git log v0.9.32..origin/0.9.32 |sed -r -e '/^commit/!d; s/.* //;' |tac

and then creating a patch from each changeset.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-06-27 00:12:29 +02:00
Thomas Petazzoni
24e4d092a5 Add basic support for the Blackfin architecture
For uClibc, the name of the Blackfin architecture is 'bfin'. Actually,
the naming of the architecture is quite messy: for toolchain tuples
and uClibc, it's bfin, but for the kernel, it's blackfin. We've
arbitraly choosen to name it "blackfin" in Crosstool-NG.

Add Blackfin-related uClibc patch to fix a build failure related to
fork() being used in unistd/daemon.c.

Yann E. MORIN:
Apply the patch to the kernel/linux build script to use 'linux'
in the noMMU tuples. See:
  http://sourceware.org/ml/crossgcc/2010-04/msg00010.html
2010-04-07 09:18:20 +02:00
Thomas Petazzoni
ea8b5ddce5 Fix the uClibc clean-up-O_CLOEXEC-handling patch
In the Blackfin case (untested until now), this patch was lacking a
leading / at the end of a comment.
2010-04-07 09:19:16 +02:00
Yann E. MORIN"
ca9b06fbe6 libc/uClibc: vampirise patches for 0.9.30.2 from builroot
Commit in upstream buildroot:
http://git.buildroot.org/buildroot/commit/?id=43ffd946ad569f3a1d0662de221cd4cb65bdc8e6
Everything on the 0_9_30 branch since the release (0.9.30.3 to be)
2010-02-28 11:50:15 +01:00
Yann E. MORIN"
2e04c720dd libc/uClibc: rename patches for 0.9.30.2 2010-01-15 22:21:12 +01:00
Joachim Nilsson
9bfbd1e3d8 Port uClibc patches to 0.9.30.2
Some patches from 0.9.30.1 now applied upstream.  The reminder have
been only slightly modified to apply cleanly to the new base.

Signed-off-by: Joachim Nilsson <jocke@vmlinux.org>
2010-01-14 23:06:48 +01:00
Yann E. MORIN"
833fb174e5 libc/uClibc: add patch to fix IP frames on BE targets
Pack netinet structs to be possible to use for creating
IP frames on big-endian targets.

Signed-off-by: Joachim Nilsson <jocke@vmlinux.org>
[yann.morin.1998@anciens.enib.fr: removed getline patch, already in]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2010-01-07 19:20:31 +01:00
Doug Kehn
13fda12471 libc/uClibc: add new patch to fix NULL pointer dereference 2009-11-17 00:56:17 +01:00
Yann E. MORIN"
de8f2cea32 Merge. 2009-10-29 00:10:06 +01:00
Zoltan Devai
06cb0b6ddb libc/uClibc: fix building on system with recent glibc
While trying to build a toolchain with ct-ng 1.5.0,
arm-unknown-linux-uclibcgnueabi target,
I get the following error:

[INFO ]  Installing C library headers
[EXTRA]    Copying sources to build dir
[EXTRA]    Applying configuration
[EXTRA]    Building headers
[EXTRA]    Installing headers
[ERROR]    extra/scripts/unifdef.c:209: error: conflicting types for 'getline'
[ERROR]    make[2]: *** [extra/scripts/unifdef] Error 1
[ERROR]    Build failed in step 'Installing C library headers'

The following patch solves the problem.
(It's a backport of this uClibc commit:
http://git.uclibc.org/uClibc/commit/?id=49e81cada73616864b9b31df0aeb6961c30f5a6e
)

[--SNIP from another mail--]
AFAIK this is a problem since glibc 2.10.
2009-10-28 12:03:38 +01:00
Yann E. MORIN"
4fb0c302e0 config: rip-out versions marked as OBSOLETE 2009-10-28 18:55:40 +01:00
Yann E. MORIN"
4110f78888 Add three new uClibc-0.9.30.1, vampirised from buildroot.
/trunk/patches/uClibc/0.9.30.1/170-dl-sysdep-inline.patch |  371   371     0     0 ++++++++++++++++
 /trunk/patches/uClibc/0.9.30.1/160-c99-ldbl-math.patch    |  474   474     0     0 +++++++++++++++++++++
 /trunk/patches/uClibc/0.9.30.1/150-64bit-strtouq.patch    |   48    48     0     0 ++
 3 files changed, 893 insertions(+)
2009-03-31 06:39:03 +00:00
Yann E. MORIN"
a1e353193f Fix offset in uClibc patch.
/trunk/patches/uClibc/0.9.30.1/140-gnu89-inline.patch |    2     1     1     0 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
2009-03-30 20:17:46 +00:00
Yann E. MORIN"
6a2fed26d1 Add uClibc-0.9.30.1 patchset, based on the 0.9.30 patchset. 2009-03-08 17:11:31 +00:00
Yann E. MORIN"
832e00da4f uClibc-0.9.30 patch, forwarded by Joachim Nilsson <joachim.nilsson@vmlinux.org>
Fix getaddrinfo when both IPv4 and IPv6 are enabled.

 /trunk/patches/uClibc/0.9.30/150-getaddrinfo-segfault-ipv6-and-ipv4.patch |   32    32     0     0 ++++++++++
 1 file changed, 32 insertions(+)
2009-02-26 18:25:39 +00:00
Yann E. MORIN"
d1369f342b Add patchset for uClibc-0.9.30 (from Gentoo).
/trunk/patches/uClibc/0.9.30/110-arm_fix_alignment.patch               |   23    23     0     0 +++
 /trunk/patches/uClibc/0.9.30/130-arm-ftruncate64.patch                 |   17    17     0     0 ++
 /trunk/patches/uClibc/0.9.30/100-fix-gethostent_r-failure-retval.patch |   17    17     0     0 ++
 /trunk/patches/uClibc/0.9.30/120-rm-whitespace.patch                   |   88    88     0     0 ++++++++++
 /trunk/patches/uClibc/0.9.30/140-gnu89-inline.patch                    |   16    16     0     0 ++
 5 files changed, 161 insertions(+)
2009-02-08 22:07:29 +00:00
Yann E. MORIN"
140d179eb3 Update all samples to the latest set of options.
Update some samples to use newer features.
Add patches for the uClibc-20080801 snapshot to be able to build with gcc-4.3.
Add a patch against glibc-2.7 to allow building PPC with latest kernel headers.
Add a patch to gcc to use an alternate unwinding when built against uClibc (after a private explanation/request by Daniel Egger <daniel@eggers-club.de>)

 /trunk/patches/glibc/2.7/230-powerpc-private_futex.patch          |   15    15     0     0 +
 /trunk/patches/uClibc/20080801/300-fix-asm.patch                  |  175   175     0     0 +++++++++
 /trunk/patches/uClibc/20080801/100-ifaddrs.patch                  |  190   190     0     0 +++++++++
 /trunk/patches/uClibc/20080801/200-mips-typeof.patch              |  112   112     0     0 ++++++
 /trunk/patches/gcc/4.3.1/330-unwind-for-uClibc.patch              |   25    25     0     0 +
 /trunk/samples/x86_64-unknown-linux-gnu/crosstool.config          |   17    10     7     0 +
 /trunk/samples/armeb-unknown-linux-uclibc/crosstool.config        |    7     5     2     0 +
 /trunk/samples/arm-unknown-linux-gnueabi/crosstool.config         |    7     5     2     0 +
 /trunk/samples/ia64-unknown-linux-gnu/crosstool.config            |   14    11     3     0 +
 /trunk/samples/x86_64-unknown-linux-uclibc/uClibc-20080801.config |  232   232     0     0 ++++++++++++
 /trunk/samples/x86_64-unknown-linux-uclibc/crosstool.config       |   34    21    13     0 +-
 /trunk/samples/i686-nptl-linux-gnu/crosstool.config               |   10     7     3     0 +
 /trunk/samples/powerpc-unknown-linux-gnu/crosstool.config         |   12     9     3     0 +
 /trunk/samples/mips-unknown-linux-uclibc/uClibc-20080801.config   |  249   249     0     0 ++++++++++++
 /trunk/samples/mips-unknown-linux-uclibc/crosstool.config         |   38    23    15     0 +-
 /trunk/samples/arm-unknown-linux-uclibcgnueabi/crosstool.config   |   14    10     4     0 +
 /trunk/samples/armeb-unknown-linux-gnu/crosstool.config           |    7     5     2     0 +
 /trunk/samples/powerpc-unknown_nofpu-linux-gnu/crosstool.config   |   12     9     3     0 +
 /trunk/samples/arm-unknown-linux-uclibc/crosstool.config          |    7     5     2     0 +
 /trunk/samples/i586-geode-linux-uclibc/uClibc-20080801.config     |  261   261     0     0 +++++++++++++
 /trunk/samples/i586-geode-linux-uclibc/crosstool.config           |   32    20    12     0 ++
 /trunk/samples/powerpc-unknown-linux-uclibc/crosstool.config      |   12     9     3     0 +
 /trunk/samples/mipsel-unknown-linux-gnu/crosstool.config          |    7     5     2     0 +
 /trunk/samples/armeb-unknown-linux-uclibcgnueabi/crosstool.config |    7     5     2     0 +
 /trunk/samples/alphaev56-unknown-linux-gnu/crosstool.config       |   16    10     6     0 +
 25 files changed, 1428 insertions(+), 84 deletions(-)
2008-08-07 14:05:47 +00:00
Yann E. MORIN"
6317df4779 Fourth step at renaming patches: renumber all patches with a 10-step. 2008-07-28 21:32:33 +00:00
Yann E. MORIN"
3bf3f54ed1 Third go at renaming patches to contain neither the package name nor the package version. 2008-07-28 21:08:01 +00:00
Yann E. MORIN"
c15c2e6978 Vampirise three new patches for uClibc, coming from buildroot.
/trunk/patches/uClibc/0.9.29/600-filter-gnu99-from-assembly-flags.patch |   12    12     0     0 +
 /trunk/patches/uClibc/0.9.29/800-rm-whitespace.patch                    |   86    86     0     0 ++++++
 /trunk/patches/uClibc/0.9.29/700-linuxthreads.patch                     |  145   145     0     0 ++++++++++
 3 files changed, 243 insertions(+)
2008-05-14 17:40:28 +00:00
Yann E. MORIN"
42dd33bb71 Add a new patch to uClibc-0.9.29. 2008-01-18 20:04:20 +00:00
Yann E. MORIN"
a8a9235844 The latest uClibc-0.9.29 patch grabbed from buildroot is buggy wrt a type (__ulong_t does not exist, while __u_long does). Fix that. 2007-07-23 20:56:29 +00:00
Yann E. MORIN"
1293ffef11 Vampirise two more patches against uClibc-0.9.29 from buildroot. 2007-07-21 20:31:26 +00:00
Yann E. MORIN"
55f66b762c Remove unused patch to uClibc-0.9.29. 2007-07-21 17:22:24 +00:00
Yann E. MORIN"
960cc07322 Port the custom ISA patch to uClibc-0.9.29 2007-05-22 20:37:46 +00:00
Yann E. MORIN"
aa6ae43fd7 Add uClibc-0.9.29:
- associated patch set
  - update the munging function to accomodate the new config variables
libfloat version was missing from the previous commit... :-(
Better handle the case where the sample directory already exist but isn't under revision control, and in case the destination file doesn't exist in the sample directory.
2007-05-19 22:52:47 +00:00
Yann E. MORIN"
266d2ec7e5 Remove an incorrect path from uClibc-0.9.29: we _do_ need a xgcc to buld this header! 2007-05-19 11:01:47 +00:00
Yann E. MORIN"
340c3e2030 Make the debug config menu a generated file.
Add a uClibc-0.9.29 patch directory with one patch (from me!).
Update the armeb-unknown-linux-uclibc sample to uClibc-0.9.29.
Some eyecandy in the gdb build process.
2007-05-17 22:10:48 +00:00
Yann E. MORIN"
56f56ed8bf Argh! I forgot to commit the uClibc-0.9.28.3 patches... 2007-03-04 12:33:12 +00:00
Yann E. MORIN"
1906cf93f8 Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!".
Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup.
That means I'm putting backups in place in the afternoon.
That also means we've lost history... :-(
2007-02-24 11:00:05 +00:00