# HG changeset patch # User "Yann E. MORIN" # Date 1226045382 0 # Node ID 33f695f7773ade373cec08befdc8ca60eaa54818 # Parent f30de763bcce29c569f1ef8188a0f1e634bace94 Do not autodetect 64-bit archs, have them tell be 'select'-ing ARCH_64 in the configuration. /trunk/scripts/crosstool.sh | 12 5 7 0 +++++------- /trunk/docs/overview.txt | 6 6 0 0 ++++++ /trunk/config/target.in | 4 4 0 0 ++++ /trunk/config/arch/x86_64.in | 1 1 0 0 + /trunk/config/arch/ia64.in | 1 1 0 0 + 5 files changed, 17 insertions(+), 7 deletions(-) diff -r f30de763bcce -r 33f695f7773a config/arch/ia64.in --- a/config/arch/ia64.in Fri Nov 07 08:03:32 2008 +0000 +++ b/config/arch/ia64.in Fri Nov 07 08:09:42 2008 +0000 @@ -2,6 +2,7 @@ # EXPERIMENTAL config ARCH_ia64 + select ARCH_64 select ARCH_SUPPORTS_BOTH_ENDIAN help The ia64 architecture, as defined by: diff -r f30de763bcce -r 33f695f7773a config/arch/x86_64.in --- a/config/arch/x86_64.in Fri Nov 07 08:03:32 2008 +0000 +++ b/config/arch/x86_64.in Fri Nov 07 08:09:42 2008 +0000 @@ -1,6 +1,7 @@ # x86_64 specific options config ARCH_x86_64 + select ARCH_64 select ARCH_SUPPORT_ARCH select ARCH_SUPPORT_CPU select ARCH_SUPPORT_TUNE diff -r f30de763bcce -r 33f695f7773a config/target.in --- a/config/target.in Fri Nov 07 08:03:32 2008 +0000 +++ b/config/target.in Fri Nov 07 08:09:42 2008 +0000 @@ -5,6 +5,10 @@ config ARCH string +config ARCH_64 + bool + default n + # Pre-declare target optimisation variables config ARCH_SUPPORT_ARCH config ARCH_SUPPORT_ABI diff -r f30de763bcce -r 33f695f7773a docs/overview.txt --- a/docs/overview.txt Fri Nov 07 08:03:32 2008 +0000 +++ b/docs/overview.txt Fri Nov 07 08:09:42 2008 +0000 @@ -565,12 +565,18 @@ The ARM architecture. + optional: selects adequate associated config options. + Note: 64-bit architectures *shall* select ARCH_64 Eg.: config ARCH_arm select ARCH_SUPPORTS_BOTH_ENDIAN select ARCH_DEFAULT_LE help The ARM architecture. + Eg.: + config ARCH_x86_64 + select ARCH_64 + help + The x86_64 architecture. > other target-specific options, at your discretion. Note however that to avoid name-clashing, such options shall be prefixed with "ARCH_%arch%", diff -r f30de763bcce -r 33f695f7773a scripts/crosstool.sh --- a/scripts/crosstool.sh Fri Nov 07 08:03:32 2008 +0000 +++ b/scripts/crosstool.sh Fri Nov 07 08:09:42 2008 +0000 @@ -267,13 +267,11 @@ # Now, in case we're 64 bits, just have lib64/ be a symlink to lib/ # so as to have all libraries in the same directory (we can do that # because we are *not* multilib). - case "${CT_TARGET}" in - powerpc64*|ppc64*|x86_64*) - ln -sf "lib" "${CT_SYSROOT_DIR}/lib64" - ln -sf "lib" "${CT_SYSROOT_DIR}/usr/lib64" - ln -sf "sys-root/lib" "${CT_PREFIX_DIR}/${CT_TARGET}/lib64" - ;; - esac + if [ "${CT_ARCH_64}" = "y" ]; then + ln -sf "lib" "${CT_SYSROOT_DIR}/lib64" + ln -sf "lib" "${CT_SYSROOT_DIR}/usr/lib64" + ln -sf "sys-root/lib" "${CT_PREFIX_DIR}/${CT_TARGET}/lib64" + fi # Canadian-cross are really picky on the way they are built. Tweak the values. CT_UNIQ_BUILD=$(echo "${CT_BUILD}" |sed -r -e 's/-/-build_/')