linux-yocto/scripts/kconfig
Daniel Gomez 53dd81d7ba kconfig: merge_config: use an empty file as initfile
[ Upstream commit a26fe287ee ]

The scripts/kconfig/merge_config.sh script requires an existing
$INITFILE (or the $1 argument) as a base file for merging Kconfig
fragments. However, an empty $INITFILE can serve as an initial starting
point, later referenced by the KCONFIG_ALLCONFIG Makefile variable
if -m is not used. This variable can point to any configuration file
containing preset config symbols (the merged output) as stated in
Documentation/kbuild/kconfig.rst. When -m is used $INITFILE will
contain just the merge output requiring the user to run make (i.e.
KCONFIG_ALLCONFIG=<$INITFILE> make <allnoconfig/alldefconfig> or make
olddefconfig).

Instead of failing when `$INITFILE` is missing, create an empty file and
use it as the starting point for merges.

Signed-off-by: Daniel Gomez <da.gomez@samsung.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-06-04 14:40:02 +02:00
..
lxdialog
tests
.gitignore
conf.c kconfig: WERROR unmet symbol dependency 2025-02-21 13:49:24 +01:00
confdata.c kconfig: WERROR unmet symbol dependency 2025-02-21 13:49:24 +01:00
expr.c kconfig: remove wrong expr_trans_bool() 2024-07-25 09:49:11 +02:00
expr.h kconfig: remove wrong expr_trans_bool() 2024-07-25 09:49:11 +02:00
gconf-cfg.sh
gconf.c kconfig: gconf: give a proper initial state to the Save button 2024-07-25 09:49:11 +02:00
gconf.glade
images.c
images.h
internal.h
lexer.l kconfig: fix infinite loop when expanding a macro at the end of file 2024-03-26 18:20:58 -04:00
list.h
lkc_proto.h kconfig: WERROR unmet symbol dependency 2025-02-21 13:49:24 +01:00
lkc.h
Makefile
mconf-cfg.sh
mconf.c
menu.c kconfig: remove wrong expr_trans_bool() 2024-07-25 09:49:11 +02:00
merge_config.sh kconfig: merge_config: use an empty file as initfile 2025-06-04 14:40:02 +02:00
nconf-cfg.sh
nconf.c
nconf.gui.c
nconf.h
parser.y
preprocess.c
qconf-cfg.sh
qconf.cc kconfig: qconf: fix buffer overflow in debug links 2024-10-17 15:22:03 +02:00
qconf.h
streamline_config.pl
symbol.c kconfig: fix memory leak in sym_warn_unmet_dep() 2025-02-21 13:49:24 +01:00
util.c