Commit Graph

136 Commits

Author SHA1 Message Date
Alexey Neyman
0fe21f8db8 Config v2: select relevant parts of each package version
Also, remove a couple of config options that dealt with package versions
that have been since retired.

Signed-off-by: Alexey Neyman <stilor@att.net>
2019-01-30 00:09:30 -08:00
Alexey Neyman
20c6accc65 Retire GDB 7.0a, superseded by 7.0.1a
(missed by "retire old versions" commit awhile ago)

Signed-off-by: Alexey Neyman <stilor@att.net>
2019-01-26 13:31:03 -08:00
Alexey Neyman
127c6cc64d Replace GDB 7.8.1 with 7.82
When merging new package framework, I missed that master had 7.8.2
imported in place of 7.8.1. Noone complained about this downgrade...

Signed-off-by: Alexey Neyman <stilor@att.net>
2019-01-26 13:13:32 -08:00
Alexey Neyman
faa7849782 Import GCC 7.4.0
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-12-07 00:33:35 -08:00
Alexey Neyman
e149e28e57 Disable -fstack-protector* from being used by glibc
... until it was fixed (to some extent) in 2.25.

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-12-07 00:03:04 -08:00
Alexey Neyman
f5b57504d2 Add configuration options for enabling SSP
... in uClibc and glibc.

Fixes #681.

While here, relocate additional "sources" for uClibc/binutils into packages/
directory.

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-12-04 16:15:37 -08:00
Alexey Neyman
893932e90f Add a config option for default RELRO setting
Fixes #656.

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-12-03 20:19:09 -08:00
Alexey Neyman
7185ac031a Strace needs a patch with Linux 4.19+
Also, they moved their repository.

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-12-03 15:29:35 -08:00
Alexey Neyman
40d5bf6440 Add moxiebox as a choice for libc
This required some rework of the libc selection, as moxiebox is a layer on
top of another libc - newlib.

Also, moxiebox'es host VM (`sandbox`) needs a libcrypto on the host. We will
not have it if we're cross-compiling a canadian cross. Fortunately, all moxiebox
needs from libcrypto is SHA256, and it already includes a standalone implementation
of SHA256 in its runtime. Provide a little wrapper that allows moxiebox use
that implementation for the host binary, too.

Also, automate collecting/printing the list of all packages in a given category
(e.g. LIBC or COMP_TOOLS), generate a list of all Kconfig symbols for a given
category.

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-12-01 10:10:51 -08:00
Alexey Neyman
da76ae3ea3 Add DTC as a companion tool
(needed for cross-gdb targeting the moxie-* targets)

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-11-28 00:30:10 -08:00
Alexey Neyman
58dd139ca0 Add uClibc-ng 1.0.31
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-11-17 18:40:26 -08:00
Alexey Neyman
4294786178 Update Linux versions
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-11-08 00:24:52 -08:00
Alexey Neyman
48fa32776e Import gcc 6.5.0
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-11-07 23:46:35 -08:00
Alexey Neyman
167b848777 Fix the location for elf2flt patches
... after the git version numbering was adjusted.

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-11-01 16:36:42 -07:00
Alexey Neyman
7c4c6892b9
Merge pull request #1044 from abrodkin/topic-arc-linux-4.8
Disallow linux versions before 4.8 for ARC
2018-10-29 23:31:44 -07:00
Alexey Neyman
f72283d8b1 Fix gnulib build against glibc 2.28
(upstream commit from gnulib).

Fixes #1050.

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-10-08 23:51:11 -07:00
Alexey Neyman
8f86bd8078 Restore binutils (gold) build on mingw32 host
Fixes #1049.

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-10-07 22:36:26 -07:00
Alexey Neyman
53f30ea89f Add a comment explaining why CT_Mirrors is not used
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-10-06 10:24:55 -07:00
Alexey Neyman
6e85d0202f Remove android-ndk-r18
It no longer supports GCC.

Fixes #1047.

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-10-06 10:13:28 -07:00
Alexey Neyman
8236e5d996 Fix fdivp argument order
Patch from upstream. Bug didn't exist in 2.14.1 and fix is already
applied in 2.16.

