summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-05-15 20:56:53 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-05-15 20:56:53 (GMT)
commit899e3a9302c6b1b0b7dd839d7927dc2b2ea4da22 (patch)
tree56b95e4df6ad5cefeec89432b1ea261e6df7c5d2 /arch
parentba03986016718ae5902a5ac8233a3aad3f19a66d (diff)
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(+)
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/functions6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips/functions b/arch/mips/functions
index 91a1d9a..4bf0501 100644
--- a/arch/mips/functions
+++ b/arch/mips/functions
@@ -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
}