Commit Graph

4576 Commits

Author SHA1 Message Date
Max Filippov
09259ace3b package/gcc: fix ICE on xtensa, PR target/82181
Memory references to DI mode objects could incorrectly be created at
offsets that are not supported by instructions l32i/s32i, resulting in
ICE at a stage when access to the object is split into access to its
subwords:
  drivers/staging/rtl8188eu/core/rtw_ap.c:445:1:
     internal compiler error: in change_address_1, at emit-rtl.c:2126

Fixes: https://lkml.org/lkml/2017/9/10/151
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2017-09-12 11:33:28 -07:00
Alexey Neyman
42cb9694fb Merge pull request from stilor/endianness-selectable
Doh, forgot one place to rename the BOTH_ENDIAN option
2017-09-05 11:56:54 -07:00
Alexey Neyman
3b62fd4083 Doh, forgot one place to rename the BOTH_ENDIAN option
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-09-05 11:55:47 -07:00
Alexey Neyman
67d16f7887 Merge pull request from stilor/testpkg
Allow test-package.sh to be used in a clean tree
2017-09-04 16:23:24 -07:00
Alexey Neyman
a5c16ae304 Allow test-package.sh to be used in a clean tree
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-09-04 16:22:52 -07:00
Alexey Neyman
f994d1c7d7 Merge pull request from stilor/sh-experiment-multilib
Better SuperH multilib support (different endian, glibc/uClibc for no-FPU, etc)
2017-09-03 19:55:58 -07:00
Alexey Neyman
602304b230 Use the new SuperH fixes in the two multilib samples
- Glibc configure args and tuple need adjustment on SuperH
- Only allow "both endian" and "with CPU" for unspecified arch
  variant. May reconsider endianness (was breaking things before
  adjusting glibc tuple)
- Retire non-multilib sample, it should be a subset of the
  multilib one now.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-09-03 12:12:14 -07:00
Alexey Neyman
1e4eeb5c3b Workaround for static uClibc-ng issue with -lpthread
Also, preserve .config when running test-package.sh.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-09-03 12:12:14 -07:00
Alexey Neyman
e83a2e2333 Pick up uClibc-ng fixes for static GDB build
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-09-03 12:11:23 -07:00
Alexey Neyman
413f5f6100 Super-H multilib toolchain fixes
1. On SuperH, configuring GCC with explicit variant of the CPU
(like "sh4") limits the default set of multilibs to just that CPU
and requires --with-multilib-list to change. Allow for "unspecified"
variant, so that we can defer to GCC to determine the list.

2. Support toolchains with both endiannesses at the same time.

3. Add a SuperH/newlib sample

4. Add more flags processing for uClibc

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-09-03 12:11:23 -07:00
Alexey Neyman
1da3cc59df Fix typo
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-09-03 12:11:23 -07:00
Alexey Neyman
95de709fe3 Merge pull request from nathanchance/pkgversion-flexibility
Improve toolchain ID options
2017-09-03 10:43:21 -07:00
Nathan Chancellor
b0f14b0dfa config: Show crosstool-NG version in .config
This was previously available in 6c62da4803 but was then removed
in cb7fcbe1ef. Add it back since it will be helpful if the user
wants to hide the crosstool-NG version in the pkgversion.

To get the new version, a defconfig from "ct-ng savedefconfig" or
"ct-ng oldconfig" must be used in combination with "ct-ng menuconfig"
or "ct-ng nconfig".

Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
2017-09-01 16:49:16 -07:00
Nathan Chancellor
1d724767bd config: Add package versioning flexibility
Some users (like myself) may want to omit the crosstool-NG version
from the binaries' versioning output, as it can be incredibly long
and not too helpful. Add a config option to disable it. The possible
combinations are as follows:

- crosstool-NG version (default)
- crosstool-NG version - custom toolchain ID
- Custom toolchain ID
- No crosstool-NG version OR custom toolchain ID

Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
2017-09-01 16:48:59 -07:00
Alexey Neyman
98b6a5a450 Merge pull request from stilor/nios2-mmu
Add NIOS2/MMU sample
2017-08-27 23:40:28 -07:00
Alexey Neyman
d25e19f780 Add NIOS2/MMU sample
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-27 23:36:56 -07:00
Alexey Neyman
893685e738 Merge pull request from makoehr/patch-1
Update nios2.in
2017-08-27 22:28:23 -07:00
Alexey Neyman
0194366dbf Merge pull request from stilor/linaro-glibc-2.26
Fix older GCC with glibc 2.26
2017-08-27 22:06:44 -07:00
Alexey Neyman
24b0e666b5 Apply ucontext patch to mainstream GCC releases
Not applicable to 4.8, as GLIBC2.26 requires 4.9 or newer. Record
that dependency.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-27 20:27:21 -07:00
Nathan Chancellor
4d012dd566 Fix Linaro GCC build with glibc 2.26
These were added by GCC in July but these branches are from May. I
suspect that they will be added to at least the 6.x and 7.x branches
but 5.x is EOL from Linaro it seems (as the base GCC version hasn't
been updated in a year and a half). For right now, these are needed.

