summaryrefslogtreecommitdiff
path: root/config/arch/mips
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-10-03 12:30:58 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-10-03 12:30:58 (GMT)
commit50ea3b751de4c94606bebc56a385324f130c33a8 (patch)
tree61e455f065ecc300533d36748f1b264b4efd29da /config/arch/mips
parent601ec482e1a8b8952a42fe01877053e286b10a99 (diff)
Second shot at moving arch/ into config/arch/ .
Diffstat (limited to 'config/arch/mips')
-rw-r--r--config/arch/mips/config.in11
-rw-r--r--config/arch/mips/functions12
2 files changed, 23 insertions, 0 deletions
diff --git a/config/arch/mips/config.in b/config/arch/mips/config.in
new file mode 100644
index 0000000..0f91e83
--- /dev/null
+++ b/config/arch/mips/config.in
@@ -0,0 +1,11 @@
+# MIPS specific config options
+
+config ARCH_mips
+ select ARCH_SUPPORTS_BOTH_ENDIAN
+ select ARCH_DEFAULT_BE
+ select ARCH_SUPPORT_ARCH
+ select ARCH_SUPPORT_ABI
+ select ARCH_SUPPORT_TUNE
+ help
+ The MIPS architecture, as defined by:
+ http://www.mips.com/
diff --git a/config/arch/mips/functions b/config/arch/mips/functions
new file mode 100644
index 0000000..4bf0501
--- /dev/null
+++ b/config/arch/mips/functions
@@ -0,0 +1,12 @@
+# Compute IA-64-specific values
+
+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
+}