aboutsummaryrefslogtreecommitdiff
path: root/sim/m32r/Makefile.in
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-06-19 19:36:39 -0400
committerMike Frysinger <vapier@gentoo.org>2021-06-21 21:36:51 -0400
commitbe0387eed099dbc2f2bdc92fbf60e04f846c3b2b (patch)
treea61ac0be186cfe159401b1c96892f8554b07c5af /sim/m32r/Makefile.in
parentb4ee29a4450a88a64d99db0e49bac2e8670e086b (diff)
downloadfsf-binutils-gdb-be0387eed099dbc2f2bdc92fbf60e04f846c3b2b.zip
fsf-binutils-gdb-be0387eed099dbc2f2bdc92fbf60e04f846c3b2b.tar.gz
fsf-binutils-gdb-be0387eed099dbc2f2bdc92fbf60e04f846c3b2b.tar.bz2
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.
Diffstat (limited to 'sim/m32r/Makefile.in')
-rw-r--r--sim/m32r/Makefile.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/sim/m32r/Makefile.in b/sim/m32r/Makefile.in
index f8ccb97..eb9641e 100644
--- a/sim/m32r/Makefile.in
+++ b/sim/m32r/Makefile.in
@@ -34,6 +34,8 @@ SIM_OBJS = \
$(M32R2_OBJS) \
$(TRAPS_OBJ)
+SIM_EXTRA_HW_DEVICES = m32r_cache m32r_uart
+
# Extra headers included by sim-main.h.
SIM_EXTRA_DEPS = \
$(CGEN_INCLUDE_DEPS) \