Commit Graph

4876 Commits

Author SHA1 Message Date
Alexey Neyman
fdcfffebf6
Merge pull request #1233 from cpackham/fixup-arc-patch
glibc: arc: Don't interfere with other architectures
2019-09-30 23:43:24 -07:00
Alexey Neyman
c5cd702e25
Merge pull request #1232 from cpackham/glibc-2.30
Add glibc 2.30
2019-09-30 23:41:14 -07:00
Alexey Brodkin
fb1736fb48 glibc-2.30: Re-add ARC support
So again due to non-technical reasons (lack of public documentation
of ARC instruction set which we actively work on but no yet published)
we missed upstream 2.30 release.

Still the code is there, we regularly run full test-suite and are confident
in port's quality and robustness.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2019-09-06 14:28:15 +03:00
Chris Packham
01e21d90f7 glibc: arc: Don't interfere with other architectures
Fixes: #1227

Adjust the ARC patch so that it only sets with_fp_cond when the machine
is arc.

https://github.com/foss-for-synopsys-dwc-arc-processors/glibc/issues/7

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2019-09-05 14:17:18 +12:00
Chris Packham
7b362e6dae Add glibc 2.30
Add the GNU C Library version 2.30. Bring forward the
typedef-caddr.patch. Skip the ARC patch for now.

https://sourceware.org/ml/libc-alpha/2019-08/msg00029.html

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2019-09-05 11:32:23 +12:00
Alexey Neyman
afaf7b9a25
Merge pull request #1189 from dimkr/musl-1.1.22
Add musl 1.1.22
2019-05-04 14:55:02 -07:00
Alexey Neyman
933b6bde3d
Merge pull request #1185 from abrodkin/topic-glibc-for-arc
glibc: Add ARC support
2019-05-04 14:38:18 -07:00
Dima Krasner
9855ca3391 Add musl 1.1.22
Signed-off-by: Dima Krasner <dima@dimakrasner.com>
2019-05-02 13:04:47 +03:00
Alexey Brodkin
32e945e764 Add Glibc toolchain sample for ARC HS
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2019-04-17 10:36:14 +03:00
Alexey Brodkin
01c04bf502 package/gcc: Fix Glibc compilation for ARC with -mcpu= hs38_linux
Back-port of upstream fix:
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=5664ecf49828edb20f53937ab2e417ba173fc903

Fixes: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90103

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2019-04-17 10:30:34 +03:00
Alexey Brodkin
e9e30581e6 glibc: Add ARC support
ARC port of Glibc was submitted to the mailing list recently [1]
but due to late submission it didn't make it in Glibc 2.29 release.

Hopefully by the time of next release it will be a part of upstream
release but for now we have to use off-the-tree patch.

Still it's proven to work internally as well as its test-suite
shows brilliant results as might be seen from [1]:
------------------>8-------------------
Summary of test results:
     24 FAIL
   5124 PASS
     27 UNSUPPORTED
     19 XFAIL
------------------>8-------------------

Moreover ARC's Glibc port is known to work in Buildroot, OpenEmbedded
and even Automotive Grade Linux distro so we should be good having
this patch for Glibc.

BTW the patch itself is a copy of the one I use in OE, see [2].

[1] https://sourceware.org/ml/libc-alpha/2018-12/msg00678.html
[2] https://github.com/foss-for-synopsys-dwc-arc-processors/meta-synopsys/blob/master/recipes-core/glibc/files/0031-Add-ARC-architecture.patch

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2019-04-17 10:30:34 +03:00
Alexey Neyman
b2151f1dba
Merge pull request #1182 from stilor/master
Last fixes for 1.24
2019-04-10 13:31:59 -07:00
Alexey Neyman
a90046a056 Install python3, needed by recent GLIBC
Signed-off-by: Alexey Neyman <stilor@att.net>
2019-04-10 13:23:31 -07:00
Alexey Neyman
0472602b51 Require 2.29 if building glibc for RISC-V64
Signed-off-by: Alexey Neyman <stilor@att.net>
2019-04-10 13:21:24 -07:00
Alexey Neyman
51f1db5c0a
Merge pull request #1178 from stilor/master
Last fixes for 1.24.0
2019-04-05 14:09:48 -07:00
Alexey Neyman
ace18924a3
Merge pull request #1167 from palmer-dabbelt/riscv-cxx
riscv64-unknown-linux-gnu: Add C++ Support
2019-04-05 14:09:29 -07:00
Alexey Neyman
d0f484f256
Merge pull request #1169 from jcmvbkbc/xtensa-fixes
noMMU xtensa fixes
2019-04-05 14:09:14 -07:00
Alexey Neyman
e593d1e68d
Merge pull request #1177 from alexandrebelloni/reporter_url_fix
samples: G+ is gone, update reporter_url
2019-04-05 13:10:50 -07:00
Alexey Neyman
1a08a81272
Merge pull request #1179 from zentorin/master
uClibc: fix selection of debug level
2019-04-05 13:09:36 -07:00
Konstantin Vasin
c4bc4f686a uClibc: fix selection of debug level 2019-04-05 18:25:52 +03:00
Alexey Neyman
693d3943b1 Rename JOBSFLAGS -> CT_JOBSFLAGS
... so that it is saved/restored when restarting the build.

