summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-01-07 22:05:30 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-01-07 22:05:30 (GMT)
commita272b32bbaa71d0b4c70e289a562843d451e8791 (patch)
tree11b836a02c43b3a44bbd6a7b62947641229b5686 /scripts/functions
parent89eca789ce366ed5b3e74807329198dd090743db (diff)
config: don't force the vendor part in the tuple
Note however that some configurations (eg. arm-elf) will still have the vendor part 'unknown' forced in (by config.sub).
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/functions b/scripts/functions
index c8fec30..c7b1047 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -759,7 +759,10 @@ CT_DoBuildTargetTuple() {
CT_DoKernelTupleValues
# Finish the target tuple construction
- CT_TARGET="${CT_TARGET_ARCH}-${CT_TARGET_VENDOR:-unknown}-${CT_TARGET_KERNEL}${CT_TARGET_KERNEL:+-}${CT_TARGET_SYS}"
+ CT_TARGET="${CT_TARGET_ARCH}-"
+ CT_TARGET="${CT_TARGET}${CT_TARGET_VENDOR:+${CT_TARGET_VENDOR}-}"
+ CT_TARGET="${CT_TARGET}${CT_TARGET_KERNEL:+${CT_TARGET_KERNEL}-}"
+ CT_TARGET="${CT_TARGET}${CT_TARGET_SYS}"
# Sanity checks
__sed_alias=""
@@ -775,7 +778,6 @@ CT_DoBuildTargetTuple() {
# Canonicalise it
CT_TARGET=$(CT_DoConfigSub "${CT_TARGET}")
-
# Prepare the target CFLAGS
CT_ARCH_TARGET_CFLAGS="${CT_ARCH_TARGET_CFLAGS} ${CT_ARCH_ENDIAN_CFLAG}"
CT_ARCH_TARGET_CFLAGS="${CT_ARCH_TARGET_CFLAGS} ${CT_ARCH_ARCH_CFLAG}"