mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-06-16 22:38:16 +00:00
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>
This commit is contained in:
@ -154,7 +154,7 @@ do_binutils_backend() {
|
||||
extra_config+=( --enable-plugins )
|
||||
fi
|
||||
if [ "${CT_BINUTILS_HAS_PKGVERSION_BUGURL}" = "y" ]; then
|
||||
extra_config+=("--with-pkgversion=${CT_PKGVERSION}")
|
||||
[ -n "${CT_PKGVERSION}" ] && extra_config+=("--with-pkgversion=${CT_PKGVERSION}")
|
||||
[ -n "${CT_TOOLCHAIN_BUGURL}" ] && extra_config+=("--with-bugurl=${CT_TOOLCHAIN_BUGURL}")
|
||||
fi
|
||||
if [ "${CT_MULTILIB}" = "y" ]; then
|
||||
@ -307,7 +307,7 @@ do_binutils_for_target() {
|
||||
CT_DoLog EXTRA "Configuring binutils for target"
|
||||
|
||||
if [ "${CT_BINUTILS_HAS_PKGVERSION_BUGURL}" = "y" ]; then
|
||||
extra_config+=("--with-pkgversion=${CT_PKGVERSION}")
|
||||
[ -n "${CT_PKGVERSION}" ] && extra_config+=("--with-pkgversion=${CT_PKGVERSION}")
|
||||
[ -n "${CT_TOOLCHAIN_BUGURL}" ] && extra_config+=("--with-bugurl=${CT_TOOLCHAIN_BUGURL}")
|
||||
fi
|
||||
if [ "${CT_MULTILIB}" = "y" ]; then
|
||||
|
Reference in New Issue
Block a user