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/x86 | |
parent | c0f4b573f8a334c3e946737920764831d5dc1e1f (diff) |
Migrate all supported architectures to use the architecture-specific framework.
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/functions | 23 |
1 files changed, 23 insertions, 0 deletions
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. +} |