fix: cleanup after dropping curses from menuconfig

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Jan Beran
2026-06-24 21:24:21 +08:00
co-authored by Cursor
parent a6928be465
commit aa7c9b1538
6 changed files with 28 additions and 72 deletions
+6 -2
View File
@@ -875,10 +875,12 @@ function(idf_create_menuconfig executable)
if(_menuconfig_inline_ok)
add_custom_target("${ARG_TARGET}"
# Ensure kconfig.in and kconfig_projbuild.in are present and up to date.
# This is not necessary under normal circumstances, but if the files are manually removed,
# it may be possible to regenerate them.
COMMAND ${python} "${idf_path}/tools/kconfig_new/prepare_kconfig_files.py"
--list-separator=semicolon
--env-file "${config_env_dir}/config.env"
COMMAND ${python} "${idf_path}/tools/check_term.py"
COMMAND ${CMAKE_COMMAND} -E env
"COMPONENT_KCONFIGS_SOURCE_FILE=${config_env_dir}/kconfigs.in"
"COMPONENT_KCONFIGS_PROJBUILD_SOURCE_FILE=${config_env_dir}/kconfigs_projbuild.in"
@@ -906,6 +908,9 @@ function(idf_create_menuconfig executable)
message(WARNING "esp-idf-kconfig >= ${MENUCONFIG_INLINE_MIN_KCONFIG_VERSION} is required "
"for the optimised menuconfig target. Please update your Python packages by re-running the install script.")
add_custom_target("${ARG_TARGET}"
# Ensure kconfig.in and kconfig_projbuild.in are present and up to date.
# This is not necessary under normal circumstances, but if the files are manually removed,
# it may be possible to regenerate them.
COMMAND ${python} "${idf_path}/tools/kconfig_new/prepare_kconfig_files.py"
--list-separator=semicolon
--env-file "${config_env_dir}/config.env"
@@ -918,7 +923,6 @@ function(idf_create_menuconfig executable)
--dont-write-deprecated
--output config "${sdkconfig}"
--env-file "${config_env_dir}/config.env"
COMMAND ${python} "${idf_path}/tools/check_term.py"
COMMAND ${CMAKE_COMMAND} -E env
"COMPONENT_KCONFIGS_SOURCE_FILE=${config_env_dir}/kconfigs.in"
"COMPONENT_KCONFIGS_PROJBUILD_SOURCE_FILE=${config_env_dir}/kconfigs_projbuild.in"