aboutsummaryrefslogtreecommitdiff
path: root/sim/common
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-11-06 21:40:56 +0700
committerMike Frysinger <vapier@gentoo.org>2022-12-21 22:21:25 -0500
commit3d0421178673d74a790637e31fed944bf48aa3aa (patch)
tree39439636af47f282ad5ce4f71414ba369ab5e44b /sim/common
parentd47ea1b9c1fb6d57271697f186f7141ef4aa41c4 (diff)
downloadgdb-3d0421178673d74a790637e31fed944bf48aa3aa.zip
gdb-3d0421178673d74a790637e31fed944bf48aa3aa.tar.gz
gdb-3d0421178673d74a790637e31fed944bf48aa3aa.tar.bz2
sim: build: hoist lists of hw devices up
We need these in the top-level to generate libsim.a, but also in the subdirs to generate hw-config.h. Move it to the local.mk, and pass it down when running recursive make. This avoids duplication, and makes it available to both. We can simplify this once we move the various steps up to the top-level too.
Diffstat (limited to 'sim/common')
-rw-r--r--sim/common/Make-common.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/common/Make-common.in b/sim/common/Make-common.in
index 684d7d8..ff4e171 100644
--- a/sim/common/Make-common.in
+++ b/sim/common/Make-common.in
@@ -136,7 +136,7 @@ BUILD_CFLAGS = $(CFLAGS_FOR_BUILD) $(CSEARCH)
COMMON_DEP_CFLAGS = $(CONFIG_CFLAGS) $(CSEARCH) $(SIM_EXTRA_CFLAGS)
-SIM_HW_DEVICES = $(SIM_HW_DEVICES_) $(SIM_EXTRA_HW_DEVICES)
+SIM_HW_DEVICES = $(SIM_HW_DEVICES_) $($(arch)_SIM_EXTRA_HW_DEVICES)
SIM_NEW_COMMON_OBJS = $(SIM_NEW_COMMON_OBJS_) $(SIM_HW_OBJS)
LIBIBERTY_LIB = ../../libiberty/libiberty.a