aboutsummaryrefslogtreecommitdiff
path: root/sim/configure
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-11-07 23:07:43 +0700
committerMike Frysinger <vapier@gentoo.org>2022-11-07 23:26:07 +0700
commit871aa3b9ee7b1067bffa05549190c6051cf06fe5 (patch)
treef6ecf73fdcdfe8fdad9921e55819f7704079c709 /sim/configure
parent4cf83930c1ecf18c7157a5be6bed0a116b39e9b8 (diff)
downloadgdb-871aa3b9ee7b1067bffa05549190c6051cf06fe5.zip
gdb-871aa3b9ee7b1067bffa05549190c6051cf06fe5.tar.gz
gdb-871aa3b9ee7b1067bffa05549190c6051cf06fe5.tar.bz2
sim: v850: drop subdir configure logic
We've been using this only to set the default word size to 32. We can easily move this into the makefile via a -D compiler flag and clean up the build logic quite a bit.
Diffstat (limited to 'sim/configure')
-rwxr-xr-xsim/configure26
1 files changed, 21 insertions, 5 deletions
diff --git a/sim/configure b/sim/configure
index 6e524f7..e25d60c 100755
--- a/sim/configure
+++ b/sim/configure
@@ -1111,8 +1111,7 @@ AS_FOR_TARGET_EXAMPLE_SYNACOR
LD_FOR_TARGET_EXAMPLE_SYNACOR
CC_FOR_TARGET_EXAMPLE_SYNACOR'
ac_subdirs_all='mips
-ppc
-v850'
+ppc'
# Initialize some variables set by options.
ac_init_help=
@@ -12426,7 +12425,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12429 "configure"
+#line 12428 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -12532,7 +12531,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12535 "configure"
+#line 12534 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -15681,8 +15680,11 @@ fi
SIM_PRIMARY_TARGET=v850
fi
as_fn_append SIM_ENABLED_ARCHES " v850"
- subdirs="$subdirs v850"
+ ac_config_files="$ac_config_files v850/Makefile.sim:v850/Makefile.in"
+ ac_config_commands="$ac_config_commands v850/Makefile"
+
+ as_fn_append SIM_SUBDIRS " v850"
ac_config_files="$ac_config_files v850/.gdbinit:common/gdbinit.in"
@@ -17588,6 +17590,8 @@ do
"erc32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS erc32/Makefile" ;;
"erc32/.gdbinit") CONFIG_FILES="$CONFIG_FILES erc32/.gdbinit:common/gdbinit.in" ;;
"depdir-erc32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-erc32" ;;
+ "v850/Makefile.sim") CONFIG_FILES="$CONFIG_FILES v850/Makefile.sim:v850/Makefile.in" ;;
+ "v850/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS v850/Makefile" ;;
"v850/.gdbinit") CONFIG_FILES="$CONFIG_FILES v850/.gdbinit:common/gdbinit.in" ;;
"depdir-v850") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-v850" ;;
"example-synacor/Makefile.sim") CONFIG_FILES="$CONFIG_FILES example-synacor/Makefile.sim:example-synacor/Makefile.in" ;;
@@ -19290,6 +19294,18 @@ $as_echo X"$file" |
rm -f erc32/Makesim1.tmp erc32/Makesim2.tmp
;;
"depdir-erc32":C) $SHELL $ac_aux_dir/mkinstalldirs erc32/$DEPDIR ;;
+ "v850/Makefile":C) sed -n \
+ -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
+ /^srcdir = / s:$:/v850:
+ p
+ }' \
+ <Make-common.sim >v850/Makesim1.tmp
+ sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >v850/Makesim2.tmp
+ sed -e '/^## COMMON_PRE_/ r v850/Makesim1.tmp' \
+ -e '/^## COMMON_POST_/ r v850/Makesim2.tmp' \
+ <v850/Makefile.sim >v850/Makefile
+ rm -f v850/Makesim1.tmp v850/Makesim2.tmp
+ ;;
"depdir-v850":C) $SHELL $ac_aux_dir/mkinstalldirs v850/$DEPDIR ;;
"example-synacor/Makefile":C) sed -n \
-e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {