diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-10-31 03:29:36 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-11-02 22:59:07 -0400 |
commit | 0a129eb19a773d930d60b084209570f663db2053 (patch) | |
tree | c29451f6fe7b9d2ae8ebc071b7a04fb36033973a /sim/bpf/Makefile.in | |
parent | d2a5dbc744548e173ba1687e1a63a8c2196c7122 (diff) | |
download | gdb-0a129eb19a773d930d60b084209570f663db2053.zip gdb-0a129eb19a773d930d60b084209570f663db2053.tar.gz gdb-0a129eb19a773d930d60b084209570f663db2053.tar.bz2 |
sim: hoist cgen mloop rules up to common builds
These rules don't depend on the target compiler settings, so hoist
the build logic up to the common builds for better parallelization.
We have to extend the genmloop.sh logic a bit to allow outputting
to a subdir since it always assumed cwd was the right place.
We leave the cgen maintainer rules in the subdirs for now as they
aren't normally run, and they rely on cgen logic that has not yet
been generalized.
Diffstat (limited to 'sim/bpf/Makefile.in')
-rw-r--r-- | sim/bpf/Makefile.in | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/sim/bpf/Makefile.in b/sim/bpf/Makefile.in index 05a246e..b12c18d 100644 --- a/sim/bpf/Makefile.in +++ b/sim/bpf/Makefile.in @@ -161,33 +161,7 @@ $(srcdir)/sem-be.c $(srcdir)/decode-be.c $(srcdir)/decode-be.h: \ $(CGEN_MAINT) stamp-decode-be @true -# Note the following files are generated in objdir, not srcdir. - -stamp-mloop: stamp-mloop-le stamp-mloop-be - -stamp-mloop-le: $(srcdir)/../common/genmloop.sh mloop.in Makefile - $(ECHO_STAMP) mloop-le.c eng-le.h - $(SILENCE) $(SHELL) $(srccom)/genmloop.sh -shell $(SHELL) \ - -mono -scache -prefix bpfbf_ebpfle -cpu bpfbf \ - -infile $(srcdir)/mloop.in -outfile-suffix -le - $(SILENCE) $(SHELL) $(srcroot)/move-if-change eng-le.hin eng-le.h - $(SILENCE) $(SHELL) $(srcroot)/move-if-change mloop-le.cin mloop-le.c - $(SILENCE) touch $@ -mloop-le.c eng-le.h: stamp-mloop-le - @true - -stamp-mloop-be: $(srcdir)/../common/genmloop.sh mloop.in Makefile - $(ECHO_STAMP) mloop-be.c eng-be.h - $(SILENCE) $(SHELL) $(srccom)/genmloop.sh -shell $(SHELL) \ - -mono -scache -prefix bpfbf_ebpfbe -cpu bpfbf \ - -infile $(srcdir)/mloop.in -outfile-suffix -be - $(SILENCE) $(SHELL) $(srcroot)/move-if-change eng-be.hin eng-be.h - $(SILENCE) $(SHELL) $(srcroot)/move-if-change mloop-be.cin mloop-be.c - $(SILENCE) touch $@ -mloop-be.c eng-be.h: stamp-mloop-be - @true - .PHONY = bpf-clean bpf-clean: - rm -f stamp-arch stamp-cpu stamp-decode stamp-defs stamp-mloop + rm -f stamp-arch stamp-cpu stamp-decode stamp-defs |