[PATCH 8 of 8] kconfig: prepend CT-NG's version tag to PKGVERSION
Yann E. MORIN
yann.morin.1998@anciens.enib.fr
Wed Jun 1 21:16:00 GMT 2011
Benoit, All,
On Wednesday 01 June 2011 22:36:00 Benoît THÉBAUDEAU wrote:
> # HG changeset patch
> # User "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
> # Date 1306960344 -7200
> # Node ID b96b4403c850000dfe69b7d64bc4d65542007290
> # Parent 9e3cbe13deae566d9ec0c31f38afe238f7c9660d
> kconfig: prepend CT-NG's version tag to PKGVERSION
[--SNIP--]
> diff --git a/scripts/build/binutils/binutils.sh b/scripts/build/binutils/binutils.sh
> --- a/scripts/build/binutils/binutils.sh
> +++ b/scripts/build/binutils/binutils.sh
> @@ -56,8 +56,8 @@
> extra_config+=( --enable-plugins )
> fi
> if [ "${CT_BINUTILS_HAS_PKGVERSION_BUGURL}" = "y" ]; then
> - [ -n "${CT_TOOLCHAIN_PKGVERSION}" ] && extra_config+=("--with-pkgversion=${CT_TOOLCHAIN_PKGVERSION}")
> - [ -n "${CT_TOOLCHAIN_BUGURL}" ] && extra_config+=("--with-bugurl=${CT_TOOLCHAIN_BUGURL}")
> + extra_config+=("--with-pkgversion=crosstool-NG ${CT_VERSION}${CT_TOOLCHAIN_PKGVERSION:+ - ${CT_TOOLCHAIN_PKGVERSION}}")
> + [ -n "${CT_TOOLCHAIN_BUGURL}" ] && extra_config+=("--with-bugurl=${CT_TOOLCHAIN_BUGURL}")
Compute the string only once. Eg. in scripts/crosstool-ng.sh.in:
CT_PKGVERSION="crosstool-NG ${CT_VERSION}${CT_TOOLCHAIN_PKGVERSION:+ - ${CT_TOOLCHAIN_PKGVERSION}}"
Then use "${CT_PKGVERSION}" every where: gcc, gdb...
Ditto bugurl.
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list