aboutsummaryrefslogtreecommitdiff
path: root/Makefile.in
AgeCommit message (Collapse)AuthorFilesLines
2021-12-20Set CXX to a nonexistent compiler when building glibcPalmer Dabbelt1-1/+1
We set CXX=riscv64-unknown-linux-gnu-g++ (or something like that) when building glibc, but don't actually build a C++ compiler during stage 1. Under normal conditions this shouldn't cause any issues: that's either a working compiler (from PATH) or doesn't exist, in which case glibc's build scripts do the right thing and turn off C++. Unfortunately I'm in the pathological situation of having a slightly-incompatible g++ in PATH, which glibc then attempts to use only to throw an error when linking (glibc isn't testing that much of the C++ toolchain, see <https://sourceware.org/bugzilla/show_bug.cgi?id=24183>). This simply sets CXX to something that's unlikely to exist during the glibc build, so the build scripts don't get confused. I tried setting this to false, but everything was italic. Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2021-09-15Fix typo in build-libc dependenciesChristoph Muellner1-1/+1
The variable MULTLIB_NAMES does not exist but is used when generating the dependencies for the target build-libc for glibc. Even when adding the missing 'I' (for MULTILIB_NAMES) there is still no variable with this name. So the whole dependency generation is useless, becauese it was not needed so far. Looking into detail why it is so, we can find the answer in the dependency list of the target 'stamps/build-gcc-linux-stage2'. Let's fix this by setting the dependencies for build-libc right. The dependencies for 'stamps/build-gcc-linux-stage2' stay as they are not wrong. Fixes: 3456b66f69 ("Add a "make report" phony target") Signed-off-by: Christoph Muellner <cmuellner@linux.com>
2021-03-13Use `git rev-parse` to find .git dirScott Johnson1-2/+2
Otherwise, this code breaks if riscv-gnu-toolchain is itself a submodule of another project. In that case the git config for this tree will be $(srcdir)/../.git/modules/riscv-gnu-toolchain/config.
2021-01-05Do not use submodule --single-branchKito Cheng1-1/+1
- It's too new to use, that require git 2.26+
2021-01-04Download repo on demandKito Cheng1-19/+57
- So that we can build and clone in parallel.
2020-12-31Fix testing when configure with --with-multilib-generator=Kito Cheng1-1/+1
- Current script will only handle first 2 items in `--with-multilib-generator=`.
2020-12-04Disable libsanitizer when building the musl-based toolchainNick Kossifidis1-0/+3
This allows building the musl-based toolchain again, tested with the latest stable version of musl-libc.
2020-12-02Fix simulator dependency for spikeKito Cheng1-2/+2
2020-11-30Fix always re-run testsuite issueKito Cheng1-17/+18
- This issue is report by Nelson. - Don't using build-sim as dependency, it will cause the Make always rebuild.
2020-11-29quote variable expansion so that semicolons are not interpreted by the shellKen Takusagawa1-1/+1
2020-11-06Add --with-multilib-generator optionKito Cheng1-2/+9
2020-11-04Support run testsuite with spikeKito Cheng1-12/+70
2020-11-04Add makefile option to select which simulator to run testKito Cheng1-24/+40
2020-06-17Rename whitelist to allowlistKito Cheng1-6/+6
2020-05-28Disable libsanitizer for linux toolchainKito Cheng1-0/+4
2020-05-21Handle underline in arch string for target board optionKito Cheng1-3/+3
2020-05-13Qemu 5.0 require python >= 3.5Kito Cheng1-1/+1
2020-04-28Merge pull request #625 from gattaca-lab/riscv_tbiKito Cheng1-0/+4
Use proper kernel headers
2020-04-26[RISCV_TBI] use proper kernel headersAlex White1-0/+4
2020-02-12Expand check-{binutils,gas,ld}Kito Cheng1-3/+3
- dash won't expand it as expect
2020-02-12Add dejagnu to build dependency of check-binutils/check-gdbKito Cheng1-6/+6
2020-02-04Add a newlib nano copy of libm.Jim Wilson1-0/+2
The gamma functions use the reentrant structure which changes size in newlib nano, so we need a nano specific copy of libm.a to go with libc.a.
2020-01-02Fix non-portable operator in shell conditionalAlbert Ou1-3/+3
Use = to compare strings with the test builtin command instead of ==, which is non-standard and sometimes unsupported by stricter POSIX shells (e.g., dash as /bin/sh).
2019-11-01Add configure options to set target C and C++ compiler flags.Jim Wilson1-2/+2
This is a partial fix for pull request #530, allowing people to use -mno-fdiv for library compiles.
2019-09-28Merge pull request #513 from riscv/with-srcKito Cheng1-22/+34
Add option to specify source tree of each component
2019-09-27Add option to specify source tree of each componentKito Cheng1-22/+34
2019-09-26Fix rm command portabilityAlbert Ou1-1/+1
Some implementations of rm(1) are stricter about the ordering of option and non-option arguments as specified in POSIX.
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-09-25Check write permission to install path before build anythingKito Cheng1-4/+13
2019-09-20Clean up rules for patch source, it's no longer used after using submoduleKito Cheng1-32/+1
2019-07-23Apply new whitelist scheme for binutilsKito Cheng1-12/+9
2019-07-19Disable transactional memory support to reduce code size.Jim Wilson1-0/+2
2019-07-14Rewrite whitelist filter and reorg the scheme of whitelistKito Cheng1-15/+3
2019-07-10Build newlib with POSIX modeKito Cheng1-2/+2
- newlib was default to XOPEN MODE before 2018/12/6[1], but newlib decide to remove XOPEN mode SVID3 mode, and change the default IEEE mode. - The problem is IEEE won't set errno on several math function, so build with POSIX mode would be better for newlib. - For newlib nano, we might able to build with _IEEE_LIBM in future to reduce code size, and improve performance. [1] https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=commit;h=b14a879d85b171960df789ac8ba2332004f838e0
2019-07-04Use upstream qemu.Jim Wilson1-1/+1
Drop riscv-qemu, add upstream qemu, and fix one Makefile reference.
2019-05-21Build system patch from Optimitech to make nano lite-exit support work.Jim Wilson1-1/+3
2019-05-16Use -O2 for newlib and -Os for newlib nano.Jim Wilson1-2/+2
2019-02-15Add toplevel --with-tune= configure option.Jim Wilson1-2/+9
2018-11-27Merge pull request #394 from riscv/configure-checkbefore-fsf-gdbJim Wilson1-0/+3
Run config.status --recheck when configure changes.
2018-11-20Run config.status --recheck when configure changes.Jim Wilson1-0/+3
2018-11-19Fix typo, change --disable-libreadline to --disable-readline.Jim Wilson1-4/+4
2018-11-19Allow building a 32bit musl toolchainNick Kossifidis1-7/+5
Note that musl doesn't support multilib
2018-10-18Add support for building a musl-based toolchainNick Kossifidis1-5/+150
Musl is great for embedded projects since it doesn't have any external runtime dependencies on static builds (glibc needs libnss for gethostbyname etc), and produces much smaller binaries. It's also needed for supporting Alpine Linux (the most common distro used for containers). This patch expects the latest riscv-musl repository to be cloned inside the source dir (e.g. as a submodule like the rest). Currently only riscv64 is supported (no multilib).
2018-09-27Define CXX for glibc builds.Jim Wilson1-0/+1
FSF glibc now has a C++ file, so this is needed to make builds work with upstream glibc.
2018-08-31Fail if report log file has an empty line.Jim Wilson1-0/+18
Use of grep -v means that an empty line matches everything, and hence make report can never fail, so we need to check for this case and force failure.
2018-08-27Use test instead of [[ for compatibility with Ubuntu dash.Jim Wilson1-3/+3
2018-07-19Changed optimization flags (from size to performance) for linux-gcc.Denis Ivanov1-4/+4
2018-07-18Pass CFLAGS_FOR_TARGET/CXXFLAGS_FOR_TARGET to build-gcc-linux.Denis Ivanov1-2/+6
2018-07-17Pass @cmodel@ to CXXFLAGS (is similar to CFLAGS).Denis Ivanov1-4/+10
2018-06-22Merge pull request #342 from riscv/binutils-gdbPalmer Dabbelt1-21/+82
Split the binutils and GDB builds