Merge 1199 and 1200 from /devel/YEM-build_host_target_cleanup:
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu Nov 13 17:55:16 2008 +0000 (2008-11-13)
changeset 1040dc17e615de2c
parent 1039 b534a133daf4
child 1041 2573519c00d6
Merge 1199 and 1200 from /devel/YEM-build_host_target_cleanup:
- Allow hand-indentation in the kconfig prompts
- Start documenting the kconfig deviations from the kernel's version

/trunk/kconfig/menu.c | 10 8 2 0 ++++++++--
/trunk/docs/overview.txt | 6 6 0 0 ++++++
2 files changed, 14 insertions(+), 2 deletions(-)
docs/overview.txt
kconfig/menu.c
     1.1 --- a/docs/overview.txt	Thu Nov 13 17:34:44 2008 +0000
     1.2 +++ b/docs/overview.txt	Thu Nov 13 17:55:16 2008 +0000
     1.3 @@ -524,6 +524,12 @@
     1.4  The kconfig language is a hacked version, vampirised from the Linux kernel
     1.5  (http://www.kernel.org/), and (heavily) adapted to my needs.
     1.6  
     1.7 +The list of the most notable changes (at least the ones I remember) follows:
     1.8 +- the CONFIG_ prefix has been replaced with CT_
     1.9 +- a leading | in prompts is skipped, and subsequent leading spaces are not
    1.10 +  trimmed
    1.11 +- otherwise leading spaces are silently trimmed
    1.12 +
    1.13  The kconfig parsers (conf and mconf) are not installed pre-built, but as
    1.14  source files. Thus you can have the directory where crosstool-NG is installed,
    1.15  exported (via NFS or whatever) and have clients with different architectures
     2.1 --- a/kconfig/menu.c	Thu Nov 13 17:34:44 2008 +0000
     2.2 +++ b/kconfig/menu.c	Thu Nov 13 17:55:16 2008 +0000
     2.3 @@ -128,8 +128,14 @@
     2.4  	prop->visible.expr = menu_check_dep(dep);
     2.5  
     2.6  	if (prompt) {
     2.7 -		if (isspace(*prompt)) {
     2.8 -			prop_warn(prop, "leading whitespace ignored");
     2.9 +		/* For crostool-NG, a leading pipe followed with spaces
    2.10 +		 * means that pipe shall be removed, and the spaces should
    2.11 +		 * not be trimmed.
    2.12 +		 */
    2.13 +		if (*prompt == '|')
    2.14 +			prompt++;
    2.15 +		else if (isspace(*prompt)) {
    2.16 +			/* Silently trim leading spaces */
    2.17  			while (isspace(*prompt))
    2.18  				prompt++;
    2.19  		}