Commit Graph

5192 Commits

Author SHA1 Message Date
Chris Packham
d01672ee0e Merge branch 'newlib-nano-4.1.0' of git://github.com/galak/crosstool-ng 2021-04-19 20:24:18 +12:00
Chris Packham
fe148013f0 Merge branch 'ltrace-fix' of https://github.com/cpackham/crosstool-ng 2021-04-19 20:23:17 +12:00
Chris Packham
a87b62ee11 Merge branch 'abrodkin-gdb-10-fix' of git://github.com/foss-for-synopsys-dwc-arc-processors/crosstool-ng 2021-04-19 20:22:39 +12:00
Alexey Brodkin
2baacbfe36 gdb: Don't mess with gdbserver config permissions
Some really old GDB releases did have gdbserver's configure
script w/o execution permissions, so there was a need in the fix.

As per Yann most likely it could have been true for GDB versions in
between v5.3 & 6.6. Moreover it could have been fixed on re-release
of GDB tarballs done in 2011, see [1].

And given we no longer support such old GDB versions in CT-NG
(as of today we have 6.8 - 9.2, moreover it's not clear which of
6.8-7.x versions are still being actively used) we'll revert that old hack
for now in a hope that it won't hurt anybody.

Though if somebody sees that problem again
we'll be able to revert this again ;)

[1] https://sourceware.org/legacy-ml/gdb/2011-09/msg00002.html

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2021-04-15 16:26:05 +03:00
Kumar Gala
934c971a2a newlib-nano: Add newlib 4.1.0 support
Add symlink to newlib-4.1.0 package details for newlib-nano/4.1.0

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-04-15 01:06:53 -05:00
Chris Packham
d95d0497db ltrace: Add patch to fix compile error for mips
Newer versions of GCC complain:

  plt.c: In function 'arch_elf_add_plt_entry':
  plt.c:359:3: error: '%s' directive argument is null [-Werror=format-overflow=]
    359 |   fprintf(stderr, "%s: failed %s(%#llx): %sn", __func__,
        | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    360 |    name, addr, strerror(errno));
        |    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  cc1: all warnings being treated as errors

add a patch to avoid this error.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2021-04-14 22:11:35 +12:00
Chris Packham
f582f1c22d Merge pull request #1485 from galak/newlib-4.1.0
Update to newlib release 4.1.0
2021-04-14 20:17:11 +12:00
Kumar Gala
e7a59c419d Update to newlib release 4.1.0
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-04-14 20:15:58 +12:00
Chris Packham
854bb12d58
Merge pull request #1486 from galak/libelf-mirror
libelf: add some mirrors
2021-04-14 20:10:34 +12:00
Kumar Gala
6a899c6739 libelf: add some mirrors
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-04-13 10:54:03 -05:00
Chris Packham
77d75eb2ad
Merge pull request #1465 from dimkr/musl-1.2.2
Add musl 1.2.2
2021-04-12 20:04:39 +12:00
Dima Krasner
65fabf8eda Add musl 1.2.2
Signed-off-by: Dima Krasner <dima@dimakrasner.com>
2021-04-10 09:17:09 +03:00
Chris Packham
d6f7b8e43a
Merge pull request #1481 from galak/gcc-10-3
Update to gcc release 10.3.0
2021-04-10 11:43:12 +12:00
Chris Packham
2a4db99424
Merge pull request #1480 from cpackham/expat
packages/expat: Bump version to 2.3.0
2021-04-10 11:42:57 +12:00
Kumar Gala
cf0776ed04 Update to gcc release 10.3.0
Drop patches already in 10.3.0 that had been backported

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-04-08 12:52:38 -05:00
Chris Packham
b25b3d45ce packages/expat: Bump version to 2.3.0
Signed-off-by: Chris Packham <judge.packham@gmail.com>
2021-04-08 20:19:57 +12:00
Chris Packham
7915dd4fff
Merge pull request #1478 from IKukhta/fix_mingw
Fix depends generation with absolute paths
2021-04-08 19:37:34 +12:00
Ivan Kukhta
f347fef748 Fix depends generation under windows
Signed-off-by: Ivan Kukhta <Ivan.Kukhta@acronis.com>
2021-04-06 19:53:55 +03:00
Chris Packham
367fb985bd
Merge pull request #1468 from cpackham/strace-bump
Add strace 5.9, 5.10 and 5.11
2021-03-31 20:26:54 +13:00
Chris Packham
1627971209 Add strace 5.9, 5.10 and 5.11
Signed-off-by: Chris Packham <judge.packham@gmail.com>
2021-03-30 12:58:47 +13:00
Chris Packham
3fa241a4e1 build: debug: strace: Add -D__USE_MISC to target CFLAGS
Similar to commit ca45a8f9 ("Add -D__GLIBC__ to target CFLAGS") newer
versions of strace bundle the kernel headers which cause build errors
such as:

[ALL  ]    In file included from /home/x-tool/.build/arm-unknown-linux-musleabi/src/strace/bundled/linux/include/uapi/linux/in6.h:26,
[ALL  ]                     from /home/x-tool/.build/arm-unknown-linux-musleabi/src/strace/bundled/linux/include/uapi/linux/if_bridge.h:19,
[ALL  ]                     from /home/x-tool/.build/arm-unknown-linux-musleabi/src/strace/src/rtnl_mdb.c:16:
[ERROR] /home/x-tool/.build/arm-unknown-linux-musleabi/src/strace/bundled/linux/include/uapi/linux/libc-compat.h:109: error: "__UAPI_DEF_IN6_ADDR_ALT" redefined [-Werror]
[ALL  ]      109 | #define __UAPI_DEF_IN6_ADDR_ALT  1
[ALL  ]          |
[ALL  ]    In file included from /home/x-tool/.build/arm-unknown-linux-musleabi/src/strace/src/rtnl_mdb.c:15:
[ALL  ] /home/x-tool/x-tools/arm-unknown-linux-musleabi/arm-unknown-linux-musleabi/sysroot/usr/include/netinet/in.h:401: note: this is the location of the previous definition
[ALL  ]      401 | #define __UAPI_DEF_IN6_ADDR_ALT 0
[ALL  ]          |
[ALL  ]    cc1: all warnings being treated as errors

By defining __USE_MISC we get __UAPI_DEF_IN6_ADDR_ALT defined in a
compatible manner.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2021-03-30 12:58:47 +13:00
Chris Packham
52eeb3b433
Merge pull request #1469 from cpackham/linux-version-bump
linux: Add new version and bump LTS
2021-03-29 20:09:49 +13:00
Chris Packham
a92b22e4c7 linux: Add new version and bump LTS
Add 5.11.6
Bump 4.4.251 -> 4.4.261
Bump 4.9.251 -> 4.9.261
Bump 4.14.215 -> 4.14.225
Bump 4.19.167 -> 4.19.180
Bump 5.4.89 -> 5.4.105
Bump 5.10.7 -> 5.10.23

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2021-03-26 09:46:36 +13:00
Chris Packham
cae0e72815
Merge pull request #1475 from cpackham/ci-sh-unknown-elf
CI: build sh-unknown-elf instead of sh-multilib-linux-gnu
2021-03-26 09:45:52 +13:00
Chris Packham
0630e41d69 CI: build sh-unknown-elf instead of sh-multilib-linux-gnu
sh-multilib-linux-gnu ends up building 8 different libcs. This seems to
be problematic for the github hosted runners as it appears to run them
out of disk space (anecdotally this seems to have gotten worse with the
switch from ubuntu-18.04 to ubuntu-20.04).