Fixes #1048

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-10-06 08:43:57 -07:00
Alexey Brodkin
7b929a528e Disallow linux versions before 4.8 for ARC
Inspired by a similar fix for AArch64 in 481cbaac9b.

The point is in Linux v4.8 we introduced new ABIv4 which is now used in
both Linux kernel and up-to-date GNU tools for ARC (based on GCC 6.x+).
See [1] for more details.

[1] https://github.com/foss-for-synopsys-dwc-arc-processors/linux/wiki/ARC-Linux-Syscall-ABI-Compatibility

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2018-10-01 11:34:12 +03:00
Alexey Neyman
9ea66ee43f Fix older automake with newer Perl
Fixes #973.
Fixes #987.

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-09-29 15:27:44 -07:00
Alexey Neyman
c14bdd833a Fix compilation against binutils-2.31.1
... where <bfd/bfd.h> also needs <bfd/diagnostics.h>.

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-09-29 14:11:07 -07:00
Alexey Neyman
481cbaac9b Disallow linux versions before 3.7 for aarch64
Fixes #1028

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-09-29 11:30:54 -07:00
Alexey Neyman
83a5eb4084 Patches to fix ld's abort on xtensa
Also while there, fix the naming (some patches ended up with two sequence numbers somehow).

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-09-28 15:43:17 -07:00
Alexey Neyman
6ad79d8932 Add globbing patches to make from upstream
Fixes #1004.

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-09-28 11:47:57 -07:00
Kumar Gala
b06864f7df Pull in fixes for ARM v8m support in gcc 8.2.0
There are some fixes to the cmse code in mainline gcc that we need to
build an embedded toolchain targetting Cortex-M cpus that support the
v8m extensions.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2018-09-27 04:26:52 -05:00
Alexey Neyman
581e8a514b Fix build with ISL 0.20
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-09-25 17:22:34 -07:00
Alexey Neyman
98834458f1 Upgrades. Lots of 'em.
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-09-24 23:09:53 -07:00
Alexey Neyman
8026e6a013
Merge pull request #994 from jcmvbkbc/xtensa-fix-pr65416
package/gcc: fix xtensa PR target/65416
2018-09-23 11:35:59 -07:00
Bryan Hundven
5b42c4cb05 Add musl-libc 1.1.20
Signed-off-by: Bryan Hundven <bryan.hundven@gmail.com>
2018-09-22 23:20:14 -07:00
Evgeniy Didin
4a881ea56e patches: mpfr: Fix obsolete ARC asm constraints
Adding this patch fixes errors while building mpfr for native ARC
toolcahin. Error messages are:
-----------------------------------------------------8<------------------
...
[ERROR]   .build/HOST-arc-snps-linux-uclibc/arc-snps-linux-uclibc/src/
  mpfr/src/mpfr-longlong.h:423:3: error: impossible constraint in 'asm'
...
[ERROR]  >>  Build failed in step 'Installing MPFR for host'
-----------------------------------------------------8<------------------

Signed-off-by: Evgeniy Didin <didin@synopsys.com>
2018-08-21 15:51:09 +03:00
Max Filippov
c41b9641b1 package/gcc: fix xtensa PR target/65416
gcc-8.1 for xtensa miscompiles uClibc dynamic linker due to gcc PR
target/65416. The build completes successfully, but the binary is
non-functional because the following fragment in the _dl_get_ready_to_run
in ld-uClibc.so overwrites register spill area on stack causing register
corruption in the previous call frame and a subsequent crash:

    419f:       f0c1b2          addi    a11, a1, -16
    41a2:       1ba9            s32i.n  a10, a11, 4
    41a4:       0bc9            s32i.n  a12, a11, 0
    41a6:       5127f2          l32i    a15, a7, 0x144
    41a9:       1765b2          s32i    a11, a5, 92
    41ac:       4e2782          l32i    a8, a7, 0x138
    41af:       146af2          s32i    a15, a10, 80
    41b2:       001b10          movsp   a1, a11

