config: don't force the vendor part in the tuple
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu Jan 07 23:05:30 2010 +0100 (2010-01-07)
changeset 17046df0d71a7a55
parent 1703 6a27ffede541
child 1705 6f368c337f2d
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).
config/toolchain.in
scripts/functions
     1.1 --- a/config/toolchain.in	Thu Jan 07 20:40:52 2010 +0100
     1.2 +++ b/config/toolchain.in	Thu Jan 07 23:05:30 2010 +0100
     1.3 @@ -42,7 +42,7 @@
     1.4        Use a single word, or use underscores "_" to separate words.
     1.5        Use neither dash nor space, as it breaks things.
     1.6        
     1.7 -      Keep the default (unkown) if you don't know better.
     1.8 +      Keep the default (unknown) if you don't know better.
     1.9  
    1.10  config TARGET_ALIAS_SED_EXPR
    1.11      string
     2.1 --- a/scripts/functions	Thu Jan 07 20:40:52 2010 +0100
     2.2 +++ b/scripts/functions	Thu Jan 07 23:05:30 2010 +0100
     2.3 @@ -759,7 +759,10 @@
     2.4      CT_DoKernelTupleValues
     2.5  
     2.6      # Finish the target tuple construction
     2.7 -    CT_TARGET="${CT_TARGET_ARCH}-${CT_TARGET_VENDOR:-unknown}-${CT_TARGET_KERNEL}${CT_TARGET_KERNEL:+-}${CT_TARGET_SYS}"
     2.8 +    CT_TARGET="${CT_TARGET_ARCH}-"
     2.9 +    CT_TARGET="${CT_TARGET}${CT_TARGET_VENDOR:+${CT_TARGET_VENDOR}-}"
    2.10 +    CT_TARGET="${CT_TARGET}${CT_TARGET_KERNEL:+${CT_TARGET_KERNEL}-}"
    2.11 +    CT_TARGET="${CT_TARGET}${CT_TARGET_SYS}"
    2.12  
    2.13      # Sanity checks
    2.14      __sed_alias=""
    2.15 @@ -775,7 +778,6 @@
    2.16  
    2.17      # Canonicalise it
    2.18      CT_TARGET=$(CT_DoConfigSub "${CT_TARGET}")
    2.19 -
    2.20      # Prepare the target CFLAGS
    2.21      CT_ARCH_TARGET_CFLAGS="${CT_ARCH_TARGET_CFLAGS} ${CT_ARCH_ENDIAN_CFLAG}"
    2.22      CT_ARCH_TARGET_CFLAGS="${CT_ARCH_TARGET_CFLAGS} ${CT_ARCH_ARCH_CFLAG}"