Signed-off-by: Alexey Neyman <stilor@att.net>
2019-04-04 18:57:42 -07:00
Alexey Neyman
8e24bb22d0 Do not include config/configure.in into the release tarball
Fixes #1176

Signed-off-by: Alexey Neyman <stilor@att.net>
2019-04-04 18:57:42 -07:00
Alexey Neyman
f9b57cc78a Enable zlib companion lib if building LTO
While we may use build machine's library when building a simple cross,
we won't have it for the host machine in a canadian build. Until there
are separate selectables for the build/host components, just build our
own local zlib.

Signed-off-by: Alexey Neyman <stilor@att.net>
2019-04-04 18:57:42 -07:00
Alexey Neyman
a34f7e81ae Only select GDB version if GDB is enabled
... which fixes a bogus warning when configuration without GDB is
loaded.

Signed-off-by: Alexey Neyman <stilor@att.net>
2019-04-04 18:57:42 -07:00
Alexey Neyman
19cc968f33 Require WCHAR in uClibc for all GDB versions
if building natively. 7.12.1 and 7.11.1 are also breaking in absence of
<wctype.h>

Signed-off-by: Alexey Neyman <stilor@att.net>
2019-04-04 18:57:42 -07:00
Alexey Neyman
d4fd69d5f1 Change the "no viable version" check
... to make it easier to trace from `ct-ng menuconfig`.

Signed-off-by: Alexey Neyman <stilor@att.net>
2019-04-04 18:57:42 -07:00
Alexey Neyman
c65df691de Mark binutils/gdb requirements for RISC-V
Signed-off-by: Alexey Neyman <stilor@att.net>
2019-04-04 18:57:42 -07:00
Alexey Neyman
31002a0c0a Add an ability to mark a configuration as invalid
... so that the build will fail early and predictably.

Signed-off-by: Alexey Neyman <stilor@att.net>
2019-04-04 18:57:42 -07:00
Alexey Neyman
cc3686ec2f An artifact of merging native/gdbserver backends
... resulted in an attempt to build libinproctrace.so whenever any
of the {gdbserver, native gdb} was enabled.

Signed-off-by: Alexey Neyman <stilor@att.net>
2019-04-04 18:57:32 -07:00
Alexandre Belloni
138d0d4da6 samples: G+ is gone, update reporter_url
G+ is now defunct, update the reporter_url to bootlin as both Thomas and I
are working there.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2019-04-04 16:25:11 +02:00
Max Filippov
4f360146eb Fix uClibc build for noMMU target
uclibc_backend_once tries to build dummy shared libraries regardless of
whether shared libraries support for target is enabled or not, resulting
in build failure in noMMU bFLT configuration.
Only build dummy shared libraries when shared library support for target
is enabled.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2019-03-23 11:09:45 -07:00
Max Filippov
f8ed7002c6 Add support for noMMU xtensa
scripts/build/kernel/linux.sh only provides suffix to known
architectures when building toolchain targeting noMMU linux.
Add support for xtensa and assign uclinux suffix to it.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2019-03-23 11:09:43 -07:00
Alexey Neyman
5e82ca9e3d Only build libinproctrace for *-linux-gnu targets
Signed-off-by: Alexey Neyman <stilor@att.net>
2019-03-20 17:40:33 -07:00
Alexey Neyman
4a0a490811 Use explicit revision in xtensa-fsf-elf
So that the build does not depend on internet connectivity.

