linux-stable/scripts/kconfig
Masahiro Yamada 16536ce0df kconfig: fix broken dependency in randconfig-generated .config
[ Upstream commit c8fb7d7e48 ]

Running randconfig on arm64 using KCONFIG_SEED=0x40C5E904 (e.g. on v5.5)
produces the .config with CONFIG_EFI=y and CONFIG_CPU_BIG_ENDIAN=y,
which does not meet the !CONFIG_CPU_BIG_ENDIAN dependency.

This is because the user choice for CONFIG_CPU_LITTLE_ENDIAN vs
CONFIG_CPU_BIG_ENDIAN is set by randomize_choice_values() after the
value of CONFIG_EFI is calculated.

When this happens, the has_changed flag should be set.

Currently, it takes the result from the last iteration. It should
accumulate all the results of the loop.

Fixes: 3b9a19e089 ("kconfig: loop as long as we changed some symbols in randconfig")
Reported-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-02-28 16:35:59 +01:00
..
lxdialog kconfig/[mn]conf: handle backspace (^H) key 2019-05-04 09:15:22 +02:00
.gitignore Remove gperf usage from toolchain 2017-08-19 11:02:53 -07:00
check.sh License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
conf.c
confdata.c kconfig: fix broken dependency in randconfig-generated .config 2020-02-28 16:35:59 +01:00
expr.c kconfig: don't crash on NULL expressions in expr_eq() 2020-01-12 12:11:58 +01:00
expr.h
gconf.c gconfig: remove misleading parentheses around a condition 2017-03-22 02:56:33 +09:00
gconf.glade
images.c
kconf_id.c Remove gperf usage from toolchain 2017-08-19 11:02:53 -07:00
kxgettext.c
list.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
lkc.h Remove gperf usage from toolchain 2017-08-19 11:02:53 -07:00
lkc_proto.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mconf.c
menu.c kconfig: Fix automatic menu creation mem leak 2018-04-26 11:02:08 +02:00
merge_config.sh
nconf.c kconfig/[mn]conf: handle backspace (^H) key 2019-05-04 09:15:22 +02:00
nconf.gui.c kconfig/[mn]conf: handle backspace (^H) key 2019-05-04 09:15:22 +02:00
nconf.h
POTFILES.in
qconf.cc xconfig: fix missing suboption and help panels on first run 2016-12-11 21:40:54 +01:00
qconf.h
streamline_config.pl scripts: Switch to more portable Perl shebang 2017-05-14 11:20:44 +09:00
symbol.c
util.c
zconf.l kconfig: fix memory leak when EOF is encountered in quotation 2019-01-26 09:37:04 +01:00
zconf.lex.c_shipped
zconf.tab.c_shipped Remove gperf usage from toolchain 2017-08-19 11:02:53 -07:00
zconf.y kconfig: fix the rule of mainmenu_stmt symbol 2018-11-04 14:52:45 +01:00