init fails to compile for !CONFIG_FEATURE_KILL_REMOVED

Denys Vlasenko vda.linux at googlemail.com
Sun Feb 15 12:03:04 UTC 2009


On Sunday 15 February 2009 02:07, Rob Landley wrote:
> > This is the case when #if is better than if
> > (because #if would work, and if won't):
> 
> Or, alternately, this is a case where the kconfig logic isn't doing what we 
> want, and fixing it is one line:
> 
> Index: scripts/kconfig/confdata.c
> ===================================================================
> --- scripts/kconfig/confdata.c	(revision 25316)
> +++ scripts/kconfig/confdata.c	(working copy)
> @@ -524,6 +524,7 @@
>  				}
>  			case S_INT:
>  				str = sym_get_string_value(sym);
> +				if (!*str) str="0";
>  				fprintf(out, "CONFIG_%s=%s\n", sym->name, str);
>  				if (out_h) {
>  					fprintf(out_h, "#define CONFIG_%s %s\n", sym->name, str);

Applied, thanks!
--
vda


More information about the busybox mailing list