aboutsummaryrefslogtreecommitdiff
path: root/samples
Commit message (Collapse)AuthorAgeFilesLines
* crosstool-ng update to ol9-{u3,u4,u5} and ol8-{u9, u10} for aarch64 and x86_64HEADmasterBruce McCulloch2025-01-2820-0/+290
| | | | Signed-off-by: Bruce McCulloch <bruce.mcculloch@oracle.com>
* samples: Disable gdb in or1k-unknown-linux-muslcrosstool-ng-1.27.0-rc1Chris Packham2025-01-271-2/+0
| | | | | | | | | | | | | | MUSL's or1k support lacks definitions for elf_gregset_t which leads to failures like [ERROR] sysroot/usr/include/sys/procfs.h:29:9: error: 'elf_gregset_t' does not name a type; did you mean 'gregset_t'? [ERROR] sysroot/usr/include/sys/procfs.h:54:9: error: 'elf_gregset_t' does not name a type; did you mean 'gregset_t'? [ERROR] sysroot/usr/include/sys/procfs.h:55:9: error: 'elf_fpregset_t' does not name a type Disable GDB support in the or1k-unknown-linux-musl config. Fixes #2266 Signed-off-by: Chris Packham <judge.packham@gmail.com>
* samples: Update ol7u9 configsChris Packham2025-01-226-27/+17
| | | | | | | | Update the ol7u9 configs to use versions of isl and cloog that work with the version of GCC that oracle uses. Add a note that these configs are obsolete. They will be dropped after the next release. Signed-off-by: Chris Packham <judge.packham@gmail.com>
* bpf: Use released binutils/gccChris Packham2025-01-081-7/+0
| | | | | | | | | | When the bpf-unknown-none sample was added the target support was not in a released version of binutils or gcc. The support has been in a few versions of each of these for a while now. Update the sample to use released versions instead of potentially unstable versions from upstream. Signed-off-by: Chris Packham <judge.packham@gmail.com>
* c6x: pin to GCC 13Chris Packham2025-01-081-0/+1
| | | | | | | | The custom uclibc has compile errors with GCC 14. Ignoring that even a bare metal config fails to build (assembler errors in libgcc) with GCC 14. For now pin the sample config to GCC 13 since that seems to work. Signed-off-by: Chris Packham <judge.packham@gmail.com>
* nios2: Require GCC older than 15Chris Packham2025-01-073-0/+6
| | | | | | | | As per https://gcc.gnu.org/gcc-14/changes.html nios2 will be removed in GCC 15. Even in GCC 14 we need to pass --enable-obsolete to allow this target. Update our samples accordingly. Signed-off-by: Chris Packham <judge.packham@gmail.com>
* lm32: Initial LatticeMicro32 supportJiaxun Yang2025-01-072-0/+9
| | | | | | | | This target is in GCC/binutils for a while. It's baremetal only without upstream Linux support. Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
* openrisc: Initial OpenRISC 1000 supportJiaxun Yang2025-01-076-0/+34
| | | | | | | | This target is in GCC/binutils/Linux/Glibc/musl for a while. Baremetal/glibc/musl toolchains are all build tested. Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
* initial support to build tricore gccjferreir2024-11-102-0/+32
| | | | | | | | | | Add support for Tricore architecture. TriCore architecture is optimized for real-time embedded systems. More information can be found at AURIX™ TC3xx Architecture vol 1 https://www.infineon.com/dgdl/Infineon-AURIX_TC3xx_Architecture_vol1-UserManual-v01_00-EN.pdf?fileId=5546d46276fb756a01771bc4c2e33bdd Signed-off-by: jferreir <jesus.ferreira@gmail.com>
* RISC-V: Remove EXPERIMENTAL tagAlexey Brodkin2024-09-096-6/+0
| | | | | | | | | | | It's been a while since RISC-V support was added to CT-NG in 2017. Since then RISC-V support was integrated in all the key toolchain components upstream and now are proven to be in a very good state. Thus it makes no sense to keep this architecture "hidden" in experimental options, so we promote RISC-V architecture in CT-NG. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
* Add support for newer Oracle Linux toolchain versionsCupertino Miranda2024-06-2612-0/+173
| | | | | | This commit adds support for ol8-u8 and ol9-u2 toolchain versions. Signed-off-by: Cupertino Miranda <cupertino.miranda@oracle.com>
* musl: Mark not EXPERIMENTALChris Packham2024-05-244-2/+14
| | | | | | | | | | | | | Musl was marked experimental in commit 08d91d41 ("musl: config is broken for !EXPERIMENTAL"). Most of the reasoning for that change no longer applies and as it's been about 8 years it's time to let musl loose on the world. Drop the `depends on EXPERIMENTAL` and update the sample configs for aarch64 and x86_64. For powerpc64 the ABI needs to be elfv2. Enforce this via the powerpc config. Add a sample configuration for powerpc-unknown-linux-musl. Signed-off-by: Chris Packham <judge.packham@gmail.com>
* loongarch64-linux-musl: add sample configWANG Rui2024-03-112-0/+15
| | | | | | Add sample config for target loongarch64-unknown-linux-musl. Signed-off-by: WANG Rui <wangrui@loongson.cn>
* Add aarch64-unknown-linux-musl sampleChris Packham2024-03-062-0/+17
| | | | | | | Adapted from the aarch64-unknown-linux-gnu sample enabling CT_EXPERIMENTAL and selecting CT_LIBC_MUSL. Signed-off-by: Chris Packham <judge.packham@gmail.com>
* Remove Oracle UEK linux dependencies.Cupertino Miranda2024-02-189-9/+9
| | | | | | | | | This patch removes any dependency to the Oracle UEK Linux sources since it can be easily replaced by a standard kernel explicitly pointing to the exact kernel version, as the toolchain building only requires the kernel headers. Signed-off-by: Cupertino Miranda <cupertino.miranda@oracle.com>
* CI: Add sample for hppa-unknown-linux-gnuChris Packham2023-11-252-0/+7
| | | | | | Add sample for hppa/parisc and include in CI builds. Signed-off-by: Chris Packham <judge.packham@gmail.com>
* m68k: Support MMUChris Packham2023-09-243-0/+7
| | | | | | | | | | Some m68k variants do have a MMU so the architecture can set ARCH_USE_MMU. That means we can have a m68k-unknown-linux-gnu configuration and that m68k-unknown-uclinux-uclibc needs to select LIBC_UCLIBC_NG since it's no longer the default. Fixes #2040 Signed-off-by: Chris Packham <judge.packham@gmail.com>
* moxiebox: Use newlib 4.2crosstool-ng-1.26.0Chris Packham2023-09-241-0/+1
| | | | | | | | | | | | | | moxie-unknown-moxiebox has problems building with newlib 4.3 ld: /lib/libc.a(libc_a-closer.o): in function `_close_r': newlib/libc/reent/closer.c:47: undefined reference to `_close' There are some Makefile changes in newlib 4.3 and it's likely previously this config was picking up `_close` from libsim.a. For now just pin the newlib version back to 4.2 in the moxie-unknown-moxiebox config. Resolves #2036 Signed-off-by: Chris Packham <judge.packham@gmail.com>
* xtensa-fsf-elf: Unset NEWLIB_GLOBAL_ATEXITChris Packham2023-09-071-0/+1
| | | | | | | | | NEWLIB_GLOBAL_ATEXIT needs to be set to y for modern newlib versions. Commit 227d99d7 ("newlib: add 4.3.0.20230120") ensured this was done. But xtensa-fsf-elf uses a newlib version from before this so it needs to explicitly opt out. Signed-off-by: Chris Packham <judge.packham@gmail.com>
* samples: riscv32-picolibc-elf: Drop invalid configChris Packham2023-09-011-3/+2
| | | | | | | | | | | | | | | | CC_CC_GCC_ENABLE_DEFAULT_PIE=n is invalid Kconfig syntax for an option that was intentionally disabled the saved config would be '# CC_CC_GCC_ENABLE_DEFAULT_PIE is not set' but the DEFAULT_PIE option isn't selectable for RISCV && BARE_METAL so the correct thing to do is just remove the config. This also picks up a change regenerating the saved sample due to changes in the Kconfig ordering. Fixes #2019 Signed-off-by: Chris Packham <judge.packham@gmail.com>
* Properly build multilib bare-metal RISC-VKirill K. Smirnov2023-07-142-0/+13
| | | | | | | | | To build multilib RISC-V toolchain one should use --with-multilib-generator option instead of --with-multilib-list. Add corresponding example configuration file. Signed-off-by: Kirill K. Smirnov <kirill.k.smirnov@gmail.com>
* samples: Add arm-picolibc-defaultChris Packham2023-06-132-0/+16
| | | | | | | | | The rmprofile with picolibc produces many multilib combinations which causes the free tier github action runners to run out of disk space. Add a picolibc sample that only enables the default multilib so we can still get some coverage for picolibc in the CI builds. Signed-off-by: Chris Packham <judge.packham@gmail.com>
* risc-v: Provide sample for picolibc-only toolchainKeith Packard2023-04-192-0/+19
| | | | | | | This builds a multilib toolchain using picolibc. The default target is rv32imac Signed-off-by: Keith Packard <keithp@keithp.com>
* arm-picolibc-eabi: Specify default linker memory layoutKeith Packard2023-04-191-0/+4
| | | | | | | | | Picolibc now lets you configure the default memory layout used in the default linker script. Add values to the sample arm-picolibc-eabi configuration that sets values appropriate for typical cortex m processors run under qemu. Signed-off-by: Keith Packard <keithp@keithp.com>
* samples: Rename canadian config for picolibcChris Packham2023-03-142-1/+1
| | | | | | | | | We don't have a x86_64-pc-linux-gnu sample but we do have a x86_64-unknown-linux-gnu. Rename the picolibc canadian config accordingly. Fixes: #1909 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>
* Add Oracle ol8u7 product to crosstool-ngCupertino Miranda2022-12-189-0/+87
| | | | | | | | | | | | | | | | | | 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>
* 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-142-0/+14
| | | | | | | | | 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>
* samples: Disable CC_GCC_ENABLE_DEFAULT_PIE with older glibcChris Packham2022-09-263-0/+3
| | | | | | | | | | glibc versions prior to 2.23 don't compile successfully with --enable-default-pie. While it would be nice to automatically prevent this from being selectable the simplest thing is to update the sample configs that use the older glibc versions to avoid the problem. Fixes #1819 Signed-off-by: Chris Packham <judge.packham@gmail.com>
* samples: Remove x86_64-centos6-linux-gnuChris Packham2022-09-262-15/+0
| | | | | | | | glibc 2.12.1 was removed in commit 6d5227b6 ("Remove obsolete glibc 2.12.1"). CentOS 6 is EoL and the configuration won't work as intended so remove it. Signed-off-by: Chris Packham <judge.packham@gmail.com>
* arm-none-eabi: Disable RWX segment warning in binutilsKeith Packard2022-08-191-0/+1
| | | | | | | | | | This warning is designed to catch likely vulnerabilities in code run under memory protection -- allowing execution from memory which is writable. However, embedded arm systems frequently require placing code in RAM, for performance or functionality reasons. Disable the warning that recent versions of binutils has added. Signed-off-by: Keith Packard <keithp@keithp.com>
* loongarch64: add sample configJiajie Chen2022-08-192-0/+15
| | | | | | | | Add sample config for target loongarch64-unknown-linux-gnu. Currently, it fails to build on macOS due to flex/bison incompatibility. Signed-off-by: Jiajie Chen <c@jia.je>
* binutils-oracle: Update source patch location for ol8Guillermo E. Martinez2022-06-283-3/+6
| | | | | | Due to a new commit oracle binutils branch an update location for patches is required. This patch disabled debug information for glibc too.
* Restore Oracle products to crosstool-ng using gcc-oracleGuillermo E. Martinez2022-06-263-3/+33
| | | | | | | | | | | | | | | This commit restore the support for the following products in Oracle Linux 7.9: Binutils 2.27-44.base.0.400 GCC 4.8.5-44.0.5 glibc 2.17-317.0.3 UEK5/u4 4.14.35-2025.400.8 Sample configurations were updated to use such versions, and be compiled in host machine using recent GCC versions. Signed-off-by: Guillermo E. Martinez <guillermo.e.martinez@oracle.com>
* Add Oracle ol8u6 product to crosstool-ngGuillermo E. Martinez2022-05-316-0/+72
| | | | | | | | | | | | | | | | | | This commit adds support for the following Oracle products, in order to target Oracle Linux 8.6: Binutils 2.30-113.0.1 GCC 8.5.0-10.0.2 glibc 2.28-189.1.0.1 UEK5/u4 4.14.35-2025.400.8 Sample configuration files are provides for the following triplets: aarch64-ol8u6-linux-gnu x86_64-ol8u6-linux-gnu i686-ol8u6-linux-gnu Signed-off-by: Guillermo E. Martinez <guillermo.e.martinez@oracle.com>
* Add sample arm-none-eabiKeith Packard2022-05-122-0/+17
| | | | | | | This is the triplet used by the Arm Embedded Toolkit as well as Debian. Signed-off-by: Keith Packard <keithp@keithp.com>
* Remove obsolete bionic/android supportChris Packham2022-05-102-14/+0
| | | | | | | | The bionic libc support was out of date and relied on downloading binaries from the internet. It was already marked as obsolete. Now that the 1.25.0 release is out it can be completely removed. Signed-off-by: Chris Packham <judge.packham@gmail.com>
* Enable posix threads in i686-w64-mingw32Chris Packham2022-04-021-0/+1
| | | | | | | | | Posix threads are enabled in the x86_64-w64-mingw32 sample having them enabled in i686-w64-mingw32 makes things consistent for these targets. Fixes #1696 Signed-off-by: Chris Packham <judge.packham@gmail.com>
* bionic: mark bionic/android-ndk as obsoleteChris Packham2022-02-231-0/+1
| | | | | | | | | | Support for bionic was dropped by GCC some time ago. There are patches for older GCC versions but those are difficult to maintain and the version of the android-ndk they support is of little use. Mark all of the existing bionic support as obsolete so it can be removed after the next release. Signed-off-by: Chris Packham <judge.packham@gmail.com>
* Turn off debugging in sample configurationAlexey Neyman2022-02-111-2/+0
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Restrict *-uclibc,* canadians to gettext 0.20Alexey Neyman2022-02-112-0/+2
| | | | | | | Newer gettext is incompatible with uClibc-NG in cross-compilation, see the comment in the code. Signed-off-by: Alexey Neyman <stilor@att.net>
* sparc-leon: restrict to GDB9Alexey Neyman2022-02-111-1/+0
| | | | | | | | | | Starting with GDB10, it requires support for std::future<> in the compiler. Such support has not been available on some architectures until GCC9 (see PR 64735). I haven't determined the exact list of affected architectures, so decided to make it a broad dependency: for GDB10+, you need GCC9+. Signed-off-by: Alexey Neyman <stilor@att.net>
* Rename moxiebox to match its tupleAlexey Neyman2022-02-112-0/+0
| | | | Signed-off-by: Alexey Neyman <stilor@att.net>
* Update tic6x sampleAlexey Neyman2022-02-112-8/+6
| | | | | | | | | Restrict kernel to 5.11 and below (support for this arch has been dropped in 5.12); rename the sample to match its name as printed by `ct-ng show-tuple` (otherwise, `make saveconfig` does not update the sample's configuration). Signed-off-by: Alexey Neyman <stilor@att.net>
* More sample config updatesAlexey Neyman2022-02-11104-150/+122
| | | | | | | | | | | | *-moxie*: DTC_VERBOSE is a wobbler, it depends on whether dtc is enabled on the host machine (if dtc is installed, DTC defaults to 'n' and hence prevents DTC_VERBOSE from appearing at all). Remove the option from config file so that its value reverts to the default. xtensa-fsf-elf: mark configuration obsolete so that it can use GDB 8.1 (it uses custom sources and needs to select the version therein) Signed-off-by: Alexey Neyman <stilor@att.net>
* Upgrade script for uClibc retirementAlexey Neyman2022-02-118-14/+14
| | | | | | | | | | | | | | | | | | Run samples through upgrade and fix accumulated breakages: *-centos6-*: After 2.12.2 retirement, the samples selected most recent glibc (2.34) which also forced kernels 3.2+. Revert to 2.12.1 and 2.6.32.71, respectively. Interestingly, 2.12.1 was marked as being used in CentOS6, but the samples selected 2.12.2. Anyway, CentOS6 is EOL now and glibc 2.12 is going to be marked obsolete, and retired soon. arc-*: Make TARGET_VENDOR match the sample's name; otherwise `ct-ng saveconfig` places the config file into a different location. Fix 'savedefconfig' which was not saving the configuration file version (CT_VCHECK was set to 'load' after CT_LoadConfig call). Signed-off-by: Alexey Neyman <stilor@att.net>
* Retire obsoleted milestonesAlexey Neyman2022-02-111-0/+0
| | | | | | | | | | | | ... and the code dependent on them, after the latest wave of obsolete package removals. This concludes the glorious history of the original uClibc (non-NG) with lots of kludges removed. There was a choice here, whether to call the resulting libc "uClibc" or "uClibc-ng". I opted in favor of giving uClibc-ng the recognition it deserves, although it had some ripple effect in the ct-ng code. Signed-off-by: Alexey Neyman <stilor@att.net>
* Remove gcc-oracle-4.8-44.0.5Alexey Neyman2022-02-113-24/+11
| | | | | | | | | | | | | GCC 4.8 and its prerequisites have been removed by 04dce680, 41d4583a and e4221734; as a result, 4.8-based version of gcc-oracle became unbuildable (no valid versions for the prerequisites). Update the samples to use 4.9.4; which however fails to build on a modern host GCC. Build fix backported to gcc-4.9 and gcc-5 versions. Fix binutils-oracle build with host GCC11. Signed-off-by: Alexey Neyman <stilor@att.net>