aboutsummaryrefslogtreecommitdiff
path: root/libgloss/configure
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-27 00:38:25 -0500
committerMike Frysinger <vapier@gentoo.org>2024-01-19 20:26:52 -0500
commit1ed68b884c8c2c353322cae65d8faf7ce4bceb48 (patch)
treef9f00de5164a5e5f505d0992879fa700bc02c3a4 /libgloss/configure
parent3342c0ef8196d2c80e4cfc8332daf9468ef9154d (diff)
downloadnewlib-1ed68b884c8c2c353322cae65d8faf7ce4bceb48.zip
newlib-1ed68b884c8c2c353322cae65d8faf7ce4bceb48.tar.gz
newlib-1ed68b884c8c2c353322cae65d8faf7ce4bceb48.tar.bz2
libgloss: merge rx into top-level Makefile
Avoid a recursive make to speed things up a bit. A rx-elf build shows installed objects & libs produce same code.
Diffstat (limited to 'libgloss/configure')
-rwxr-xr-xlibgloss/configure19
1 files changed, 15 insertions, 4 deletions
diff --git a/libgloss/configure b/libgloss/configure
index c96473d..3838b12 100755
--- a/libgloss/configure
+++ b/libgloss/configure
@@ -652,6 +652,8 @@ CONFIG_WINCE_FALSE
CONFIG_WINCE_TRUE
CONFIG_V850_FALSE
CONFIG_V850_TRUE
+CONFIG_RX_FALSE
+CONFIG_RX_TRUE
CONFIG_RISCV_FALSE
CONFIG_RISCV_TRUE
CONFIG_NIOS2_FALSE
@@ -2960,9 +2962,7 @@ case "${target}" in
subdirs="$subdirs rl78"
;;
rx*-*-elf)
- ac_config_files="$ac_config_files rx/Makefile"
-
- subdirs="$subdirs rx"
+ config_rx=true
;;
arm*-*-elf | arm*-*-coff | arm*-*-*)
config_arm=true
@@ -3160,6 +3160,14 @@ else
CONFIG_RISCV_FALSE=
fi
+ if test x$config_rx = xtrue; then
+ CONFIG_RX_TRUE=
+ CONFIG_RX_FALSE='#'
+else
+ CONFIG_RX_TRUE='#'
+ CONFIG_RX_FALSE=
+fi
+
if test x$config_v850 = xtrue; then
CONFIG_V850_TRUE=
CONFIG_V850_FALSE='#'
@@ -5739,6 +5747,10 @@ if test -z "${CONFIG_RISCV_TRUE}" && test -z "${CONFIG_RISCV_FALSE}"; then
as_fn_error $? "conditional \"CONFIG_RISCV\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
+if test -z "${CONFIG_RX_TRUE}" && test -z "${CONFIG_RX_FALSE}"; then
+ as_fn_error $? "conditional \"CONFIG_RX\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
if test -z "${CONFIG_V850_TRUE}" && test -z "${CONFIG_V850_FALSE}"; then
as_fn_error $? "conditional \"CONFIG_V850\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
@@ -6424,7 +6436,6 @@ do
"xc16x/Makefile") CONFIG_FILES="$CONFIG_FILES xc16x/Makefile" ;;
"m32c/Makefile") CONFIG_FILES="$CONFIG_FILES m32c/Makefile" ;;
"rl78/Makefile") CONFIG_FILES="$CONFIG_FILES rl78/Makefile" ;;
- "rx/Makefile") CONFIG_FILES="$CONFIG_FILES rx/Makefile" ;;
"spu/Makefile") CONFIG_FILES="$CONFIG_FILES spu/Makefile" ;;
"tic6x/Makefile") CONFIG_FILES="$CONFIG_FILES tic6x/Makefile" ;;
"or1k/Makefile") CONFIG_FILES="$CONFIG_FILES or1k/Makefile" ;;