1.1 --- a/scripts/build/libc/uClibc.sh Sun Sep 12 22:14:04 2010 +0200
1.2 +++ b/scripts/build/libc/uClibc.sh Sun Sep 12 22:15:12 2010 +0200
1.3 @@ -297,6 +297,40 @@
1.4 ENDSED
1.5 fi
1.6 ;;
1.7 + mips)
1.8 + case "${CT_ARCH_mips_ABI}" in
1.9 + 32)
1.10 + cat <<-ENDSED
1.11 + s/.*(CONFIG_MIPS_O32_ABI).*/\\1=y/
1.12 + s/.*(CONFIG_MIPS_N32_ABI).*/# \\1 is not set/
1.13 + s/.*(CONFIG_MIPS_N64_ABI).*/# \\1 is not set/
1.14 + ENDSED
1.15 + ;;
1.16 + # For n32 and n64, also force the ISA
1.17 + # Not so sure this is pertinent, so it's
1.18 + # commented out for now. It would take a
1.19 + # (MIPS+uClibc) expert to either remove
1.20 + # or re-enable the overrides.
1.21 + n32)
1.22 + cat <<-ENDSED
1.23 + s/.*(CONFIG_MIPS_O32_ABI).*/# \\1 is not set/
1.24 + s/.*(CONFIG_MIPS_N32_ABI).*/\\1=y/
1.25 + s/.*(CONFIG_MIPS_N64_ABI).*/# \\1 is not set/
1.26 + s/.*(CONFIG_MIPS_ISA_.*).*/# \\1 is not set/
1.27 + s/.*(CONFIG_MIPS_ISA_3).*/\\1=y/
1.28 + ENDSED
1.29 + ;;
1.30 + 64)
1.31 + cat <<-ENDSED
1.32 + s/.*(CONFIG_MIPS_O32_ABI).*/# \\1 is not set/
1.33 + s/.*(CONFIG_MIPS_N32_ABI).*/# \\1 is not set/
1.34 + s/.*(CONFIG_MIPS_N64_ABI).*/\\1=y/
1.35 + s/.*(CONFIG_MIPS_ISA_.*).*/# \\1 is not set/
1.36 + s/.*(CONFIG_MIPS_ISA_MIPS64).*/\\1=y/
1.37 + ENDSED
1.38 + ;;
1.39 + esac
1.40 + ;;
1.41 esac
1.42
1.43 # Accomodate for old and new uClibc versions, where the