summaryrefslogtreecommitdiff
path: root/config/arch/arm/functions
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/arm/functions
parent601ec482e1a8b8952a42fe01877053e286b10a99 (diff)
Second shot at moving arch/ into config/arch/ .
Diffstat (limited to 'config/arch/arm/functions')
-rw-r--r--config/arch/arm/functions17
1 files changed, 17 insertions, 0 deletions
diff --git a/config/arch/arm/functions b/config/arch/arm/functions
new file mode 100644
index 0000000..a1b8542
--- /dev/null
+++ b/config/arch/arm/functions
@@ -0,0 +1,17 @@
+# Compute ARM-specific values
+
+CT_DoArchValues() {
+ # The architecture part of the tuple:
+ CT_TARGET_ARCH="${CT_ARCH}${target_endian_eb}"
+
+ # The system part of the tuple:
+ case "${CT_LIBC},${CT_ARCH_ARM_EABI}" in
+ *glibc,y) CT_TARGET_SYS=gnueabi;;
+ uClibc,y) CT_TARGET_SYS=uclibcgnueabi;;
+ none,y) CT_TARGET_SYS=eabi;;
+ esac
+
+ # In case we're EABI, do *not* specify any ABI!
+ # which means, either we do not have an ABI specified, or we're not EABI.
+ CT_TestOrAbort "Internal error: CT_ARCH_ABI should not be set for EABI build." -z "${CT_ARCH_ABI}" -o -z "${CT_ARCH_ARM_EABI}"
+}