summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2018-12-07 22:49:03 (GMT)
committerAlexey Neyman <stilor@att.net>2018-12-07 22:49:03 (GMT)
commite85ec884ade523c1aa332d7819c539934f1c860a (patch)
tree6786b77228ab1391732ecd7a4cd5c719e101860d /scripts
parent854b18b2ac7738bff38010cc35af700cd64af9b6 (diff)
Use -mel/-meb for moxie
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/arch/moxie.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/build/arch/moxie.sh b/scripts/build/arch/moxie.sh
index 72c82c9..9545d19 100644
--- a/scripts/build/arch/moxie.sh
+++ b/scripts/build/arch/moxie.sh
@@ -3,6 +3,11 @@
# No arch-specific overrides yet
CT_DoArchTupleValues()
{
+ case "${CT_ARCH_ENDIAN}" in
+ big) CT_ARCH_ENDIAN_CFLAG=-meb;;
+ little) CT_ARCH_ENDIAN_CFLAG=-mel;;
+ esac
+
case "${CT_LIBC}" in
moxiebox)
CT_TARGET_SYS=moxiebox