This was testing on an arm64 build but the patches have fixes for all
supported architectures.

Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
2017-08-27 14:28:11 -07:00
Alexey Neyman
c1b17d7bdd Merge pull request from stilor/fix-mingw
patches/mingw-w64: Fix build with gcc7
2017-08-27 00:09:48 -07:00
Kirill Smirnov
68f201af2d patches/mingw-w64: Fix build with gcc7
Modified by Alexey Neyman: remove obsoleted v5.0.1, propagate the patches
to older versions.

Signed-off-by: Kirill Smirnov <kirill.k.smirnov@gmail.com>
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-27 00:07:36 -07:00
Alexey Neyman
f627e740ff Merge pull request from stilor/issue-802
Issue 802
2017-08-26 16:29:58 -07:00
Alexey Neyman
eba1a82686 Make --enable-obsolete-rpc an option in ct-ng
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-26 13:01:45 -07:00
Alexey Neyman
bf7641d1b9 Backport --enable-obsolete-rpc from 2.16
Fixes .

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-26 13:01:45 -07:00
Alexey Neyman
8aa8a2cbc9 Missed glibc 2.14 when obsoleting releases
Superseded on the branch by 2.14.1.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-26 13:01:44 -07:00
Alexey Neyman
5324905c14 Fix glibc-ports with the new framework
While here, also consider patched by anything other than "bundled patches"
as per-target sources. Add scary warnings in case of a failure.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-26 13:01:37 -07:00
Alexey Neyman
5494335c03 Merge pull request from stilor/binutils-2.29-regressions
Fix regressions after binutils 2.29
2017-08-25 18:07:47 -07:00
Alexey Neyman
a840a08f44 Fix regressions after binutils 2.29
Binutils 2.29 are more picky about versioning of common symbols.
Fix two offenders in glibc versions as applicable.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-25 15:14:00 -07:00
Alexey Neyman
1b3ed29eb9 Merge pull request from stilor/fix-patching-ports
Fix patching ports
2017-08-24 16:24:09 -07:00
Alexey Neyman
961ea19382 Allow loops to skip entries if certain variable is kept
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-24 15:29:55 -07:00
Alexey Neyman
4c1a12f5dd Add "postprocessing" to substituted variables
... and reduce the number of variables defined explicitly.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-24 14:58:14 -07:00
Alexey Neyman
2d7efa5591 Remove .zip from listed extensions for zlib
They mangle the basename into "zlib1211.zip".

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-24 12:00:01 -07:00
Alexey Neyman
b2e2771f85 MPC: older releases are only on master site
Also, Linux stopped making .bz2 tarballs on recent 3.x branches.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-24 00:24:30 -07:00
Alexey Neyman
48b4c8db08 Remove sourceware from glibc mirrors
It only hosts releases up to 2.11.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-23 23:58:50 -07:00
Alexey Neyman
373f22648f Skip ftp:// URLs, wget cannot verify them
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-23 23:56:40 -07:00
Alexey Neyman
bc30eb4818 Upgrade binutils
Bump 2.28 -> 2.28.1; add 2.29.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-23 17:13:30 -07:00
Alexey Neyman
f8d4ce3d0e Implement a script for checking packages
Then use this script to check that all packages can be extracted and patched.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-23 16:05:40 -07:00
Alexey Neyman
8e8417226d Merge pull request from stilor/refix-ppc64le
Refix ppc64le
2017-08-22 17:24:42 -07:00
Alexey Neyman
20e0f706c6 Fix PPC64LE by supplying --with-glibc-version
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-22 16:48:45 -07:00
Alexey Neyman
5fc2ca7e8d Remove the glibc patch for -mfloat128
... per discussion on libc-alpha, need to pass --with-glibc-version=
instead to GCC configure.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-22 14:39:57 -07:00
Alexey Neyman
9ee0e06f57 Merge pull request from stilor/detect-config-change
Various environment-related fixes
2017-08-21 11:48:13 -07:00
Alexey Neyman
2aaa25d2e9 Update TODO
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-21 08:41:14 -07:00
Alexey Neyman
0346153bdb Save export status for environment vars
... and limit our modifications to our variables.

Fixes .

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-21 08:41:14 -07:00
Alexey Neyman
2bdb632495 Reject set-but-empty environment variables
... which also lead to cryptic failures.

Fixed .

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-21 08:41:14 -07:00
Alexey Neyman
b75f031462 Check for config file changes when restarting
Also, save/restore per-target source directory.

Fixes .

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-21 08:41:14 -07:00
Alexey Neyman
b99b5288e7 Merge pull request from stilor/upgrade-regressions
Regressions after upgrades
2017-08-21 08:37:54 -07:00
Alexey Neyman
a8f9fd5454 3.2.x most recent patchlevel is 91, not 93
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-21 07:42:19 -07:00
Alexey Neyman
6239ec9e5d Check if -mfloat128-type needs to be supplied
... in addition to -mfloat128 that glibc 2.26 adds. GCC7 needs both,
GCC6 does not and chokes on unknown option.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-08-21 07:33:37 -07:00
Alexey Neyman
434c205e89 Merge pull request from stilor/upgrades
Various package upgrades
2017-08-19 12:43:51 -07:00