summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-09-10 11:23:58 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-09-10 11:23:58 (GMT)
commit3fcdd28e048a0b5333175509d119c7450b918ca9 (patch)
tree713c1f5bcb8b87020a251538afbd4d6fea035b30 /scripts
parentb996e47799ba6f245d0dc962dcb738308aeb719f (diff)
libc/uClibc: change munging code based on target arch
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/libc/uClibc.sh30
1 files changed, 16 insertions, 14 deletions
diff --git a/scripts/build/libc/uClibc.sh b/scripts/build/libc/uClibc.sh
index 02d11ff..1247ba7 100644
--- a/scripts/build/libc/uClibc.sh
+++ b/scripts/build/libc/uClibc.sh
@@ -282,20 +282,22 @@ mungeuClibcConfig() {
ENDSED
# Ah. We may one day need architecture-specific handler here...
- 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
+ case "${CT_ARCH}" in
+ arm)
+ # 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
+ ;;
+ esac
# Accomodate for old and new uClibc versions, where the
# way to select between big/little endian has changed