diff options
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. +} |