The crash terminates the init process and causes kernel panic.
The fix prevents reordering of movsp opcode and any access to the stack
frame memory and is applicable to all existing gcc versions.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2018-06-24 14:40:26 -07:00
Alexey Neyman
b24431f477 Add upstream patch fixing XScale build
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-06-05 00:16:53 -07:00
Alexey Neyman
cc2fe3dbde Backport a gcc8 fix from upstream
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-06-05 00:16:37 -07:00
Dima Krasner
5d335281d9 linux: removed 2.6.32.27
Signed-off-by: Dima Krasner <dima@securingsam.com>
2018-05-31 11:15:19 +03:00
Dima Krasner
718b5e4b03 packages: add uClibc-ng 1.0.30 and last Linux 2.6.32.x
Signed-off-by: Dima Krasner <dima@dimakrasner.com>
2018-05-28 16:45:06 +03:00
Alexey Brodkin
ecb09ca417 ARC: Add multilib support for Linux in GCC
We never bothered to build multilibbed Linux toolchains for ARC
and so we ended-up with no support of multilib for arc*-*-linux-*
targets in GCC. That is now fixed in upstream by the following commit:
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=0eacfbcb2bf1834294f468a2bb41fe5d5e8d3883

Once the fix mentioned above is applied on top of GCC 8.1.0 we may easily build
multilibbed uClibc toolchain for ARC.

Note sice Glibc port for ARC is still in review process we cannot build any Glibc
toolchains for ARC with pure upstream components, for that we eiter need Glibc
sources from our Github repo or apply a set of patches on top of Glibc 2.27 - we'll
try to address this later though.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2018-05-21 13:43:07 +03:00
Alexey Neyman
ea53be7529
Merge pull request #971 from abrodkin/topic-elf32-multilib
ARC: Add support and sample for baremetal/elf32 multilib toolchain
2018-05-16 10:03:12 -07:00
Alexey Brodkin
62f5b90e2e ARC: Don't mention in multilib not yet supported CPUs
hs4x and hs4xd were mistakenly mentioned in MULTILIB_OPTION/DIRNAMES
before real support of those CPUs was accepted in upstream.

That breaks multilib toolchains building becase we're trying to compile
for not yet known CPU.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2018-05-16 17:20:23 +03:00
Alexey Brodkin
e714f99d89 ARC: Fix Linux kernel comilation for ARC700
Without this fix we're getting the following error on attempt to build
Linux kernel:
--------------------------------->8---------------------------------
xfrm4_mode_tunnel.s: Assembler messages:
xfrm4_mode_tunnel.s:188: Error: operand out of range (128 is not between -
128 and 127)
--------------------------------->8---------------------------------

The fix is taken from
d8d716f49c
and it is supposed to be merged in upstream GCC sources soonish.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2018-05-16 15:47:45 +03:00
Alexey Neyman
37ac0e8474 Too many fixes need backporting for GCC8...
... so instead, disable -Werror for older versions of glibc.

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-05-14 23:47:17 -07:00
Alexey Neyman
2b055ddc67 Second batch of backported fixes
getlogin/getlogin_r, zic

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-05-12 23:17:03 -07:00
Alexey Neyman
387c8d8e2c First batch of fixes
- Incompatible function type for ifunc alias
- Multiple statements macro expansion in strftime
- if_nametoindex size checking

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-05-12 13:03:29 -07:00
Alexey Neyman
3f16a8e269 Restore a missing GDB option
(whether GDB has --disable-build-with-cxx) and use it.

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-05-06 15:20:50 -07:00
Alexey Neyman
906cfdac7c Add GCC 8.1
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-05-05 22:14:43 -07:00
Alexey Neyman
3f1532713e Update packages: automake, isl, linux, mpfr, musl, newlib, strace, uClibc-ng
Also, fix manage-packages.sh after autotoolization.

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-04-12 08:17:05 -07:00
Alexey Neyman
b2af5df5fc Backport GCC fix for partial int modes
... from trunk to GCC7/GCC6/GCC5.

Fixes #742.

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-02-15 09:15:00 -08:00
Alexey Neyman
0a7ce2bed4 uClibc-ng does not implement name_to_handle_at
... so don't declare it, it confuses (at least) eudev's configure.

Signed-off-by: Alexey Neyman <stilor@att.net>
2018-02-11 12:18:16 -08:00
Alexey Neyman
a20c29dcef Make libiconv an option in the menu config
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-02-10 14:51:45 -08:00