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/cris | |
parent | 515603a73285cc714f7a82e6b486c5d57634c10f (diff) | |
download | binutils-09d4e6bb2fe97ea03e881405c5e8960cd5fd3263.zip binutils-09d4e6bb2fe97ea03e881405c5e8960cd5fd3263.tar.gz binutils-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/cris')
-rw-r--r-- | sim/cris/local.mk | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/sim/cris/local.mk b/sim/cris/local.mk index 66ebc99..011f802 100644 --- a/sim/cris/local.mk +++ b/sim/cris/local.mk @@ -91,11 +91,10 @@ BUILT_SOURCES += \ ## FIXME: What is mono and what does "Use of `mono' is wip" mean (other ## than the apparent; some "mono" feature is work in progress)? %D%/mloopv10f.c %D%/engv10.h: %D%/stamp-mloop-v10f ; @true -%D%/stamp-mloop-v10f: $(srccom)/genmloop.sh %D%/mloop.in - $(AM_V_GEN)$(SHELL) $(srccom)/genmloop.sh -shell $(SHELL) \ +%D%/stamp-mloop-v10f: %D%/mloop.in $(srccom)/genmloop.sh + $(AM_V_GEN)$(CGEN_GEN_MLOOP) \ -mono -no-fast -pbb -switch semcrisv10f-switch.c \ - -cpu crisv10f \ - -infile $(srcdir)/%D%/mloop.in -outfile-prefix %D%/ -outfile-suffix -v10f + -cpu crisv10f -outfile-suffix -v10f $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/eng-v10f.hin %D%/engv10.h $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/mloop-v10f.cin %D%/mloopv10f.c $(AM_V_at)touch $@ @@ -103,11 +102,10 @@ BUILT_SOURCES += \ ## FIXME: What is mono and what does "Use of `mono' is wip" mean (other ## than the apparent; some "mono" feature is work in progress)? %D%/mloopv32f.c %D%/engv32.h: %D%/stamp-mloop-v32f ; @true -%D%/stamp-mloop-v32f: $(srccom)/genmloop.sh %D%/mloop.in - $(AM_V_GEN)$(SHELL) $(srccom)/genmloop.sh -shell $(SHELL) \ +%D%/stamp-mloop-v32f: %D%/mloop.in $(srccom)/genmloop.sh + $(AM_V_GEN)$(CGEN_GEN_MLOOP) \ -mono -no-fast -pbb -switch semcrisv32f-switch.c \ - -cpu crisv32f \ - -infile $(srcdir)/%D%/mloop.in -outfile-prefix %D%/ -outfile-suffix -v32f + -cpu crisv32f -outfile-suffix -v32f $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/eng-v32f.hin %D%/engv32.h $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/mloop-v32f.cin %D%/mloopv32f.c $(AM_V_at)touch $@ |