diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-02-12 05:17:15 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-02-17 20:36:41 -0500 |
commit | 7a1c557b8e6fb20d1f42df4f93a7375254b48e0c (patch) | |
tree | 72fccdda0e9219622e13ce7d5a56872dea74e9b1 /libgloss/configure | |
parent | f9dc151186d4e3a3e323ccc978f1cc962e8667ec (diff) | |
download | newlib-7a1c557b8e6fb20d1f42df4f93a7375254b48e0c.zip newlib-7a1c557b8e6fb20d1f42df4f93a7375254b48e0c.tar.gz newlib-7a1c557b8e6fb20d1f42df4f93a7375254b48e0c.tar.bz2 |
libgloss: merge mips configure script up a level
Move the minor mips-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 | 59 |
1 files changed, 57 insertions, 2 deletions
diff --git a/libgloss/configure b/libgloss/configure index 9d8da65..8662be4 100755 --- a/libgloss/configure +++ b/libgloss/configure @@ -594,6 +594,11 @@ MOXIE_BUILD_CRT0_FALSE MOXIE_BUILD_CRT0_TRUE MN10300_BSP_LIST MN10300_SCRIPT_LIST +MIPS_CRT0 +MIPS_BSP_LIST +MIPS_SCRIPT_LIST +MIPS_PART_SPECIFIC_DEFINES +MIPS_PART_SPECIFIC_OBJ MCORE_BSP_PREFIX M68K_TARGET I386_CPPFLAGS @@ -735,7 +740,6 @@ CCASFLAGS CPP' ac_subdirs_all='aarch64 sparc -mips arm' # Initialize some variables set by options. @@ -2747,8 +2751,10 @@ subdirs="$subdirs aarch64" config_wince=true ;; mips*-*-*) - subdirs="$subdirs mips" + ac_config_files="$ac_config_files mips/Makefile" + subdirs="$subdirs mips" + target_makefile_frag=${srcdir}/config/mips.mt ;; riscv*-*-*) ac_config_files="$ac_config_files riscv/Makefile" @@ -5083,6 +5089,54 @@ case "${target}" in esac +MIPS_PART_SPECIFIC_OBJ= +MIPS_PART_SPECIFIC_DEFINES= +MIPS_SCRIPT_LIST= +MIPS_BSP_LIST= +MIPS_CRT0=crt0.o + +case "${target}" in + mips*-tx39*-*|mipstx39*-*-*) + MIPS_SCRIPT_LIST="dve idt jmr3904app jmr3904dram jmr3904dram-java jmr3904app-java sde32 sde64 mti32 mti64 mti64_n32 mti64_64" + MIPS_BSP_LIST="libdve.a libidt.a libjmr3904.a" + ;; + mipsisa32-*-* | mipsisa32el-*-* | \ + mipsisa32r2-*-* | mipsisa32r2el-*-* | \ + mipsisa64*-*-*) + MIPS_CRT0="crt0_cfe.o crt0_cygmon.o crt0.o" + MIPS_SCRIPT_LIST="idt32 idt64 cfe" + MIPS_BSP_LIST="libcygmon.a libidt.a libcfe.a" + ;; + mips*-lsi*-*) + MIPS_PART_SPECIFIC_OBJ="entry.o" + MIPS_SCRIPT_LIST="lsi" + MIPS_BSP_LIST=liblsi.a + ;; + mips64vr5*-*-*) + MIPS_PART_SPECIFIC_OBJ="vr5xxx.o cma101.o" + MIPS_PART_SPECIFIC_DEFINES=-DR5000 + MIPS_SCRIPT_LIST="idt pmon ddb ddb-kseg0 lsi idtecoff nullmon" + MIPS_BSP_LIST="libidt.a libpmon.a liblsi.a libnullmon.a" + ;; + mips64vr-*-* | mips64vrel-*-*) + MIPS_PART_SPECIFIC_OBJ="vr5xxx.o cma101.o" + MIPS_SCRIPT_LIST="ddb ddb-kseg0 nullmon" + MIPS_BSP_LIST="libpmon.a libnullmon.a" + ;; + mips*) + MIPS_CRT0="crt0_cfe.o crt0.o" + MIPS_PART_SPECIFIC_OBJ="vr4300.o cma101.o" + MIPS_SCRIPT_LIST="idt pmon ddb ddb-kseg0 lsi cfe idtecoff nullmon sde32 sde64 mti32 mti64 mti64_n32 mti64_64" + MIPS_BSP_LIST="libidt.a libpmon.a liblsi.a libcfe.a libnullmon.a" + ;; +esac + + + + + + + MN10300_SCRIPT_LIST= MN10300_BSP_LIST= case "${target}" in @@ -5966,6 +6020,7 @@ do "pa/Makefile") CONFIG_FILES="$CONFIG_FILES pa/Makefile" ;; "i960/Makefile") CONFIG_FILES="$CONFIG_FILES i960/Makefile" ;; "sparc_leon/Makefile") CONFIG_FILES="$CONFIG_FILES sparc_leon/Makefile" ;; + "mips/Makefile") CONFIG_FILES="$CONFIG_FILES mips/Makefile" ;; "riscv/Makefile") CONFIG_FILES="$CONFIG_FILES riscv/Makefile" ;; "rs6000/Makefile") CONFIG_FILES="$CONFIG_FILES rs6000/Makefile" ;; "mn10200/Makefile") CONFIG_FILES="$CONFIG_FILES mn10200/Makefile" ;; |