summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-05-14 17:49:52 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-05-14 17:49:52 (GMT)
commit0dad6065a6d6393e0c5cf8f82a88a62515075e97 (patch)
tree96f3afa2263b02a6f99e3c146ea5dc8fc0c0da13 /arch
parentc15c2e6978f836a0852a41f3e5d0e1b1eaf5bbf3 (diff)
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(+)
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
}