1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/scripts/build/arch/x86.sh Sun Oct 05 15:32:00 2008 +0000
1.3 @@ -0,0 +1,22 @@
1.4 +# Compute x86-specific values
1.5 +
1.6 +# This one really need a little love! :-(
1.7 +
1.8 +CT_DoArchValues() {
1.9 + # The architecture part of the tuple:
1.10 + arch="${CT_ARCH_ARCH}"
1.11 + [ -z "${arch}" ] && arch="${CT_ARCH_TUNE}"
1.12 + case "${arch}" in
1.13 + nocona|athlon*64|k8|athlon-fx|opteron)
1.14 + CT_DoError "Architecture is x86 (32-bit) but selected processor is \"${arch}\" (64-bit)";;
1.15 + "") CT_TARGET_ARCH=i386;;
1.16 + i386|i486|i586|i686) CT_TARGET_ARCH="${arch}";;
1.17 + winchip*) CT_TARGET_ARCH=i486;;
1.18 + pentium|pentium-mmx|c3*) CT_TARGET_ARCH=i586;;
1.19 + pentiumpro|pentium*|athlon*) CT_TARGET_ARCH=i686;;
1.20 + *) CT_TARGET_ARCH=i586;;
1.21 + esac
1.22 +
1.23 + # The kernel ARCH:
1.24 + CT_KERNEL_ARCH=i386
1.25 +}