aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #1908 from keith-packard/gcc-getenv-defaultBryan Hundven2023-03-091-0/+102
|\ | | | | packages/gcc: Add gcc patch to allow getenv default values
| * packages/gcc: Add gcc patch to allow getenv default valuesKeith Packard2023-02-281-0/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch, submitted upstream but not (yet?) accepted, adds a third parameter to the specs file 'getenv' function that provides a value for when the environment variable is not set, instead of having gcc fail. This seemed like the safest way to provide a mechanism for getting the installed location of the toolchain from inside a specs file as, when not installed in the built-in location, gcc already sets the GCC_EXEC_PREFIX environment variable to a well defined location within that directory hierarchy, but when installed in the location specified at compile time, gcc does not. Providing a default value that matches the compile-time location then allows the specs file to compute paths relative to the current GCC installation location, whereever it is installed. Signed-off-by: Keith Packard <keithp@keithp.com>
* | linux: Add 6.2 bump LTSChris Packham2023-03-0818-48/+48
| | | | | | | | | | | | | | | | | | | | | | | | Add 6.2 Update 6.1 -> 6.1.13 Update 5.15.82 -> 5.15.95 Update 5.10.158 -> 5.10.169 Update 5.4.226 -> 5.4.232 Update 4.19.268 -> 4.19.273 Update 4.14.301 -> 4.14.306 Signed-off-by: Chris Packham <judge.packham@gmail.com>
* | binutils: Add binutils 2.40Chris Packham2023-03-0811-0/+628
| | | | | | | | | | | | https://sourceware.org/pipermail/binutils/2023-January/125671.html Signed-off-by: Chris Packham <judge.packham@gmail.com>
* | elf2flt: Add patch for binutils 2.40Chris Packham2023-03-081-0/+142
| | | | | | | | | | | | | | Add a patch to deal with the removal of BFD_VMA_FMT from bfd.h in binutils-2.40. Signed-off-by: Chris Packham <judge.packham@gmail.com>
* | samples: Use picolibc as main libc in the picolibc sample configJoakim Nohlgård2023-03-081-3/+2
| | | | | | | | Signed-off-by: Joakim Nohlgård <joakim@nohlgard.se>
* | picolibc: Add configuration to select picolibc as the system libcJoakim Nohlgård2023-03-084-183/+251
| | | | | | | | | | | | | | This moves the picolibc configuration values under C-library -> picolibc so that they will be more easily discovered. Signed-off-by: Joakim Nohlgård <joakim@nohlgard.se>
* | gcc: Add --disable-wchar_t and --enable-stdio=pure for picolibcKeith Packard2023-03-081-0/+12
| | | | | | | | | | | | | | | | | | Picolibc needs two additional gcc build options so that libstdc++ works correctly. When building picolibc as a companion library, those are added in do_cc_libstdcxx_picolibc, but when built with picolibc as the main C libary, those need to be added in the main GCC build. Signed-off-by: Keith Packard <keithp@keithp.com>
* | packages/gcc/12.2.0: Add picolibc patchesKeith Packard2023-03-085-0/+427
| | | | | | | | | | | | These patches allow picolibc to act as the system C library within gcc. Signed-off-by: Keith Packard <keithp@keithp.com>
* | picolibc: Use ${CT_CC} for compilerJoakim Nohlgård2023-03-081-1/+1
| | | | | | | | Signed-off-by: Joakim Nohlgård <joakim@nohlgard.se>
* | Add missing dependencies for Debian buildBryan Hundven2023-03-011-1/+2
|/ | | | | | | | Add unzip and python3-dev Fixes #1905 Signed-off-by: Bryan Hundven <bryanhundven@skytap.com>
* gcc: Don't set --enable-default-pie by defaultKeith Packard2023-02-271-1/+1
| | | | | | | This changes how existing crosstool-ng setups work, causing many of the bare-metal ones to fail. Signed-off-by: Keith Packard <keithp@keithp.com>
* gdb: Add gdb 13.1Chris Packham2023-02-254-1/+15
| | | | | | | https://sourceware.org/pipermail/gdb-announce/2023/000134.html https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob_plain;f=gdb/NEWS;hb=gdb-13.1-release Signed-off-by: Chris Packham <judge.packham@gmail.com>
* zstd: Run through ./maintainer/manage-packages.shChris Packham2023-02-131-4/+4
| | | | | | | | There was a typo in the original commit which used "zlib" instead of "zstd". The checksums remain the same. Fixes: 4cba2994 ("Add zstd to the companion libs") Signed-off-by: Chris Packham <judge.packham@gmail.com>
* CI: Use ${{ matrix.sample }} when uploading artifactsChris Packham2023-02-131-2/+2
| | | | | | | Update some hard coded names to use ${{ matrix.sample }} instead. This will allow us to upload other artifacts in the future. Signed-off-by: Chris Packham <judge.packham@gmail.com>
* uClibc-ng: Add uClibc-ng 1.0.42Chris Packham2023-02-082-0/+16
| | | | | | https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/log/?h=v1.0.42 Signed-off-by: Chris Packham <judge.packham@gmail.com>
* glibc: drop caddr_t patchChris Packham2023-02-081-17/+0
| | | | | | | | | | | | | | | | | | | | | | We've been carrying around this patch for ages. It was first added in commit 42e908c4 ("libc/glibc: workaround for autoconf'ed define of caddr_t") and ported to glibc-2.13 in commit de6b6733 ("libc/glibc: add patch to avoid caddr_t redefinition"). It has been ported to every new version of glibc ever since. It's not immediately obvious that the original problem still affects modern glibc versions. If there is a problem it hasn't been reported to the glibc maintainers in the 12 years since it was first seen. It could be that ct-ng is unique in the way we support canadian builds or that there was another fix for the same problem applied upstream sometime in the last 12 years. Drop the patch now to stop in being propagated blindly to new glibc versions. Doing it as a separate commit (as opposed to dropping it in the previous commit which bumped the version) allows the decision to be documented and if this turns out to be wrong it can be easily reverted. Signed-off-by: Chris Packham <judge.packham@gmail.com>
* glibc: Add glibc-2.37Chris Packham2023-02-084-0/+102
| | | | | | | | | https://sourceware.org/pipermail/libc-announce/2023/000035.html Add the new version carry through 2 patches that are not upstream. Fixes #1885 Signed-off-by: Chris Packham <judge.packham@gmail.com>
* Add zstd to the companion libsQuentin Boswank2023-02-088-2/+124
| | | | | | | | Add zstd to the companion libs witch allows to use lto zstd compression in a canadian or cross-native enviroment Signed-off-by: QBos07 <62326551+QBos07@users.noreply.github.com> Signed-off-by: Quentin Boswank <62326551+QBos07@users.noreply.github.com>
* maintainer/manage-packages.sh: Fix typomid-kid2023-02-011-1/+1
| | | | Signed-off-by: mid-kid <esteve.varela@gmail.com>
* Update mingw-w64 to v10.0.0mid-kid2023-02-013-0/+38
| | | | Signed-off-by: mid-kid <esteve.varela@gmail.com>
* Merge pull request #1763 from cpackham/tarballBryan Hundven2023-01-162-0/+43
|\ | | | | Add option to build toolchain tarball
| * Add option to build toolchain tarballChris Packham2022-06-152-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add TARBALL_RESULT option that will produce a tarball of the final toolchain to make it easier to deploy the toolchain to other machines. The implementation uses `find | sort` instead of `tar --sort` because this was introduced in GNU Tar v1.28, which is not available in some LTS Linux distributions. This is a variation of the command recommended here: https://wiki.debian.org/ReproducibleBuilds/FileOrderInTarballs Closes #1262 Signed-off-by: Chris Packham <judge.packham@gmail.com>
* | Merge pull request #1875 from keith-packard/picolibc-1.8Bryan Hundven2023-01-163-1/+5
|\ \ | | | | | | Update picolibc to 1.8
| * | Update picolibc to 1.8Keith Packard2022-12-233-1/+5
| | | | | | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* | | glibc: Add fix for GNU make 4.4 compatibility to more versionsChris Packham2023-01-0910-0/+1050
| | | | | | | | | | | | | | | | | | | | | | | | Backport the upstream fix for GNU make 4.4 compatibility to more versions of glibc. Fixes #1878 Signed-off-by: Chris Packham <judge.packham@gmail.com>
* | | Add Oracle ol8u7 product to crosstool-ngCupertino Miranda2022-12-1814-4/+1099
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds support for the following Oracle products, targeting Oracle Linux 8.7: Binutils 2.30-117.0.1 GCC 8.5.0-15.0.2 glibc 2.28-211.1.0.1 UEK5/u4 4.14.35-2025.400.8 Sample configuration files are provided for the following triplets: aarch64-ol8u7-linux-gnu x86_64-ol8u7-linux-gnu i686-ol8u7-linux-gnu Signed-off-by: Cupertino Miranda <cupertino.miranda@oracle.com>
* | | Enable support for building libgccjitMarc Poulhiès2022-12-189-5/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libgccjit is still under development and, despite its name, may also be used for ahead-of-time compilation. Documentation can be found on the gcc website: https://gcc.gnu.org/onlinedocs/jit/internals/index.html https://gcc.gnu.org/wiki/JIT With this change it's possible to enable the building of the libgccjit. It's enabled as a language (with --enable-languages=jit) even if not a language frontend at all. The main changes are related to the requirement of having everything host side built as Position Independent Code (PIC) with --enable-host-shared. GCC has the needed logic for building its dependencies (mpc, gmp, mpfr, ...) correctly when built "in-tree", which is not the case with crosstool-ng (see https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=05048fc29f0) Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
* | | linux: Add Linux 6.1 and bump LTSChris Packham2022-12-1423-56/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add Linux 6.1 Update 6.0.2 -> 6.0.12 Update 5.15.74 -> 5.15.82 Update 5.10.148 -> 5.10.158 Update 5.4.218 -> 5.4.226 Update 4.19.261 -> 4.19.268 Update 4.14.295 -> 4.14.301 Signed-off-by: Chris Packham <judge.packham@gmail.com>
* | | strace: Add 6.1 releaseChris Packham2022-12-143-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | https://lists.strace.io/pipermail/strace-devel/2022-December/011128.html Add strace 6.1. Remove 6.0. Signed-off-by: Chris Packham <judge.packham@gmail.com>
* | | samples: Cosmetic improvements to powerpc-e500v2-linux-gnuspeChris Packham2022-12-141-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | --enable-e500_double was valid but strange (the correct form is --enable-e500-double). -Wa,-me500x2 was also misleading, it is equivalent to Wa,-me500. --enable-e500x2 --with-e500x2 did nothing as they aren't used by the binutils configure script. Finally passing -mfloat-gprs=double in CFLAGS is unnecessary because this is the default when using -mcpu=8548. Correct these in the sample config. Fixes #1867 Signed-off-by: Chris Packham <judge.packham@gmail.com>
* | | Add BPF architecture target supportCupertino Miranda2022-12-144-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | BPF is a virtual machine and associated ISA that resides in the Linux kernel. Initially intended for user-level packet capture and filtering, BPF is nowadays generalized to serve as a general-purpose infrastructure also for non-networking purposes. Signed-off-by: Cupertino Miranda <cupertino.miranda@oracle.com>
* | | samples: Add x86_64-pc-linux-gnu,arm-picolibc-eabi Canadian cross sample configJoakim Nohlgård2022-12-112-0/+15
| | | | | | | | | | | | Signed-off-by: Joakim Nohlgård <joakim@nohlgard.se>
* | | scripts/gcc: Add extra include dir with -idirafterJoakim Nohlgård2022-12-111-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | Fixes Canadian cross builds failing with missing include file 'stdio.h' when building libstdc++ for a companion libc with system libc set to LIBC_NONE. Signed-off-by: Joakim Nohlgård <joakim@nohlgard.se>
* | | scripts/gcc: align test conditionals with rest of repoJoakim Nohlgård2022-12-111-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Most scripts in crosstool-ng use [ -z "${string}" ] to check for empty variables. Deleted one duplicate declaration of the local exec_prefix Signed-off-by: Joakim Nohlgård <joakim@nohlgard.se>
* | | gcc: Disable CC_GCC_ENABLE_DEFAULT_PIE on RISC-V bare metal buildsJoakim Nohlgård2022-12-111-0/+1
| | | | | | | | | | | | | | | | | | -pie is not supported on riscv*-elf-ld Signed-off-by: Joakim Nohlgård <joakim@nohlgard.se>
* | | make: Add GNU Make 4.4Chris Packham2022-12-114-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | https://lists.gnu.org/archive/html/info-gnu/2022-10/msg00008.html Add GNU Make 4.4, mark 4.2.1 and 4.3 as obsolete. Signed-off-by: Chris Packham <judge.packham@gmail.com>
* | | strace: Add strace 6.0Chris Packham2022-12-113-4/+4
| | | | | | | | | | | | | | | | | | https://lists.strace.io/pipermail/strace-devel/2022-October/011125.html Signed-off-by: Chris Packham <judge.packham@gmail.com>
* | | Merge pull request #1854 from GrigorenkoPV/masterBryan Hundven2022-12-101-0/+3
|\ \ \ | | | | | | | | Fix `./configure --with-ncurses` not working on Arch Linux
| * | | Fix `--with-ncurses` not working on Arch LinuxPavel Grigorenko2022-11-211-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reverts the changes introduced to `m4/ax_with_curses_extra.m4` in 59b664806c55dc1e5878448be2536fe110944f62, which seem to make `cofigure` look only for `ncursesw/panel.h` and not consider `panel.h` as a candidate, thus causing `./configure` to fail with "error: panel library not found" on systems (such as Arch Linux) where ncurses headers are not put under the `ncursesw/` directory. Signed-off-by: Pavel Grigorenko <grigorenkopv@ya.ru>
* | | | newlib: Change ftp mirror link to https oneYuriy Kolerov2022-12-042-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some corporate VPN services block ftp connections. It leads to an error while building a toolchain with packages with ftp mirrors. It's possible to safely use https instead of ftp. Signed-off-by: Yuriy Kolerov <ykolerov@synopsys.com>
* | | | Detect if a package src_dir is missingJoakim Nohlgård2022-12-041-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a user deletes the package directory under .build/src/ but fails to remove the hidden stamp files the CT_DoExtractPatch function will detect this, delete the stamps and perform the full extract-and-patch step. Signed-off-by: Joakim Nohlgård <joakim@nohlgard.se>
* | | | CI: Disable python support in GDB on macosChris Packham2022-12-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There appears to be a problem with GDB+Python+MacOS Error: [ERROR] configure: error: no usable python found at /usr/local/bin/python3 Error: make[2]: *** [Makefile:11454: configure-gdb] Error 1 Error: make[1]: *** [Makefile:1030: all] Error 2 For now disable CT_GDB_CROSS_PYTHON on macos. Signed-off-by: Chris Packham <judge.packham@gmail.com>
* | | | glibc: Add fix for GNU make 4.4 compatibility issueChris Packham2022-12-041-0/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add an upstream patch that resolves a compatibility issue with GNU make 4.4. Fixes #1858 Signed-off-by: Chris Packham <judge.packham@gmail.com>
* | | | expat: Update to expat-2.5.0Chris Friedt2022-11-283-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - expat-2.4.1 is not available on sf.net due to vulnerabilities - mark expat-2.4.1 as obsolte - add expat-2.5.0 version info Signed-off-by: Chris Friedt <cfriedt@meta.com>
* | | | packages: Update picolibc to 1.7.9Joakim Nohlgård2022-11-223-4/+4
|/ / / | | | | | | | | | Signed-off-by: Joakim Nohlgård <joakim@nohlgard.se>
* | | Backport fixes for glibc and gcc to fix interactions with kernel headersBryan Hundven2022-11-096-0/+687
| | | | | | | | | | | | | | | Reported-by: milkylainen (IRC) Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* | | Correct casing for Ada langMarc Poulhiès2022-11-091-1/+1
| | | | | | | | | | | | | | | | | | Ada is a name, not an acronym, so it doesn't need to be upcased. Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
* | | Bump ubuntu to ubuntu-22.04Bryan Hundven2022-10-272-10/+10
| | | | | | | | | | | | Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
* | | Update config.{guess,sub}Bryan Hundven2022-10-272-8/+31
| | | | | | | | | | | | Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>