From: Mike Frysinger Date: Mon, 2 Jan 2023 02:35:08 +0000 (-0500) Subject: sim: cgen: drop common subdir build rules X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3b89a7b8ce97e7e3773bbd1ebcf23b269b2d6669;p=binutils-gdb.git sim: cgen: drop common subdir build rules Now that everything has been hoisted to the top-level, we can delete this unused logic. --- diff --git a/sim/arch-subdir.mk.in b/sim/arch-subdir.mk.in index 0626d12df10..85e1d84ede1 100644 --- a/sim/arch-subdir.mk.in +++ b/sim/arch-subdir.mk.in @@ -62,12 +62,6 @@ MAINT = ; @true # The following line is commented depending upon --enable-maintainer-mode. @MAINTAINER_MODE_TRUE@MAINT = -# cgen support, enable with --enable-cgen-maint -CGEN_MAINT = ; @true -# The following line is commented in or out depending upon --enable-cgen-maint. -@CGEN_MAINT@CGEN_MAINT = -CGENDIR = @cgendir@ - SIM_INLINE = @SIM_INLINE@ SIM_HW_CFLAGS = @SIM_HW_CFLAGS@ diff --git a/sim/common/Make-common.in b/sim/common/Make-common.in index ab9b3a3985f..35477d94bb8 100644 --- a/sim/common/Make-common.in +++ b/sim/common/Make-common.in @@ -283,72 +283,4 @@ Makefile: Makefile.in $(srccom)/Make-common.in $(config.status) @SIM_COMMON_BUILD_FALSE@config.status: configure @SIM_COMMON_BUILD_FALSE@ $(ECHO_GEN) $(SHELL) ./config.status --recheck - -# CGEN support - -GUILE = `if [ -f ../../guile/libguile/guile ]; then echo ../../guile/libguile/guile; else echo guile ; fi` -CGEN = "$(GUILE) -l $(CGENDIR)/guile.scm -s" -CGENFLAGS = -v -CGEN_CPU_DIR = $(CGENDIR)/cpu - -# Most ports use the files here instead of cgen/cpu. -CPU_DIR = $(srcroot)/cpu - -CGEN_READ_SCM = $(CGENDIR)/sim.scm -CGEN_ARCH_SCM = $(CGENDIR)/sim-arch.scm -CGEN_CPU_SCM = $(CGENDIR)/sim-cpu.scm $(CGENDIR)/sim-model.scm -CGEN_DECODE_SCM = $(CGENDIR)/sim-decode.scm -CGEN_DESC_SCM = $(CGENDIR)/desc.scm $(CGENDIR)/desc-cpu.scm - -# Various choices for which cpu specific files to generate. -# These are passed to cgen.sh in the "extrafiles" argument. -CGEN_CPU_EXTR = /extr/ -CGEN_CPU_READ = /read/ -CGEN_CPU_WRITE = /write/ -CGEN_CPU_SEM = /sem/ -CGEN_CPU_SEMSW = /semsw/ - -CGEN_FLAGS_TO_PASS = \ - CGEN='$(CGEN)' \ - CGENFLAGS="$(CGENFLAGS)" - -# We store the generated files in the source directory until we decide to -# ship a Scheme interpreter with gdb/binutils. Maybe we never will. - -cgen-arch: force - $(SHELL) $(srccom)/cgen.sh arch $(srcdir) \ - $(CGEN) $(CGENDIR) "$(CGENFLAGS)" \ - $(arch) "$(FLAGS)" ignored "$(isa)" $(mach) ignored \ - $(archfile) ignored - -cgen-cpu: force - $(SHELL) $(srccom)/cgen.sh cpu $(srcdir) \ - $(CGEN) $(CGENDIR) "$(CGENFLAGS)" \ - $(arch) "$(FLAGS)" $(cpu) "$(isa)" $(mach) "$(SUFFIX)" \ - $(archfile) "$(EXTRAFILES)" - -cgen-defs: force - $(SHELL) $(srccom)/cgen.sh defs $(srcdir) \ - $(CGEN) $(CGENDIR) "$(CGENFLAGS)" \ - $(arch) "$(FLAGS)" $(cpu) "$(isa)" $(mach) "$(SUFFIX)" \ - $(archfile) ignored - -cgen-decode: force - $(SHELL) $(srccom)/cgen.sh decode $(srcdir) \ - $(CGEN) $(CGENDIR) "$(CGENFLAGS)" \ - $(arch) "$(FLAGS)" $(cpu) "$(isa)" $(mach) "$(SUFFIX)" \ - $(archfile) "$(EXTRAFILES)" - -cgen-cpu-decode: force - $(SHELL) $(srccom)/cgen.sh cpu-decode $(srcdir) \ - $(CGEN) $(CGENDIR) "$(CGENFLAGS)" \ - $(arch) "$(FLAGS)" $(cpu) "$(isa)" $(mach) "$(SUFFIX)" \ - $(archfile) "$(EXTRAFILES)" - -cgen-desc: force - $(SHELL) $(srccom)/cgen.sh desc $(srcdir) \ - $(CGEN) $(CGENDIR) "$(CGENFLAGS)" \ - $(arch) "$(FLAGS)" $(cpu) "$(isa)" $(mach) "$(SUFFIX)" \ - $(archfile) ignored $(opcfile) - ## End COMMON_POST_CONFIG_FRAG