sim: hw: rework configure option & device selection
authorMike Frysinger <vapier@gentoo.org>
Sat, 19 Jun 2021 23:36:39 +0000 (19:36 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 22 Jun 2021 01:36:51 +0000 (21:36 -0400)
commitbe0387eed099dbc2f2bdc92fbf60e04f846c3b2b
treea61ac0be186cfe159401b1c96892f8554b07c5af
parentb4ee29a4450a88a64d99db0e49bac2e8670e086b
sim: hw: rework configure option & device selection

The sim-hardware configure option allows builders to select a set of
device models to enable.  But this seems like unnecessary overkill:
the existence of individual device models doesn't affect performance
at all as they are only enabled at runtime if the config uses them,
and individually these are all <5KB a piece.  Stripping off a total
of ~50KB from a ~1MB binary doesn't seem useful, and it's extremely
unlikely anyone will ever bother.

So let's simplify the configure/make logic by turning sim-hardware
into a boolean option like many of the other sim options.  Any ports
that have unique device models will declare them in their Makefile
instead of at configure time.  This will allow us to (eventually)
unify the setting into the common dir.
82 files changed:
sim/ChangeLog
sim/README-HACKING
sim/aarch64/ChangeLog
sim/aarch64/configure
sim/arm/ChangeLog
sim/arm/configure
sim/avr/ChangeLog
sim/avr/configure
sim/bfin/ChangeLog
sim/bfin/Makefile.in
sim/bfin/configure
sim/bfin/configure.ac
sim/bpf/ChangeLog
sim/bpf/configure
sim/common/ChangeLog
sim/common/Make-common.in
sim/cr16/ChangeLog
sim/cr16/configure
sim/cris/ChangeLog
sim/cris/Makefile.in
sim/cris/configure
sim/cris/configure.ac
sim/d10v/ChangeLog
sim/d10v/configure
sim/erc32/ChangeLog
sim/erc32/configure
sim/example-synacor/ChangeLog
sim/example-synacor/configure
sim/frv/ChangeLog
sim/frv/configure
sim/ft32/ChangeLog
sim/ft32/configure
sim/h8300/ChangeLog
sim/h8300/configure
sim/iq2000/ChangeLog
sim/iq2000/configure
sim/lm32/ChangeLog
sim/lm32/Makefile.in
sim/lm32/configure
sim/lm32/configure.ac
sim/m32c/ChangeLog
sim/m32c/configure
sim/m32r/ChangeLog
sim/m32r/Makefile.in
sim/m32r/configure
sim/m32r/configure.ac
sim/m4/sim_ac_option_hardware.m4
sim/m4/sim_ac_output.m4
sim/m68hc11/ChangeLog
sim/m68hc11/Makefile.in
sim/m68hc11/configure
sim/m68hc11/configure.ac
sim/mcore/ChangeLog
sim/mcore/configure
sim/microblaze/ChangeLog
sim/microblaze/configure
sim/mips/ChangeLog
sim/mips/Makefile.in
sim/mips/configure
sim/mips/configure.ac
sim/mn10300/ChangeLog
sim/mn10300/Makefile.in
sim/mn10300/configure
sim/mn10300/configure.ac
sim/moxie/ChangeLog
sim/moxie/configure
sim/msp430/ChangeLog
sim/msp430/configure
sim/or1k/ChangeLog
sim/or1k/configure
sim/pru/ChangeLog
sim/pru/configure
sim/riscv/ChangeLog
sim/riscv/configure
sim/rl78/ChangeLog
sim/rl78/configure
sim/rx/ChangeLog
sim/rx/configure
sim/sh/ChangeLog
sim/sh/configure
sim/v850/ChangeLog
sim/v850/configure