From be0387eed099dbc2f2bdc92fbf60e04f846c3b2b Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 19 Jun 2021 19:36:39 -0400 Subject: 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. --- sim/README-HACKING | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sim/README-HACKING') diff --git a/sim/README-HACKING b/sim/README-HACKING index 3715467..9bb705e 100644 --- a/sim/README-HACKING +++ b/sim/README-HACKING @@ -387,8 +387,8 @@ Hardware Devices ================ The simplest simulator doesn't include hardware device support. Once you're -ready to move on to the next level, call the common macro in your configure.ac: -SIM_AC_OPTION_HARDWARE(devone devtwo devthree) +ready to move on to the next level, declare in your Makefile.in: +SIM_EXTRA_HW_DEVICES = devone devtwo devthree The basic hardware API is documented in common/hw-device.h. -- cgit v1.1