kconfig: print version in .config
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Aug 30 11:35:29 2011 +0200 (2011-08-30)
changeset 26504d299836e994
parent 2649 61ec8b08f98d
child 2651 a171c274bc12
kconfig: print version in .config

Having the crosstool-NG version in the .config helps in case we
want to reproduce the toolchain with the exact same version of
crosstool-NG.

This also reverts #bb73e7632b54.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
config/config.in
kconfig/kconfig.mk
     1.1 --- a/config/config.in	Tue Aug 30 10:21:45 2011 +0200
     1.2 +++ b/config/config.in	Tue Aug 30 11:35:29 2011 +0200
     1.3 @@ -1,4 +1,3 @@
     1.4 -mainmenu "The crosstool-NG configuration menu"
     1.5  source "config/configure.in"
     1.6  source "config/backend.in"
     1.7  source "config/global.in"
     2.1 --- a/kconfig/kconfig.mk	Tue Aug 30 10:21:45 2011 +0200
     2.2 +++ b/kconfig/kconfig.mk	Tue Aug 30 11:35:29 2011 +0200
     2.3 @@ -2,9 +2,6 @@
     2.4  # crosstool-NG configuration targets
     2.5  # These targets are used from top-level makefile
     2.6  
     2.7 -# Derive the project version from, well, the project version:
     2.8 -export PROJECTVERSION=$(CT_VERSION)
     2.9 -
    2.10  # The place where the kconfig stuff lies
    2.11  obj = kconfig
    2.12  
    2.13 @@ -69,7 +66,7 @@
    2.14  check_lxdialog = $(CT_LIB_DIR)/kconfig/lxdialog/check-lxdialog.sh
    2.15  
    2.16  # Build flags
    2.17 -CFLAGS = -DCONFIG_=\"CT_\" -DPACKAGE=\"crosstool-NG\"
    2.18 +CFLAGS = -DCONFIG_=\"CT_\" -DPACKAGE="\"crosstool-NG $(CT_VERSION)\""
    2.19  LDFLAGS =
    2.20  
    2.21  # Compiler flags to use gettext