diff options
author | Palmer Dabbelt <palmer@dabbelt.com> | 2016-07-12 11:17:10 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@eecs.berkeley.edu> | 2016-07-12 11:17:10 -0700 |
commit | 7f3b666f55c9f01c2f2fd725c1686e1a509df173 (patch) | |
tree | 2e256eed2b68c15a0e0dfa6984acf96bd2252fca /configure | |
parent | b6c8a03dcd7ed3c109d2c9da797b295f160f051d (diff) | |
download | riscv-tests-7f3b666f55c9f01c2f2fd725c1686e1a509df173.zip riscv-tests-7f3b666f55c9f01c2f2fd725c1686e1a509df173.tar.gz riscv-tests-7f3b666f55c9f01c2f2fd725c1686e1a509df173.tar.bz2 |
Add a "--with-xlen" configure argument (#16)
The tools had riscv64-unknown-elf-gcc hard-coded all over the place.
This lets users override that if they have a 32-bit toolchain.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -583,6 +583,7 @@ PACKAGE_URL='' ac_subst_vars='LTLIBOBJS LIBOBJS +XLEN OBJEXT EXEEXT ac_ct_CC @@ -631,6 +632,7 @@ SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking +with_xlen ' ac_precious_vars='build_alias host_alias @@ -1245,6 +1247,11 @@ if test -n "$ac_init_help"; then esac cat <<\_ACEOF +Optional Packages: + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-xlen=XLEN Set XLEN, the X-register bit width (default is 64) + Some influential environment variables: CC C compiler command CFLAGS C compiler flags @@ -2515,6 +2522,19 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=$ac_cv_c_compiler_gnu + +# Check whether --with-xlen was given. +if test "${with_xlen+set}" = set; then : + withval=$with_xlen; XLEN=$withval + +else + XLEN=64 + + +fi + + + ac_config_files="$ac_config_files Makefile" cat >confcache <<\_ACEOF |