aboutsummaryrefslogtreecommitdiff
path: root/sim/or1k/local.mk
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-01-01 21:32:29 -0500
committerMike Frysinger <vapier@gentoo.org>2023-01-02 20:31:54 -0500
commitf1a0a99c04fb1b1a66a451cd01f58c69f8e593e3 (patch)
treed5aa39aa8b385bfe9bf94a13f2abadb9fd395291 /sim/or1k/local.mk
parentcf764309dc62076148eda5be342e27c22330157b (diff)
downloadbinutils-f1a0a99c04fb1b1a66a451cd01f58c69f8e593e3.zip
binutils-f1a0a99c04fb1b1a66a451cd01f58c69f8e593e3.tar.gz
binutils-f1a0a99c04fb1b1a66a451cd01f58c69f8e593e3.tar.bz2
sim: or1k: hoist cgen rules to top-level
Diffstat (limited to 'sim/or1k/local.mk')
-rw-r--r--sim/or1k/local.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/sim/or1k/local.mk b/sim/or1k/local.mk
index b332bfa..b118143 100644
--- a/sim/or1k/local.mk
+++ b/sim/or1k/local.mk
@@ -46,3 +46,14 @@ SIM_ALL_RECURSIVE_DEPS += $(%C%_BUILD_OUTPUTS)
$(AM_V_at)touch $@
MOSTLYCLEANFILES += $(%C%_BUILD_OUTPUTS)
+
+## Target that triggers all cgen targets that works when --disable-cgen-maint.
+%D%/cgen: %D%/cgen-arch %D%/cgen-cpu-decode
+
+%D%/cgen-arch:
+ $(AM_V_GEN)mach=or32,or32nd FLAGS="with-scache"; $(CGEN_GEN_ARCH)
+%D%/arch.h %D%/arch.c %D%/cpuall.h: @CGEN_MAINT@ %D%/cgen-arch
+
+%D%/cgen-cpu-decode:
+ $(AM_V_GEN)cpu=or1k32bf mach=or32,or32nd FLAGS="with-scache" EXTRAFILES="$(CGEN_CPU_SEM) $(CGEN_CPU_SEMSW)"; $(CGEN_GEN_CPU_DECODE)
+%D%/cpu.h %D%/cpu.c %D%/model.c %D%/sem.c %D%/sem-switch.c %D%/decode.c %D%/decode.h: @CGEN_MAINT@ %D%/cgen-cpu-decode