diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-12-25 02:50:07 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-12-27 00:31:34 -0500 |
commit | f6d58d40125c4ff2bc162e6bc6e9f3e3f56dee6e (patch) | |
tree | 4ec3832ac5d58a4e43e11742a7f17ba5b9e19bbc /sim/configure | |
parent | 3a31051b3a5ded399dd54c5598608cea372675e1 (diff) | |
download | binutils-f6d58d40125c4ff2bc162e6bc6e9f3e3f56dee6e.zip binutils-f6d58d40125c4ff2bc162e6bc6e9f3e3f56dee6e.tar.gz binutils-f6d58d40125c4ff2bc162e6bc6e9f3e3f56dee6e.tar.bz2 |
sim: mips: hoist "m16" igen rules up to common builds
Diffstat (limited to 'sim/configure')
-rwxr-xr-x | sim/configure | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/sim/configure b/sim/configure index 66e6cda..ef6cc0a 100755 --- a/sim/configure +++ b/sim/configure @@ -641,6 +641,8 @@ LTLIBOBJS include_makefile SIM_RX_CYCLE_ACCURATE_FLAGS SIM_RISCV_BITSIZE +SIM_MIPS_GEN_MODE_M16_FALSE +SIM_MIPS_GEN_MODE_M16_TRUE SIM_MIPS_GEN_MODE_SINGLE_FALSE SIM_MIPS_GEN_MODE_SINGLE_TRUE SIM_MIPS_MULTI_OBJ @@ -12446,7 +12448,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12449 "configure" +#line 12451 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -12552,7 +12554,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12555 "configure" +#line 12557 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -16626,6 +16628,14 @@ else SIM_MIPS_GEN_MODE_SINGLE_FALSE= fi + if test "$SIM_MIPS_GEN" = "M16"; then + SIM_MIPS_GEN_MODE_M16_TRUE= + SIM_MIPS_GEN_MODE_M16_FALSE='#' +else + SIM_MIPS_GEN_MODE_M16_TRUE='#' + SIM_MIPS_GEN_MODE_M16_FALSE= +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking riscv bitsize" >&5 $as_echo_n "checking riscv bitsize... " >&6; } @@ -16948,6 +16958,10 @@ if test -z "${SIM_MIPS_GEN_MODE_SINGLE_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_SI as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_SINGLE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${SIM_MIPS_GEN_MODE_M16_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_M16_FALSE}"; then + as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_M16\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 |