kconfig: call env_write_dep() right after yyparse()
authorMasahiro Yamada <masahiroy@kernel.org>
Fri, 2 Feb 2024 15:58:05 +0000 (00:58 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 19 Feb 2024 09:20:40 +0000 (18:20 +0900)
commit56e634b06fd554b819ac9c45fc77a41500861ced
treeda7da38591efbae297cd7eb9baa6d279abbf3256
parent526396b723a38dbeed35cb9e80814084b9f56329
kconfig: call env_write_dep() right after yyparse()

This allows preprocess.c to free up all of its resources when the parse
stage is finished. It also ensures conf_write_autoconf_cmd() produces
consistent results even if called multiple times for any reason.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/confdata.c
scripts/kconfig/lkc_proto.h
scripts/kconfig/parser.y
scripts/kconfig/preprocess.c