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(+)
1.1 --- a/arch/mips/functions Wed May 14 17:40:28 2008 +0000
1.2 +++ b/arch/mips/functions Wed May 14 17:49:52 2008 +0000
1.3 @@ -3,4 +3,10 @@
1.4 CT_DoArchValues() {
1.5 # The architecture part of the tuple:
1.6 CT_TARGET_ARCH="${CT_ARCH}${target_endian_el}"
1.7 +
1.8 + # Override CFLAGS for endianness:
1.9 + case "${CT_ARCH_BE},${CT_ARCH_LE}" in
1.10 + y,) CT_ARCH_ENDIAN_CFLAG="-EB";;
1.11 + ,y) CT_ARCH_ENDIAN_CFLAG="-EL";;
1.12 + esac
1.13 }
2.1 --- a/scripts/functions Wed May 14 17:40:28 2008 +0000
2.2 +++ b/scripts/functions Wed May 14 17:49:52 2008 +0000
2.3 @@ -542,6 +542,7 @@
2.4 CT_ARCH_TARGET_CFLAGS="${CT_ARCH_TARGET_CFLAGS} ${CT_ARCH_TUNE_CFLAG}"
2.5 CT_ARCH_TARGET_CFLAGS="${CT_ARCH_TARGET_CFLAGS} ${CT_ARCH_FPU_CFLAG}"
2.6 CT_ARCH_TARGET_CFLAGS="${CT_ARCH_TARGET_CFLAGS} ${CT_ARCH_FLOAT_CFLAG}"
2.7 + CT_ARCH_TARGET_CFLAGS="${CT_ARCH_TARGET_CFLAGS} ${CT_ARCH_ENDIAN_CFLAG}"
2.8 }
2.9
2.10 # This function does pause the build until the user strikes "Return"