mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-21 13:47:48 +00:00
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(-)
This commit is contained in:
parent
15d657ce4e
commit
f9f70c5ad6
@ -2,6 +2,7 @@
|
|||||||
# EXPERIMENTAL
|
# EXPERIMENTAL
|
||||||
|
|
||||||
config ARCH_ia64
|
config ARCH_ia64
|
||||||
|
select ARCH_64
|
||||||
select ARCH_SUPPORTS_BOTH_ENDIAN
|
select ARCH_SUPPORTS_BOTH_ENDIAN
|
||||||
help
|
help
|
||||||
The ia64 architecture, as defined by:
|
The ia64 architecture, as defined by:
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
# x86_64 specific options
|
# x86_64 specific options
|
||||||
|
|
||||||
config ARCH_x86_64
|
config ARCH_x86_64
|
||||||
|
select ARCH_64
|
||||||
select ARCH_SUPPORT_ARCH
|
select ARCH_SUPPORT_ARCH
|
||||||
select ARCH_SUPPORT_CPU
|
select ARCH_SUPPORT_CPU
|
||||||
select ARCH_SUPPORT_TUNE
|
select ARCH_SUPPORT_TUNE
|
||||||
|
@ -5,6 +5,10 @@ menu "Target options"
|
|||||||
config ARCH
|
config ARCH
|
||||||
string
|
string
|
||||||
|
|
||||||
|
config ARCH_64
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
|
||||||
# Pre-declare target optimisation variables
|
# Pre-declare target optimisation variables
|
||||||
config ARCH_SUPPORT_ARCH
|
config ARCH_SUPPORT_ARCH
|
||||||
config ARCH_SUPPORT_ABI
|
config ARCH_SUPPORT_ABI
|
||||||
|
@ -565,12 +565,18 @@ The architecture's ".in" file API:
|
|||||||
The ARM architecture.
|
The ARM architecture.
|
||||||
+ optional:
|
+ optional:
|
||||||
selects adequate associated config options.
|
selects adequate associated config options.
|
||||||
|
Note: 64-bit architectures *shall* select ARCH_64
|
||||||
Eg.:
|
Eg.:
|
||||||
config ARCH_arm
|
config ARCH_arm
|
||||||
select ARCH_SUPPORTS_BOTH_ENDIAN
|
select ARCH_SUPPORTS_BOTH_ENDIAN
|
||||||
select ARCH_DEFAULT_LE
|
select ARCH_DEFAULT_LE
|
||||||
help
|
help
|
||||||
The ARM architecture.
|
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
|
> other target-specific options, at your discretion. Note however that to
|
||||||
avoid name-clashing, such options shall be prefixed with "ARCH_%arch%",
|
avoid name-clashing, such options shall be prefixed with "ARCH_%arch%",
|
||||||
|
@ -267,13 +267,11 @@ if [ -z "${CT_RESTART}" ]; then
|
|||||||
# Now, in case we're 64 bits, just have lib64/ be a symlink to lib/
|
# 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
|
# so as to have all libraries in the same directory (we can do that
|
||||||
# because we are *not* multilib).
|
# because we are *not* multilib).
|
||||||
case "${CT_TARGET}" in
|
if [ "${CT_ARCH_64}" = "y" ]; then
|
||||||
powerpc64*|ppc64*|x86_64*)
|
ln -sf "lib" "${CT_SYSROOT_DIR}/lib64"
|
||||||
ln -sf "lib" "${CT_SYSROOT_DIR}/lib64"
|
ln -sf "lib" "${CT_SYSROOT_DIR}/usr/lib64"
|
||||||
ln -sf "lib" "${CT_SYSROOT_DIR}/usr/lib64"
|
ln -sf "sys-root/lib" "${CT_PREFIX_DIR}/${CT_TARGET}/lib64"
|
||||||
ln -sf "sys-root/lib" "${CT_PREFIX_DIR}/${CT_TARGET}/lib64"
|
fi
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Canadian-cross are really picky on the way they are built. Tweak the values.
|
# 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_/')
|
CT_UNIQ_BUILD=$(echo "${CT_BUILD}" |sed -r -e 's/-/-build_/')
|
||||||
|
Loading…
Reference in New Issue
Block a user