Build sh-unknown-elf instead to make sure we cover of the sh
architecture to some degree.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2021-03-25 16:16:25 +13:00
Chris Packham
4989e53336 Merge branches 'gcc10_shift_numbering' and 'gcc10_fno-rtti' 2021-03-24 21:31:25 +13:00
Anton Maklakov
1d8899af27 gcc: just shift numbering in patch names 2021-03-23 10:43:06 +07:00
Anton Maklakov
007277d3cf gcc: Fix bootstrap with -fno-rtti 2021-03-23 10:42:40 +07:00
Chris Packham
6729a76d0c
Merge pull request #1471 from IKukhta/feature/manual_GCC_LIBSSP_option
Extend CC_GCC_LIBSSP with manual state
2021-03-18 15:45:38 +13:00
Chris Packham
572ebc6b7d
Merge pull request #1470 from antmak/patch-1
Make `ct-ng oldconfig` work again after kconfig updating
2021-03-18 15:18:27 +13:00
antmak
e537c2d81f
Make ct-ng oldconfig work again after kconfig updating 2021-03-17 17:58:04 +07:00
Ivan Kukhta
8b4373d4ee Extend CC_GCC_LIBSSP with manual state
Signed-off-by: Ivan Kukhta <Ivan.Kukhta@acronis.com>
2021-03-17 13:50:45 +03:00
Chris Packham
2d4a8cf95e
Merge pull request #1466 from cpackham/ci-musl
CI: add arm-unknown-linux-musleabi configuration
2021-03-11 13:29:34 +13:00
Chris Packham
d2adb0b805 CI: add arm-unknown-linux-musleabi configuration
Add a configuration that includes musl libc.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2021-03-09 21:03:23 +13:00
Chris Packham
79fcfa17cb
Merge pull request #1459 from foss-for-synopsys-dwc-arc-processors/abrodkin-newlib-nano-symlinks
newlib-nano: Create symlinks for nano-suffixed libs
2021-02-23 20:18:06 +13:00
Alexey Brodkin
5171b3033a newlib-nano: Create symlinks for nano-suffixed libs
If existing board's .specs are used for linking of a user's application,
then instead of normally used libs like libc.a & libstdc++.a might be
requested their "nano"-suffixed siblings: libc_nano.a, libstdc++_nano etc.

That way:
----------------------------->8---------------------------
%rename link_gcc_c_sequence	myboard_link_gcc_c_sequence

*myboard_libc:
%{!specs=nano.specs:-lc} %{specs=nano.specs:-lc_nano}

*link_gcc_c_sequence:
%(myboard_link_gcc_c_sequence) --start-group %G %(myboard_libc) --end-group
----------------------------->8---------------------------

Our companion newlib-nano libs are all built optimized for size, so we'd like
to use them for linking. But given linker will see "-lc_nano -lstdc++_nano"
on its command line non-suffixed libs will be ignored.

To solve it we create those "_nano"-suffixed libraries as simple symlinks to
existing libs..

Fixes https://github.com/crosstool-ng/crosstool-ng/issues/1458.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2021-02-19 19:25:12 +03:00
Chris Packham
0e0fd3cf18
Merge pull request #1456 from foss-for-synopsys-dwc-arc-processors/abrodkin-ci-arc-add-elf32-and-glibc
CI: Add miltilibbed Elf32 & glibc configs for ARC
2021-02-17 19:36:59 +13:00
Alexey Brodkin
4cbc768747 CI: Add miltilibbed Elf32 & glibc configs for ARC
As of today baremetal (AKA "Elf32") & Linux glibc toolchains are even
more important than Linux uClibc one for ARC, so adding them.

We exclude ARC Linux toolchains from Mac buils as it seem to not make
much sense and anyway glibc build for ARC700 fails,
see https://github.com/crosstool-ng/crosstool-ng/pull/1456#issuecomment-779150246

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2021-02-16 22:17:25 +03:00
Chris Packham
40af982ad1
Merge pull request #1457 from foss-for-synopsys-dwc-arc-processors/abrodkin-glibc-arc700
glibc: Add ARC700 support to v2.32 & 2.33
2021-02-15 19:40:44 +13:00
Alexey Brodkin
21f0bc13fb glibc: Add ARC700 support to v2.32 & v2.33
As of today ARCompact (AKA "ARCv1 ISA") processors (mostly those are ARC770)
are not officially supported by upstream glibc as it adds quite some burden
on release ans support of yet another "architecture" port.

