diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-02-11 14:51:34 +0300 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-02-17 04:11:55 +0300 |
commit | 91019da446b3c3e1be728cb6eaf2794706bfd897 (patch) | |
tree | 7f5ef5ff445892d6916ab8b32c3003947e47221a /libgloss/configure | |
parent | e7f8999918a09cdb9a93daea72845b0aa2c99bf4 (diff) |
libgloss: merge mcore configure script up a level
Move the minor mcore-specific logic to a dedicated file & namespace them
so we can merge its configure logic up a level.
Diffstat (limited to 'libgloss/configure')
-rwxr-xr-x | libgloss/configure | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/libgloss/configure b/libgloss/configure index 772c4e79a..492e2d5a6 100755 --- a/libgloss/configure +++ b/libgloss/configure @@ -592,6 +592,7 @@ target_makefile_frag_path host_makefile_frag_path MOXIE_BUILD_CRT0_FALSE MOXIE_BUILD_CRT0_TRUE +MCORE_BSP_PREFIX I386_CPPFLAGS CPP am__fastdepCCAS_FALSE @@ -734,7 +735,6 @@ wince mips mn10200 mn10300 -mcore arm' # Initialize some variables set by options. @@ -2812,8 +2812,9 @@ subdirs="$subdirs aarch64" subdirs="$subdirs lm32" ;; mcore-*-*) - subdirs="$subdirs mcore" + ac_config_files="$ac_config_files mcore/Makefile" + subdirs="$subdirs mcore" ;; mep-*-*) ac_config_files="$ac_config_files mep/Makefile" @@ -5011,6 +5012,17 @@ $as_echo "#define MISSING_SYSCALL_NAMES 1" >>confdefs.h ;; esac +MCORE_BSP_PREFIX= +case "${target}" in + mcore-*-elf) + MCORE_BSP_PREFIX=elf- + ;; + mcore-*-pe) + MCORE_BSP_PREFIX=pe- + ;; +esac + + case "${target}" in moxie-*-moxiebox*) MOXIE_BUILD_CRT0_TRUE='#' @@ -5864,6 +5876,7 @@ do "frv/Makefile") CONFIG_FILES="$CONFIG_FILES frv/Makefile" ;; "ft32/Makefile") CONFIG_FILES="$CONFIG_FILES ft32/Makefile" ;; "lm32/Makefile") CONFIG_FILES="$CONFIG_FILES lm32/Makefile" ;; + "mcore/Makefile") CONFIG_FILES="$CONFIG_FILES mcore/Makefile" ;; "mep/Makefile") CONFIG_FILES="$CONFIG_FILES mep/Makefile" ;; "moxie/Makefile") CONFIG_FILES="$CONFIG_FILES moxie/Makefile" ;; "microblaze/Makefile") CONFIG_FILES="$CONFIG_FILES microblaze/Makefile" ;; |