This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
scripts: support an empty vendor string
For Linux and other targets, config.sub defaults to 'unknown' if no vendor was specified. This patch supplies a fake vendor and then strips it out afterwards.
This is needed to have an Ubuntu style vendorless tuple such as arm-linux-gnueabi. Other features like the alias and sed transform don't cover it.
This is needed to have an Ubuntu style vendorless tuple such as arm-linux-gnueabi. Other features like the alias and sed transform don't cover it.
diff --git a/config/toolchain.in b/config/toolchain.in index d034315..94755fd 100644 --- a/config/toolchain.in +++ b/config/toolchain.in @@ -111,6 +111,18 @@
+config ALLOW_NO_VENDOR + bool + prompt "Allow tuples with no vendor" + default n + help + Set this and set the vendor string to an empty string to allow + tuples with no vendor component such as 'arm-linux-gnueabi' + instead of the default 'arm-unknown-linux-gnueabi'. + + This is a backwards compatibility option for earlier + configurations that used an empty string to mean 'unknown'. + config TARGET_ALIAS_SED_EXPR string prompt "Tuple's sed transform" diff --git a/scripts/functions b/scripts/functions index 789b622..2ac4c50 100644 --- a/scripts/functions +++ b/scripts/functions @@ -944,6 +944,20 @@ fi }
# Finish the target tuple construction - 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:+-${CT_TARGET_SYS}}" + CT_TARGET=$(CT_BuildOneTargetTuple "${CT_TARGET_VENDOR}")
-- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |