# HG changeset patch # User "Yann E. MORIN" # Date 1284322512 -7200 # Node ID f5de4d088dc9fb25fbf238ec3d1e0fa098c02636 # Parent 034de6dca38f1c48fe296c871b2ce53d1c4dc35c libc/uClibc: use the MIPS ABI selection Use the MIPS ABI selection to properly munge the uClibc config file. This has the side effect to force the ISA: - n32 ABI -> MIPS-III ISA - n64 ABI -> MIPS64 ISA Signed-off-by: "Yann E. MORIN" diff -r 034de6dca38f -r f5de4d088dc9 scripts/build/libc/uClibc.sh --- a/scripts/build/libc/uClibc.sh Sun Sep 12 22:14:04 2010 +0200 +++ b/scripts/build/libc/uClibc.sh Sun Sep 12 22:15:12 2010 +0200 @@ -297,6 +297,40 @@ ENDSED fi ;; + mips) + case "${CT_ARCH_mips_ABI}" in + 32) + cat <<-ENDSED + s/.*(CONFIG_MIPS_O32_ABI).*/\\1=y/ + s/.*(CONFIG_MIPS_N32_ABI).*/# \\1 is not set/ + s/.*(CONFIG_MIPS_N64_ABI).*/# \\1 is not set/ + ENDSED + ;; + # For n32 and n64, also force the ISA + # Not so sure this is pertinent, so it's + # commented out for now. It would take a + # (MIPS+uClibc) expert to either remove + # or re-enable the overrides. + n32) + cat <<-ENDSED + s/.*(CONFIG_MIPS_O32_ABI).*/# \\1 is not set/ + s/.*(CONFIG_MIPS_N32_ABI).*/\\1=y/ + s/.*(CONFIG_MIPS_N64_ABI).*/# \\1 is not set/ + s/.*(CONFIG_MIPS_ISA_.*).*/# \\1 is not set/ + s/.*(CONFIG_MIPS_ISA_3).*/\\1=y/ + ENDSED + ;; + 64) + cat <<-ENDSED + s/.*(CONFIG_MIPS_O32_ABI).*/# \\1 is not set/ + s/.*(CONFIG_MIPS_N32_ABI).*/# \\1 is not set/ + s/.*(CONFIG_MIPS_N64_ABI).*/\\1=y/ + s/.*(CONFIG_MIPS_ISA_.*).*/# \\1 is not set/ + s/.*(CONFIG_MIPS_ISA_MIPS64).*/\\1=y/ + ENDSED + ;; + esac + ;; esac # Accomodate for old and new uClibc versions, where the