aboutsummaryrefslogtreecommitdiff
path: root/configure
AgeCommit message (Collapse)AuthorFilesLines
2024-08-27Merge pull request #1475 from CARV-ICS-FORTH/uclibc2024.09.032024.08.28Kito Cheng1-856/+1578
Add uClibc-ng support for NOMMU Linux builds
2024-07-17Add --enable-default-pie optionKito Cheng1-0/+22
`--enable-default-pie` is used to control the default PIE enablement for Linux GCC, which is disabled by default. NOTE: baremetal toolchain isn't affected by this option.
2024-05-11Add uClibc-ng support for NOMMU Linux buildsNick Kossifidis1-856/+1578
This adds support for building uClibc-ng toolchain so that we can play with NOMMU Linux. This is still experimental (ABI is still WiP) but it works for e.g. building busybox, and since crosstool-ng and others don't have support for it yet, let's add it here so that people can play with it. I've tested this on QEMU and real hardware (only busybox), it generates ELF (not FLAT) binaries, and in order for the FDPIC loader to work, the static-pie loader (/lib/ld-uClibc.so.0) should also be included in rootfs with busybox compiled as dynamic/pie binary. No multilib for now, but we can add it in the future if you think it would be useful. Signed-off-by: Nick Kossifidis <mick@ics.forth.gr>
2024-02-29Add support to build a host GCC for building the toolchainChristoph Müllner1-0/+17
A significant amount of users of this project are using it for toolchain development. These users need to ensure that their code is warning free before submitting it upstream. Let's support this use case by adding a configure flag '--enable-host-gcc', which does exactly that: * build a host GCC before building other components * setting PATH such that this new GCC is used to build the cross toolchain * enable -Werror for the GCC build This patch was tested on a Fedora 39 machine (GCC 13), with the following modification in a GCC source file: #if __GNUC__ == 13 #error Host compiler in use! #endif This fails when building without the new flag and does not fail when building with latest upstream/master (GCC 14 prerelease). The '--enable-werror-always' was tested with a warning that showed up recently in upstream GCC. Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
2023-09-25Merge pull request #1293 from riscv-collab/extra-multi-lib-test2023.09.26Kito Cheng1-0/+26
Add --with-extra-multilib-test option
2023-08-08Fix bug in configure.ac and regenerate configureJeremy Bennett1-25/+9
* configure: Regenerated. * configure.ac: Remove redundant AS_HELP_STRING when testing enable_debug_info; add comment to use Autoconf 2.69. Signed-off-by: Jeremy Bennett <jeremy.bennett@embecosm.com>
2023-07-11Add --with-extra-multilib-test optionKito Cheng1-0/+26
NOTE: This is toolchain developer facing feature. This allow user to add extra testing multi-lib arch, it's useful when develop and/or testing new extensions. Usage: --with-extra-multilib-test="arch-abi[;arch-abi]" e.g. linux enable enabled multilib, so default will build with follwoing configuration: lib32/ilp32;@march=rv32imac@mabi=ilp32 lib32/ilp32d;@march=rv32imafdc@mabi=ilp32d lib64/lp64;@march=rv64imac@mabi=lp64 lib64/lp64d;@march=rv64imafdc@mabi=lp64d But you want to testing more on vector stuffs like rv32gcv and rv64gcv, then you can configure with `--with-extra-multilib-test="rv32gcv-ilp32d;rv64gcv;lp64d"` Then the testing will run rv32imac-ilp32 rv32imafdc-ilp32d rv64imac-lp64 rv64imafdc-lp64d and rv32gcv-ilp32d;rv64gcv;lp64d! NOTE: Extra multilib test settings still require existing multilib has support those extra settings, e.g. you can't add rv32imafc_zbb-ilp32f on above example since no compatible multilib has provided.
2023-06-01Merge branch 'master' into alexc/riscv-llvm-qemuAlex Chiang1-6/+0
Signed-off-by: Alex Chiang <107899296+alexsifivetw@users.noreply.github.com>
2023-06-01Enable riscv llvm & qemu build flowAlex Chiang1-3/+77
Update readme about llvm & qemu examples Co-authored-by: Kito Cheng <kito.cheng@sifive.com>
2023-05-17Add support to build LLVM/clang with C and C++ supportChristoph Müllner1-13/+40
We currently have a stale "llvm" branch, that does not build. However, there is clear demand in the RISC-V toolchain community for a working LLVM on top of a recent GNU toolchain. In order to build such a toolchain, quite some LLVM and clang know-how is required to avoid path issues at LLVM build time or later when using clang. The main purpose of this commit is to demonstrate a way to combine the RISC-V GNU toolchain repo with LLVM, with the intent to save others hours of frustration, debugging time or support time. Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
2023-05-11configure: change --disable-debug-info to --enable-debug-infoHuaqi Fang1-4/+5
--enable-debug-info will enable debug information when build library Signed-off-by: Huaqi Fang <578567190@qq.com>
2023-04-24[Makefile.in] glibc: Remove unnecessary -g optionMark Goncharov1-0/+20
Using llvm-objdump I found warning if file was compiled using riscv-gcc. Examples: warning: failed to find source riscv-glibc/csu/elf-init.c It concerned with compilation glibc with debug info that is unnecessary operation. If user want to have debug info, than it's easy to pass -g. This option wasn't touched more than 7 years...
2023-04-17Update --with-isa-spec default option.Jiawei1-5/+7
2023-02-20dejagnu: Allow source dir overrideChristoph Müllner1-0/+22
We have this feature for all other packages. It is particularly useful to avoid pointless internet downloads for automatic builds. Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
2022-09-29gdb: Bump GDB version to 12.1 (#1132)Christoph Müllner1-1/+1
GDB still defaults to 10.1 from the (already archived) riscv-binutils-gdb repo. Let's bump the version to 12.1 and use the upstream git repo instead. Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu> Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
2022-08-18Switch gcc to upstream and update binutils commitsJiawei1-1/+1
2022-08-17Switch binutils to upstream 2.39 branchKito Cheng1-1/+1
2022-05-23Add option '--with-sim' to set simulatorLiaoshihua1-0/+59
2022-05-12Regenerate configure for 29a0ca8 ("Allow users to build QEMU with ↵Palmer Dabbelt1-4/+24
system-mode emulation") Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2022-04-21Add an "--enable-libsanitizer" configure-time argumentPalmer Dabbelt1-0/+20
This lets users select whether or not to build libsanitizer, which currently does not support rv32 and thus can't be enabled by default. Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2022-04-20Rebuild configure file.Jim Wilson1-3/+13
To finish #1059 and fix #1057.
2022-04-12Merge pull request #1054 from riscv-collab/with-isa-spec2022.04.12Kito Cheng1-0/+16
Add --with-isa-spec option to configure
2022-04-11Add --with-isa-spec option to configureKito Cheng1-0/+16
Set the default version to 2.2 for now, and once we bump to GCC 12 we will bump that to 20191213.
2022-02-24Prevent musl riscv32 buildsFlorian Hofhammer1-1/+1
The upstream musl libc does not support 32bit RISC-V builds. We therefore only allow building the 64bit version (i.e., riscv64-unknown-linux-musl-). Signed-off-by: Florian Hofhammer <florian.hofhammer@fhofhammer.de>
2022-02-24Add musl libc submoduleFlorian Hofhammer1-1/+1
Since musl is already incorporated into the build system (see for example configure.ac, Makefile.in), this patch adds a submodule for musl based on the current v1.2.2 release. The GitHub Actions configurations have also been updated to include the musl based toolchain. Signed-off-by: Florian Hofhammer <florian.hofhammer@fhofhammer.de>
2022-02-24Update glibc and newlib pathsFlorian Hofhammer1-3/+2
Both the glibc and newlib submodules are already pointing to the upstream repositories where development happens. Since they are therefore not referring to RISC-V specific forks, this patch unifies the directory naming by only prepending the "riscv-" prefix to submodules that point to repositories in the riscv-collab Github organization. Signed-off-by: Florian Hofhammer <florian.hofhammer@fhofhammer.de>
2022-02-23Fix incorrect qemu path in configure scriptFlorian Hofhammer1-1/+1
2022-02-10Allow source-override for QEMUChristoph Muellner1-0/+22
This patch introduces a configure-time source-dir override for QEMU similar to the existing overrides for the other toolchain sources. Signed-off-by: Christoph Muellner <cmuellner@linux.com>
2020-11-06Add --with-multilib-generator optionKito Cheng1-1/+26
2020-02-07Correct previous configure fix. Edit configure.ac and regenerate.Jim Wilson1-1/+1
2020-02-06[configure] fix unexpected operator line 3295striker.sh1-1/+1
equality of two string is `=` not `==` see `test(1)`
2019-11-05Don't enable gcc checking by default.Jim Wilson1-9/+3
Also, support all gcc checking options instead of just yes and release. Also, fix copy-and-paste error in cmodel support refering to gcc checking.
2019-11-01Add configure options to set target C and C++ compiler flags.Jim Wilson1-0/+23
This is a partial fix for pull request #530, allowing people to use -mno-fdiv for library compiles.
2019-09-29Fix default LINUX_HEADERS_SRCDIR pathAlbert Ou1-1/+1
The --with-headers argument must point to the `include' subdirectory.
2019-09-28Merge pull request #513 from riscv/with-srcKito Cheng1-0/+160
Add option to specify source tree of each component
2019-09-27Add option to specify source tree of each componentKito Cheng1-0/+160
2019-09-26Fix awk/sed wrapper pathsAlbert Ou1-2/+2
These wrappers are still necessary on non-GNU platforms; glibc makefile rules invoke `sed' directly with GNU extensions.
2019-02-15Add toplevel --with-tune= configure option.Jim Wilson1-0/+15
2018-10-10Remove --disable-atomic option, which stopped working about 2 years ago.Jim Wilson1-12/+0
2018-08-31Set correct default abi for rv32eKito Cheng1-0/+2
2017-09-13Split the glibc and newlib multilib names in the MakefilePalmer Dabbelt1-3/+12
2017-09-06Add a "--disable-gdb" argumentPalmer Dabbelt1-0/+20
2017-08-20Always set the multilib listPalmer Dabbelt1-1/+16
2017-05-31Add support for --with-guile configure flagJohannes Löthberg1-13/+22
And re-run autoreconf to generate the configure script. Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2017-05-03Allow the user to flip "--with-system-zlib"Palmer Dabbelt1-1/+34
We need this to have different polarity for different platforms (Windows vs RedHat). I don't know how to autodetect this for now, so I'm just doing it manually.
2017-05-03Add a "--with-host" argumentPalmer Dabbelt1-13/+24
I need to set this in order to build the Windows tools.
2017-05-01Add the "--with-cmodel" configure argumentPalmer Dabbelt1-0/+21
This lets users select the code model when building the tools.
2017-02-01bump; change linux default to RVCAndrew Waterman1-5/+5
2016-12-22Default arch is rv64g, not ERRORAndrew Waterman1-5/+17
2016-12-14Auto detect default value for --with-abi if not givenKito Cheng1-3/+24