Signed-off-by: Alexey Neyman <stilor@att.net>
2019-03-20 17:24:03 -07:00
Palmer Dabbelt
7ba6097629
riscv64-unknown-linux-gnu: Add C++ Support
We've had very solid support for C++ for quite a while now in RISC-V
land, at least in our Linux targets.  This patch set enables C++ support
by default, which I assume most users will want.

Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
2019-03-20 01:47:32 -07:00
Alexey Neyman
89ba62fb1d
Merge pull request #1163 from stilor/docker-fixes
Fix build on CentOS6/7
2019-03-17 11:37:43 -07:00
Alexey Neyman
e4475c33df Install python3 in Mint
Signed-off-by: Alexey Neyman <stilor@att.net>
2019-03-17 11:28:54 -07:00
Alexey Neyman
3be2ba2f0d Install python3 on Fedora29
GDB doesn't accept older 2.x as a valid choice.

Signed-off-by: Alexey Neyman <stilor@att.net>
2019-03-15 12:14:53 -07:00
Alexey Neyman
48489ebb9d Note the experimental status of Alpine
I don't have the time to fix all the various breakages it shows.

Signed-off-by: Alexey Neyman <stilor@att.net>
2019-03-15 12:13:42 -07:00
Alexey Neyman
b9e3a7de9c Use fedora29 as a reference
Signed-off-by: Alexey Neyman <stilor@att.net>
2019-03-14 23:57:17 -07:00
Alexey Neyman
11f86e8b56 Reapply b34137
... which fixes <panel.h> detection on Alpine Linux (which has ncursesw
but installs it into plain /usr/include).

Signed-off-by: Alexey Neyman <stilor@att.net>
2019-03-14 18:25:32 -07:00
Alexey Neyman
cbd9af9ac9 event-loop.h is included via other paths, too
... so instead add an include guard.

Signed-off-by: Alexey Neyman <stilor@att.net>
2019-03-14 12:06:34 -07:00
Alexey Neyman
8b8e6b4e5d Remove "event-loop.h" inclusion from "top.h"
Older GCCs (e.g. GCC 4.4 in CentOS 6) chokes on having two identical
typedefs like this:

typedef void *p;
typedef void *p;

The event-loop.h header does not have a guard against double-inclusion.
Not the best solution, but it works and eventually 7.12 will fall into
obsolescence anyway.

Signed-off-by: Alexey Neyman <stilor@att.net>
2019-03-13 23:56:12 -07:00
Alexey Neyman
a75a770595 Make the proc_service.h workaround apply to gdbserver
... when it is compiled without the native GDB.

Also, fix the gdbserver to be installed without a program prefix in this
case, as it was before the unification of the GDB backend.

Signed-off-by: Alexey Neyman <stilor@att.net>
2019-03-12 23:08:58 -07:00
Alexey Neyman
de36f78f89 Allow older GDB to build against newer glibc
Also, fix the subdir used when only gdbserver is built (without native
GDB).

Signed-off-by: Alexey Neyman <stilor@att.net>
2019-03-11 00:33:22 -07:00
Alexey Neyman
5332f480e4 Update the samples to v3
Signed-off-by: Alexey Neyman <stilor@att.net>
2019-03-09 19:42:34 -08:00
Alexey Neyman
1e25ebc7e0 Move GDB build into a common backend function
... needed to create a common runtime test for an incompatible change
in glibc API.

Signed-off-by: Alexey Neyman <stilor@att.net>
2019-03-09 18:01:30 -08:00
Alexey Neyman
32af07341d GDB 7.12.1 fails to build in certain configurations
... for which we pick up a patch from upstream.

Signed-off-by: Alexey Neyman <stilor@att.net>
2019-03-06 00:51:36 -08:00
Alexey Neyman
4ddad7b34f CentOS6 cannot use newer GDB releases
... unless one retrofits it with a decent compiler instead of stock
GCC 4.4.

While here, sync up the ax_*.m4 with autoconf-archive.

Signed-off-by: Alexey Neyman <stilor@att.net>
2019-03-05 00:48:31 -08:00
Alexey Neyman
b3cce054ef Meet our new companion tool, bison
Which is here courtesy of CentOS6, which only has bison 2.4 - while new
glibc requires 2.7.

Signed-off-by: Alexey Neyman <stilor@att.net>
2019-03-04 00:22:02 -08:00