But given on ABI and ISA front ARCompact is very close to ARCv2 we may
easily retrofit its support off-the-tree, which we do here.

Also given amount of changes we need to apply there's a hope it will be easy
and straight-forward to apply the same to later versions of glibc.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2021-02-14 11:13:02 +03:00
Chris Packham
8d30e8fd14
Merge pull request #1455 from egtvedt/add-binutils-2.36.1-and-glibc-2.33
Add binutils 2.36.1 and glibc 2.33
2021-02-14 15:56:42 +13:00
Hans-Christian Noren Egtvedt
acd3df9fd1 git: ignore toplevel created include/ directory
The kconfig update has pulled in a change creating a top level include/
directory, ignore this from git perspective to avoid mis-committing.

Signed-off-by: Hans-Christian Noren Egtvedt <hegtvedt@cisco.com>
2021-02-12 12:30:19 +01:00
Hans-Christian Noren Egtvedt
ae40b99f40 kconfig: ignore generated files to avoid mis-committing
Signed-off-by: Hans-Christian Noren Egtvedt <hegtvedt@cisco.com>
2021-02-12 12:30:10 +01:00
Hans-Christian Noren Egtvedt
b8001d14f2 glibc: add version 2.33
Forward ported all local patches from previous glibc release 2.32, they
applied cleanly.

Signed-off-by: Hans-Christian Noren Egtvedt <hegtvedt@cisco.com>
2021-02-12 12:29:24 +01:00
Hans-Christian Noren Egtvedt
edaec2817e binutils: add version 2.36.1
Forward ported patches from binutils 2.35.1, refreshed to match current
sources.

Patch 0008-poison-system-directories.patch did not apply clean and had
minor adjustments to fit new binutils 2.36.1 release.

Dropped the following patches as they have been applied upstream:
- 0009-Import-patch-from-mainline-to-fix-decoding-DWARF-inf.patch
- 0010-arm-Fix-the-wrong-error-message-string-for-mve-vldr-.patch

Signed-off-by: Hans-Christian Noren Egtvedt <hegtvedt@cisco.com>
2021-02-12 11:54:11 +01:00
Chris Packham
5b0e0127e1
Merge pull request #1430 from cpackham/kconfig-update
Kconfig update
2021-02-08 20:49:36 +13:00
Chris Packham
d0e328c8ad kconfig: Sync with upstream v5.9
19b835a5db93 kconfig: qconf: fix incomplete type 'struct gstr' warning
163e0c27fead kconfig: remove redundant assignment prompt = prompt
d41809ff7af9 kconfig: add 'static' to some file-local data
f70f74d15ca8 kconfig: remove '---help---' support

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2021-02-02 22:01:21 +13:00
Chris Packham
5263bf8339 kconfig: Sync with upstream v5.8
09d5873e4d1f kconfig: allow only 'config', 'comment', and 'if' inside 'choice'
644a4b6cecc2 kconfig: do not assign a variable in the return statement
cfc6eea9f6af kconfig: do not use OR-assignment for zero-cleared structure

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2021-02-02 22:01:21 +13:00
Chris Packham
30bffa96b2 don't nest choices
New versions of Kconfig won't allow choices to be nested. Update the
kconfig template accordingly.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2021-02-02 21:58:52 +13:00
Chris Packham
7f6fe28ce0 bootstrap: Escape mirrors
When we have mirrors set to $(CT_Mirror foo bar) we need some extra
escaping so that they get interpreted correctly by kconfig.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2021-02-02 20:06:32 +13:00