Files
Charles Mirabile 27da886bf7 build system: don't record defaults as explicit choices. Closes 10296
This patch is a relatively straightforward backport (minor context changes
to a few hunks due to drift, but exact same logic) of the kernel commit:
f82f3f9422d4d ("kconfig: oldconfig shall not set symbols if it does not need to")
from 2007 by Roman Zippel the original author of kconfig. Essentially,
extend `conf_askvalue` to report if the symbol was actively adjusted (more
than one valid option existed, and it didn't already have a value), or
unchanged (because it cannot change or already had a value), and then have
the callers check the return code and only call `sym_set_*_value` which
records that value an explicit user choice if it was the result of an
active adjustment.

This fixes the issue with e.g. `CONFIG_LONG_OPTS` during `allnoconfig`
because previously that option was encountered early in the loop over
all options while it was forced to yes by being selected by other configs,
e.g. `CONFIG_ADDUSER`. With the prior behavior, the fact that that option
had a value of 'Y' after `conf_askvalue` finished was recorded as if it
were representative of an actual user choice (and not merely the result
of a reverse dependency). When the config for adduser (and all the other
options that select long options) was later disabled, even though nothing
was forcing `CONFIG_LONG_OPTS` to 'Y' any more, instead of flipping off,
it was kept as 'Y' because it was recorded as being enabled by an active
choice from the user (or their policy). Leaving things in a lazy state
when no active choice was made, defers their selection until the dust of
other potential dependencies settles.

Signed-off-by: Charles Mirabile <cmirabil@redhat.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2026-11-18 08:43:54 +01:00
..
2009-05-05 09:05:30 -04:00
2010-07-26 01:49:12 +02:00
2007-05-30 00:29:55 +00:00
2006-10-05 10:17:08 +00:00
2006-10-05 10:17:08 +00:00
2006-10-05 10:17:08 +00:00
2007-05-30 00:29:55 +00:00
2006-10-05 10:17:08 +00:00
2006-10-05 10:17:08 +00:00
2006-10-05 10:17:08 +00:00
2013-12-19 04:43:24 +01:00
2010-07-26 01:49:12 +02:00
2006-10-05 10:17:08 +00:00
2006-10-05 10:17:08 +00:00
2006-10-05 10:17:08 +00:00
2015-06-07 18:19:43 +02:00
2006-10-05 10:17:08 +00:00
2016-06-19 18:15:33 +02:00
2010-07-26 12:47:36 +02:00