* [PATCH] sim: unify dtc tool checks
@ 2021-06-20 2:30 Mike Frysinger
0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2021-06-20 2:30 UTC (permalink / raw)
To: gdb-patches
Only one arch uses this currently, but others could too. By moving
it up to the common checks, it'll also let us simplify the moxie code
significantly.
---
sim/Makefile.in | 1 +
sim/arch-subdir.mk.in | 1 +
sim/configure | 98 +++++++++++++++++++++++++++++++++++++-
sim/m4/sim_ac_toolchain.m4 | 2 +
sim/moxie/Makefile.in | 2 -
sim/moxie/configure | 94 ------------------------------------
sim/moxie/configure.ac | 2 -
7 files changed, 100 insertions(+), 100 deletions(-)
diff --git a/sim/arch-subdir.mk.in b/sim/arch-subdir.mk.in
index 8128a27971d7..5f59f8808073 100644
--- a/sim/arch-subdir.mk.in
+++ b/sim/arch-subdir.mk.in
@@ -39,6 +39,7 @@ LDFLAGS = @LDFLAGS@
AR = @AR@
AR_FLAGS = rc
RANLIB = @RANLIB@
+DTC = @DTC@
DEPMODE = @CCDEPMODE@
DEPDIR = @DEPDIR@
diff --git a/sim/m4/sim_ac_toolchain.m4 b/sim/m4/sim_ac_toolchain.m4
index 2f1a42868ca9..47b992880f07 100644
--- a/sim/m4/sim_ac_toolchain.m4
+++ b/sim/m4/sim_ac_toolchain.m4
@@ -24,6 +24,8 @@ AC_C_BIGENDIAN
AC_ARG_PROGRAM
AC_PROG_INSTALL
+AC_CHECK_TOOL(DTC, dtc)
+
dnl Setup toolchain settings for build-time tools..
if test "x$cross_compiling" = "xno"; then
: "${AR_FOR_BUILD:=\$(AR)}"
diff --git a/sim/moxie/Makefile.in b/sim/moxie/Makefile.in
index bd58074491fc..eed4d1cf675b 100644
--- a/sim/moxie/Makefile.in
+++ b/sim/moxie/Makefile.in
@@ -17,8 +17,6 @@
## COMMON_PRE_CONFIG_FRAG
-DTC = @DTC@
-
dtbdir = @datadir@/gdb/dtb
SIM_OBJS = \
diff --git a/sim/moxie/configure.ac b/sim/moxie/configure.ac
index c7475b799a6f..08bf6ff8acbc 100644
--- a/sim/moxie/configure.ac
+++ b/sim/moxie/configure.ac
@@ -4,6 +4,4 @@ AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config])
SIM_AC_COMMON
-AC_CHECK_TOOL(DTC, dtc)
-
SIM_AC_OUTPUT
--
2.31.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-20 2:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-20 2:30 [PATCH] sim: unify dtc tool checks Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).