diff options
author | Liaoshihua <18990054834@163.com> | 2022-05-23 09:52:08 +0800 |
---|---|---|
committer | Liaoshihua <18990054834@163.com> | 2022-05-23 10:06:50 +0800 |
commit | 5a2b88b5286aa7fbe4ce14f65ec12c8e9ab69353 (patch) | |
tree | 95dce24746c16ffa4ba1caa30f76a93db273d3f9 /configure.ac | |
parent | 1342cd731cf072ca610d7a5a4c54d2153b6bad63 (diff) | |
download | riscv-gnu-toolchain-5a2b88b5286aa7fbe4ce14f65ec12c8e9ab69353.zip riscv-gnu-toolchain-5a2b88b5286aa7fbe4ce14f65ec12c8e9ab69353.tar.gz riscv-gnu-toolchain-5a2b88b5286aa7fbe4ce14f65ec12c8e9ab69353.tar.bz2 |
Add option '--with-sim' to set simulator
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 690df30..9c0d60d 100644 --- a/configure.ac +++ b/configure.ac @@ -78,6 +78,13 @@ AC_ARG_WITH(isa-spec, [with_isa_spec=2.2] ) +AC_ARG_WITH(sim, + [AS_HELP_STRING([--with-sim=qemu], + [Sets the base RISC-V Simulator, defaults to qemu])], + [], + [with_sim=qemu] + ) + AS_IF([test "x$with_abi" = xdefault], [AS_CASE([$with_arch], [*rv64g* | *rv64*d*], [with_abi=lp64d], @@ -94,6 +101,7 @@ AC_SUBST(WITH_ARCH, --with-arch=$with_arch) AC_SUBST(WITH_ABI, --with-abi=$with_abi) AC_SUBST(WITH_TUNE, --with-tune=$with_tune) AC_SUBST(WITH_ISA_SPEC, --with-isa-spec=$with_isa_spec) +AC_SUBST(WITH_SIM, $with_sim) AC_ARG_ENABLE(multilib, [AS_HELP_STRING([--enable-multilib], @@ -234,6 +242,8 @@ AX_ARG_WITH_SRC(glibc, glibc) AX_ARG_WITH_SRC(musl, musl) AX_ARG_WITH_SRC(gdb, riscv-gdb) AX_ARG_WITH_SRC(qemu, qemu) +AX_ARG_WITH_SRC(spike, spike) +AX_ARG_WITH_SRC(pk, pk) AC_ARG_WITH(linux-headers-src, [AC_HELP_STRING([--with-linux-headers-src], |