# HG changeset patch # User "Yann E. MORIN" # Date 1210787392 0 # Node ID b9bdd6088f878b90aaac5f84bc2ff925f87ceb2d # Parent fc7db1806873257d2b1aa386aa8c96427186bff3 Export endianness CFLAGS. Fix endianness CFLAGS for MIPS. /trunk/scripts/functions | 1 1 0 0 + /trunk/arch/mips/functions | 6 6 0 0 ++++++ 2 files changed, 7 insertions(+) diff -r fc7db1806873 -r b9bdd6088f87 arch/mips/functions --- a/arch/mips/functions Wed May 14 17:40:28 2008 +0000 +++ b/arch/mips/functions Wed May 14 17:49:52 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 fc7db1806873 -r b9bdd6088f87 scripts/functions --- a/scripts/functions Wed May 14 17:40:28 2008 +0000 +++ b/scripts/functions Wed May 14 17:49:52 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"