diff options
author | Nathan Chancellor <natechancellor@gmail.com> | 2017-09-01 14:24:29 -0700 |
---|---|---|
committer | Nathan Chancellor <natechancellor@gmail.com> | 2017-09-01 16:48:59 -0700 |
commit | 1d724767bdedac22682fe23e88b4fe0033cb58f4 (patch) | |
tree | acceee44be4d1228031025d9c3d18f322619ad34 /config/toolchain.in | |
parent | 98b6a5a4503095ba539a415d90e3f2c5331985ed (diff) | |
download | crosstool-ng-1d724767bdedac22682fe23e88b4fe0033cb58f4.tar.gz crosstool-ng-1d724767bdedac22682fe23e88b4fe0033cb58f4.tar.bz2 crosstool-ng-1d724767bdedac22682fe23e88b4fe0033cb58f4.zip |
config: Add package versioning flexibility
Some users (like myself) may want to omit the crosstool-NG version
from the binaries' versioning output, as it can be incredibly long
and not too helpful. Add a config option to disable it. The possible
combinations are as follows:
- crosstool-NG version (default)
- crosstool-NG version - custom toolchain ID
- Custom toolchain ID
- No crosstool-NG version OR custom toolchain ID
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Diffstat (limited to 'config/toolchain.in')
-rw-r--r-- | config/toolchain.in | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/config/toolchain.in b/config/toolchain.in index f9a56b97..6d3ff290 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. |