From 5ae9b7faf9d8ee65a965b3cd40e2fad63f7884ab Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Fri, 1 Jan 2010 16:52:55 +0100 Subject: libc/uClibc: do not mangle ARM {E,O}ABI when ARCH != ARM diff --git a/scripts/build/libc/uClibc.sh b/scripts/build/libc/uClibc.sh index 61c44f4..21b09fb 100644 --- a/scripts/build/libc/uClibc.sh +++ b/scripts/build/libc/uClibc.sh @@ -201,17 +201,19 @@ mungeuClibcConfig() { ENDSED # Ah. We may one day need architecture-specific handler here... - # Hack the ARM {E,O}ABI into the config file - if [ "${CT_ARCH_ARM_EABI}" = "y" ]; then - cat <<-ENDSED - s/.*(CONFIG_ARM_OABI).*/# \\1 is not set/ - s/.*(CONFIG_ARM_EABI).*/\\1=y/ - ENDSED - else - cat <<-ENDSED - s/.*(CONFIG_ARM_OABI).*/\\1=y/ - s/.*(CONFIG_ARM_EABI).*/# \\1 is not set/ - ENDSED + if [ "${CT_ARCH}" = "arm" ]; then + # Hack the ARM {E,O}ABI into the config file + if [ "${CT_ARCH_ARM_EABI}" = "y" ]; then + cat <<-ENDSED + s/.*(CONFIG_ARM_OABI).*/# \\1 is not set/ + s/.*(CONFIG_ARM_EABI).*/\\1=y/ + ENDSED + else + cat <<-ENDSED + s/.*(CONFIG_ARM_OABI).*/\\1=y/ + s/.*(CONFIG_ARM_EABI).*/# \\1 is not set/ + ENDSED + fi fi # Accomodate for old and new uClibc versions, where the -- cgit v0.10.2-6-g49f6