aboutsummaryrefslogtreecommitdiff
path: root/sim/frv/local.mk
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-19 19:54:13 -0500
committerMike Frysinger <vapier@gentoo.org>2023-12-20 21:24:40 -0500
commit09d4e6bb2fe97ea03e881405c5e8960cd5fd3263 (patch)
treeb7dca9fd90e7ce5805925b7a6224178151fb5e72 /sim/frv/local.mk
parent515603a73285cc714f7a82e6b486c5d57634c10f (diff)
downloadgdb-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/frv/local.mk')
-rw-r--r--sim/frv/local.mk7
1 files changed, 3 insertions, 4 deletions
diff --git a/sim/frv/local.mk b/sim/frv/local.mk
index e494039..287633b 100644
--- a/sim/frv/local.mk
+++ b/sim/frv/local.mk
@@ -91,11 +91,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 -scache -parallel-generic-write -parallel-only \
- -cpu frvbf \
- -infile $(srcdir)/%D%/mloop.in -outfile-prefix %D%/
+ -cpu frvbf
$(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 $@