# HG changeset patch # User "Yann E. MORIN" # Date 1210885013 0 # Node ID be875e19bc28976d965740c5e22e49ac480b6889 # Parent 1b0c1de0bcc92b675b685c2665a0a9e507b9fd30 Backport #631 from trunk: Export endianness CFLAGS. Fix endianness CFLAGS for MIPS. /branches/1.1/scripts/functions | 1 1 0 0 + /branches/1.1/arch/mips/functions | 6 6 0 0 ++++++ 2 files changed, 7 insertions(+) diff -r 1b0c1de0bcc9 -r be875e19bc28 arch/mips/functions --- a/arch/mips/functions Thu May 15 20:55:46 2008 +0000 +++ b/arch/mips/functions Thu May 15 20:56:53 2008 +0000 @@ -3,4 +3,10 @@ CT_DoArchValues() { # The architecture part of the tuple: CT_TARGET_ARCH="${CT_ARCH}${target_endian_el}" + + # Override CFLAGS for endianness: + case "${CT_ARCH_BE},${CT_ARCH_LE}" in + y,) CT_ARCH_ENDIAN_CFLAG="-EB";; + ,y) CT_ARCH_ENDIAN_CFLAG="-EL";; + esac } diff -r 1b0c1de0bcc9 -r be875e19bc28 scripts/functions --- a/scripts/functions Thu May 15 20:55:46 2008 +0000 +++ b/scripts/functions Thu May 15 20:56:53 2008 +0000 @@ -542,6 +542,7 @@ CT_ARCH_TARGET_CFLAGS="${CT_ARCH_TARGET_CFLAGS} ${CT_ARCH_TUNE_CFLAG}" CT_ARCH_TARGET_CFLAGS="${CT_ARCH_TARGET_CFLAGS} ${CT_ARCH_FPU_CFLAG}" CT_ARCH_TARGET_CFLAGS="${CT_ARCH_TARGET_CFLAGS} ${CT_ARCH_FLOAT_CFLAG}" + CT_ARCH_TARGET_CFLAGS="${CT_ARCH_TARGET_CFLAGS} ${CT_ARCH_ENDIAN_CFLAG}" } # This function does pause the build until the user strikes "Return"