sim: sim-model: build for everyone

Rather than include this for some targets, set it up so we can build it
all the time via the common code.  This makes it easier for targets to
opt into it when they're ready, increases build coverage, and allows us
to centralize much of the logic.

We also get to delete tconfig.h from two more targets -- they were
setting WITH_DEVICES to 0 which has the same behavior as not defining
it at all.

While the SIM_HAVE_MODEL knob is gone, we now have WITH_MODEL_P, but it
is only used by the common sim-model code.  We use it to declare dummy
model lists when the arch hasn't created its own.
This commit is contained in:
Mike Frysinger
2015-12-25 04:27:27 -05:00
parent 8a0ebee658
commit 0d58595077
29 changed files with 75 additions and 49 deletions

View File

@@ -40,9 +40,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
static MODULE_INSTALL_FN * const modules[] = {
standard_install,
sim_events_install,
#ifdef SIM_HAVE_MODEL
sim_model_install,
#endif
#if WITH_ENGINE
sim_engine_install,
#endif