* [PATCH] sim: add arch-specific conditional logic
@ 2021-10-31 8:06 Mike Frysinger
0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2021-10-31 8:06 UTC (permalink / raw)
To: gdb-patches
This will make it easy to include arch-specific logic (build files)
as we migrate ports to the common top level build.
---
sim/configure | 562 ++++++++++++++++++++++++++++++++++++++++++++---
sim/configure.ac | 3 +
2 files changed, 532 insertions(+), 33 deletions(-)
diff --git a/sim/configure.ac b/sim/configure.ac
index 5d36e5556d34..00d1e8d4b91d 100644
--- a/sim/configure.ac
+++ b/sim/configure.ac
@@ -92,15 +92,18 @@ dnl arg[2] is the arch subdir name.
dnl arg[3] is whether the arch has a dedicated configure script.
dnl arg[4] is any additional shell code to run for this arch.
m4_define([SIM_TARGET], [dnl
+ sim_enable_arch_$2=false
case "${targ}" in
all|$1)
if test "${targ}" = "${target}"; then
SIM_PRIMARY_TARGET=$2
fi
SIM_BUILD_TARGET($2, $3)
+ sim_enable_arch_$2=true
$4
;;
esac
+ AM_CONDITIONAL([SIM_ENABLE_ARCH_$2], [${sim_enable_arch_$2}])
])
dnl WHEN ADDING ENTRIES TO THIS MATRIX:
--
2.33.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-10-31 8:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-31 8:06 [PATCH] sim: add arch-specific conditional logic 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).