diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-09-14 21:17:59 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-09-14 21:17:59 (GMT) |
commit | 60b0bb1bab1dca165c5d93c55f02b5da27719274 (patch) | |
tree | ee30a46b2e3cf1bc63ad7500b2b1051626e3dc66 /arch | |
parent | c0f4b573f8a334c3e946737920764831d5dc1e1f (diff) |
Migrate all supported architectures to use the architecture-specific framework.
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/functions | 10 | ||||
-rw-r--r-- | arch/ia64/functions | 10 | ||||
-rw-r--r-- | arch/mips/functions | 10 | ||||
-rw-r--r-- | arch/x86/functions | 23 | ||||
-rw-r--r-- | arch/x86_64/functions | 10 |
5 files changed, 63 insertions, 0 deletions
diff --git a/arch/arm/functions b/arch/arm/functions index e69de29..ada2836 100644 --- a/arch/arm/functions +++ b/arch/arm/functions @@ -0,0 +1,10 @@ +# 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 default values is OK. + + # The endianness option default value is OK. +} diff --git a/arch/ia64/functions b/arch/ia64/functions index e69de29..45a3d5b 100644 --- a/arch/ia64/functions +++ b/arch/ia64/functions @@ -0,0 +1,10 @@ +# Compute IA-64-specific values + +CT_DoArchValues() { + # The architecture part of the tuple: + CT_TARGET_ARCH="${CT_ARCH}" + + # The system part of the tuple default value is OK. + + # The endianness option default value is OK. +} diff --git a/arch/mips/functions b/arch/mips/functions index e69de29..e8bf09f 100644 --- a/arch/mips/functions +++ b/arch/mips/functions @@ -0,0 +1,10 @@ +# Compute IA-64-specific values + +CT_DoArchValues() { + # The architecture part of the tuple: + CT_TARGET_ARCH="${CT_ARCH}${target_endian_el}" + + # The system part of the tuple default value is OK. + + # The endianness option default value is OK. +} diff --git a/arch/x86/functions b/arch/x86/functions index e69de29..039c079 100644 --- a/arch/x86/functions +++ b/arch/x86/functions @@ -0,0 +1,23 @@ +# Compute x86-specific values + +# This one really need a little love! :-( + +CT_DoArchValues() { + # The architecture part of the tuple: + arch="${CT_ARCH_ARCH}" + [ -z "${arch}" ] && arch="${CT_ARCH_TUNE}" + case "${arch}" in + nocona|athlon*64|k8|athlon-fx|opteron) + CT_DoError "Architecture is x86 (32-bit) but selected processor is \"${arch}\" (64-bit)";; + "") CT_TARGET_ARCH=i386;; + i386|i486|i586|i686) CT_TARGET_ARCH="${arch}";; + winchip*) CT_TARGET_ARCH=i486;; + pentium|pentium-mmx|c3*) CT_TARGET_ARCH=i586;; + pentiumpro|pentium*|athlon*) CT_TARGET_ARCH=i686;; + *) CT_TARGET_ARCH=i586;; + esac + + # The system part of the tuple default value is OK. + + # The endianness option default value is OK. +} diff --git a/arch/x86_64/functions b/arch/x86_64/functions index e69de29..68610d8 100644 --- a/arch/x86_64/functions +++ b/arch/x86_64/functions @@ -0,0 +1,10 @@ +# Compute x86_64-specific values + +CT_DoArchValues() { + # The architecture part of the tuple: + CT_TARGET_ARCH="${CT_ARCH}" + + # The system part of the tuple default value is OK. + + # The endianness option default value is OK. +} |