summaryrefslogtreecommitdiff
path: root/config/toolchain.in
diff options
context:
space:
mode:
Diffstat (limited to 'config/toolchain.in')
-rw-r--r--config/toolchain.in22
1 files changed, 19 insertions, 3 deletions
diff --git a/config/toolchain.in b/config/toolchain.in
index f9a56b9..6d3ff29 100644
--- a/config/toolchain.in
+++ b/config/toolchain.in
@@ -76,6 +76,22 @@ config STATIC_TOOLCHAIN
NOTE: this has no connection to whether the target libraries will be
dynamic or static. This only applies to the tools themselves.
+config SHOW_CT_VERSION
+ bool
+ prompt "Add crosstool-NG version to --version output"
+ default y
+ help
+ If yes, the crosstool-NG version will be included in the output of
+ gcc --version, and also in binutils, glibc, gdb and gdbserver.
+
+ If this is enabled, the package version will include:
+ "crosstool-NG ${CT_VERSION}"
+
+ If this is disabled and no ID string is given below, the default
+ of each individual package will be used.
+
+ This is passed to the configure flag --with-pkgversion.
+
config TOOLCHAIN_PKGVERSION
string
prompt "Toolchain ID string"
@@ -86,10 +102,10 @@ config TOOLCHAIN_PKGVERSION
the output of gcc --version, and also in binutils, glibc, gdb and
gdbserver.
- If this string is left empty, the actual package version will be:
- "crosstool-NG ${CT_VERSION}"
- Otherwise, it will be:
+ If this is enabled, it will either be added to the crosstool-NG version:
"crosstool-NG ${CT_VERSION} - ${CT_TOOLCHAIN_PKGVERSION}"
+ Or it will be entirely on its own:
+ "${CT_TOOLCHAIN_PKGVERSION}"
This is passed to the configure flag --with-pkgversion.