aboutsummaryrefslogtreecommitdiff
path: root/sim/common
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-01-02 00:11:00 -0500
committerMike Frysinger <vapier@gentoo.org>2023-01-14 21:01:33 -0500
commit1b907fc09fc28c40ca59d90886227fefbb34c62f (patch)
tree2a228cd51210069ec3d1b1163a39dffac3b5aedf /sim/common
parent72be276fffe304a478ecadad34bb89fe33cdf052 (diff)
downloadbinutils-1b907fc09fc28c40ca59d90886227fefbb34c62f.zip
binutils-1b907fc09fc28c40ca59d90886227fefbb34c62f.tar.gz
binutils-1b907fc09fc28c40ca59d90886227fefbb34c62f.tar.bz2
sim: common: simplify modules.c deps
Now that all ports (other than ppc) build in the top-level, we don't need to expand all the modules.c targets as a recursive dep. Each port depends on their respective file now, and the ppc port doesn't use it at all.
Diffstat (limited to 'sim/common')
-rw-r--r--sim/common/local.mk5
1 files changed, 1 insertions, 4 deletions
diff --git a/sim/common/local.mk b/sim/common/local.mk
index f6eee5c..89843ea 100644
--- a/sim/common/local.mk
+++ b/sim/common/local.mk
@@ -160,10 +160,7 @@ GEN_MODULES_C_SRCS = \
.PRECIOUS: %/stamp-modules
## NB: The ppc port doesn't currently utilize the modules API, so skip it.
-%C%_GEN_MODULES_C_TARGETS = $(patsubst %,%/modules.c,$(filter-out ppc,$(SIM_ENABLED_ARCHES)))
-MOSTLYCLEANFILES += $(%C%_GEN_MODULES_C_TARGETS) $(patsubst %,%/stamp-modules,$(SIM_ENABLED_ARCHES))
-## TODO: Drop this once each port's local.mk:libsim.a depends on it themself.
-SIM_ALL_RECURSIVE_DEPS += $(%C%_GEN_MODULES_C_TARGETS)
+MOSTLYCLEANFILES += $(SIM_ENABLED_ARCHES:%=%/modules.c) $(SIM_ENABLED_ARCHES:%=%/stamp-modules)
LIBIBERTY_LIB = ../libiberty/libiberty.a
BFD_LIB = ../bfd/libbfd.la