diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-19 19:54:13 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-12-20 21:24:40 -0500 |
commit | 09d4e6bb2fe97ea03e881405c5e8960cd5fd3263 (patch) | |
tree | b7dca9fd90e7ce5805925b7a6224178151fb5e72 /sim/iq2000 | |
parent | 515603a73285cc714f7a82e6b486c5d57634c10f (diff) | |
download | gdb-09d4e6bb2fe97ea03e881405c5e8960cd5fd3263.zip gdb-09d4e6bb2fe97ea03e881405c5e8960cd5fd3263.tar.gz gdb-09d4e6bb2fe97ea03e881405c5e8960cd5fd3263.tar.bz2 |
sim: cgen: unify the genmloop logic a bit
Pull out the common parts of the genmloop invocation into the common
code. This will make it easier to add more, and make the per-port
differences a little more obvious.
Diffstat (limited to 'sim/iq2000')
-rw-r--r-- | sim/iq2000/local.mk | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sim/iq2000/local.mk b/sim/iq2000/local.mk index 99649ec..9ed30f3 100644 --- a/sim/iq2000/local.mk +++ b/sim/iq2000/local.mk @@ -67,11 +67,10 @@ BUILT_SOURCES += %D%/eng.h ## FIXME: Use of `mono' is wip. %D%/mloop.c %D%/eng.h: %D%/stamp-mloop ; @true -%D%/stamp-mloop: $(srccom)/genmloop.sh %D%/mloop.in - $(AM_V_GEN)$(SHELL) $(srccom)/genmloop.sh -shell $(SHELL) \ +%D%/stamp-mloop: %D%/mloop.in $(srccom)/genmloop.sh + $(AM_V_GEN)$(CGEN_GEN_MLOOP) \ -mono -fast -pbb -switch sem-switch.c \ - -cpu iq2000bf \ - -infile $(srcdir)/%D%/mloop.in -outfile-prefix %D%/ + -cpu iq2000bf $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/eng.hin %D%/eng.h $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/mloop.cin %D%/mloop.c $(AM_V_at)touch $@ |