diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-01-01 15:52:55 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-01-01 15:52:55 (GMT) |
commit | 5ae9b7faf9d8ee65a965b3cd40e2fad63f7884ab (patch) | |
tree | fa6e70bee372c2e1bb79b3e882a7ce68ebea8936 /scripts/build/libc | |
parent | d7442204472ff4ee9c7ee881901edfe47823a12c (diff) |
libc/uClibc: do not mangle ARM {E,O}ABI when ARCH != ARM
Diffstat (limited to 'scripts/build/libc')
-rw-r--r-- | scripts/build/libc/uClibc.sh | 24 |
1 files changed, 13 insertions, 11 deletions
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 |