diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-06-19 19:36:39 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-06-21 21:36:51 -0400 |
commit | be0387eed099dbc2f2bdc92fbf60e04f846c3b2b (patch) | |
tree | a61ac0be186cfe159401b1c96892f8554b07c5af /sim/README-HACKING | |
parent | b4ee29a4450a88a64d99db0e49bac2e8670e086b (diff) | |
download | fsf-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/README-HACKING')
-rw-r--r-- | sim/README-HACKING | 4 |
1 files changed, 2 insertions, 2 deletions
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. |