[3/7] sim: unify environment build settings

Message ID 20210607053355.9965-3-vapier@gentoo.org
State New
Headers show
Series
  • [1/7] sim: unify platform function & header tests
Related show

Commit Message

Mike Frysinger via Gdb-patches June 7, 2021, 5:33 a.m.
Move the --sim-enable-environment option up to the common dir so we
only test & export it once across all ports.
---
 sim/Makefile.in                |  1 +
 sim/aarch64/aclocal.m4         |  1 -
 sim/aarch64/config.in          |  3 ---
 sim/aarch64/configure          | 30 ++----------------------------
 sim/aclocal.m4                 |  1 +
 sim/arm/aclocal.m4             |  1 -
 sim/arm/config.in              |  3 ---
 sim/arm/configure              | 30 ++----------------------------
 sim/avr/aclocal.m4             |  1 -
 sim/avr/config.in              |  3 ---
 sim/avr/configure              | 30 ++----------------------------
 sim/bfin/aclocal.m4            |  1 -
 sim/bfin/config.in             |  3 ---
 sim/bfin/configure             | 30 ++----------------------------
 sim/bpf/aclocal.m4             |  1 -
 sim/bpf/config.in              |  3 ---
 sim/bpf/configure              | 30 ++----------------------------
 sim/config.h.in                |  3 +++
 sim/configure                  | 26 ++++++++++++++++++++++++++
 sim/configure.ac               |  1 +
 sim/cr16/aclocal.m4            |  1 -
 sim/cr16/config.in             |  3 ---
 sim/cr16/configure             | 30 ++----------------------------
 sim/cris/aclocal.m4            |  1 -
 sim/cris/config.in             |  3 ---
 sim/cris/configure             | 30 ++----------------------------
 sim/d10v/aclocal.m4            |  1 -
 sim/d10v/config.in             |  3 ---
 sim/d10v/configure             | 30 ++----------------------------
 sim/erc32/aclocal.m4           |  1 -
 sim/erc32/config.in            |  3 ---
 sim/erc32/configure            | 30 ++----------------------------
 sim/example-synacor/aclocal.m4 |  1 -
 sim/example-synacor/config.in  |  3 ---
 sim/example-synacor/configure  | 30 ++----------------------------
 sim/frv/aclocal.m4             |  1 -
 sim/frv/config.in              |  3 ---
 sim/frv/configure              | 30 ++----------------------------
 sim/ft32/aclocal.m4            |  1 -
 sim/ft32/config.in             |  3 ---
 sim/ft32/configure             | 30 ++----------------------------
 sim/h8300/aclocal.m4           |  1 -
 sim/h8300/config.in            |  3 ---
 sim/h8300/configure            | 30 ++----------------------------
 sim/iq2000/aclocal.m4          |  1 -
 sim/iq2000/config.in           |  3 ---
 sim/iq2000/configure           | 30 ++----------------------------
 sim/lm32/aclocal.m4            |  1 -
 sim/lm32/config.in             |  3 ---
 sim/lm32/configure             | 30 ++----------------------------
 sim/m32c/aclocal.m4            |  1 -
 sim/m32c/config.in             |  3 ---
 sim/m32c/configure             | 30 ++----------------------------
 sim/m32r/aclocal.m4            |  1 -
 sim/m32r/config.in             |  3 ---
 sim/m32r/configure             | 30 ++----------------------------
 sim/m4/sim_ac_common.m4        |  1 -
 sim/m68hc11/aclocal.m4         |  1 -
 sim/m68hc11/config.in          |  3 ---
 sim/m68hc11/configure          | 30 ++----------------------------
 sim/mcore/aclocal.m4           |  1 -
 sim/mcore/config.in            |  3 ---
 sim/mcore/configure            | 30 ++----------------------------
 sim/microblaze/aclocal.m4      |  1 -
 sim/microblaze/config.in       |  3 ---
 sim/microblaze/configure       | 30 ++----------------------------
 sim/mips/aclocal.m4            |  1 -
 sim/mips/config.in             |  3 ---
 sim/mips/configure             | 30 ++----------------------------
 sim/mn10300/aclocal.m4         |  1 -
 sim/mn10300/config.in          |  3 ---
 sim/mn10300/configure          | 30 ++----------------------------
 sim/moxie/aclocal.m4           |  1 -
 sim/moxie/config.in            |  3 ---
 sim/moxie/configure            | 30 ++----------------------------
 sim/msp430/aclocal.m4          |  1 -
 sim/msp430/config.in           |  3 ---
 sim/msp430/configure           | 30 ++----------------------------
 sim/or1k/aclocal.m4            |  1 -
 sim/or1k/config.in             |  3 ---
 sim/or1k/configure             | 30 ++----------------------------
 sim/pru/aclocal.m4             |  1 -
 sim/pru/config.in              |  3 ---
 sim/pru/configure              | 30 ++----------------------------
 sim/riscv/aclocal.m4           |  1 -
 sim/riscv/config.in            |  3 ---
 sim/riscv/configure            | 30 ++----------------------------
 sim/rl78/aclocal.m4            |  1 -
 sim/rl78/config.in             |  3 ---
 sim/rl78/configure             | 30 ++----------------------------
 sim/rx/aclocal.m4              |  1 -
 sim/rx/config.in               |  3 ---
 sim/rx/configure               | 30 ++----------------------------
 sim/sh/aclocal.m4              |  1 -
 sim/sh/config.in               |  3 ---
 sim/sh/configure               | 30 ++----------------------------
 sim/v850/aclocal.m4            |  1 -
 sim/v850/config.in             |  3 ---
 sim/v850/configure             | 30 ++----------------------------
 99 files changed, 94 insertions(+), 993 deletions(-)

-- 
2.31.1

Patch

diff --git a/sim/configure.ac b/sim/configure.ac
index 700e04d6a602..ecf12b57a19b 100644
--- a/sim/configure.ac
+++ b/sim/configure.ac
@@ -100,6 +100,7 @@  fi
 AM_CONDITIONAL([SIM_ENABLE_IGEN], [test "$sim_igen" = "yes"])
 
 SIM_AC_OPTION_ASSERT
+SIM_AC_OPTION_ENVIRONMENT
 
 AC_CONFIG_FILES([Makefile])
 AC_OUTPUT
diff --git a/sim/m4/sim_ac_common.m4 b/sim/m4/sim_ac_common.m4
index 1df56e4baed2..7bad1486c5cc 100644
--- a/sim/m4/sim_ac_common.m4
+++ b/sim/m4/sim_ac_common.m4
@@ -163,7 +163,6 @@  AC_DEFINE_UNQUOTED([WITH_PROFILE], [$sim_profile], [Sim profile settings])
 AC_MSG_RESULT($sim_profile)
 
 
-SIM_AC_OPTION_ENVIRONMENT
 SIM_AC_OPTION_INLINE
 
 ACX_PKGVERSION([SIM])