fix(cmakev2/kconfig): do not automatically generate the kconfig_menus.json file

Currently, when the initial sdkconfig is generated, the
kconfig_menus.json format is also created alongside other formats like
CMake, JSON, or C header. The kconfig_menus.json depends on the Kconfig
hierarchy and cannot be generated globally. It must be generated for
each executable to ensure that included and excluded components are
correctly positioned within the Kconfig menu hierarchy. Remove the
automatic generation of kconfig_menus.json.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
This commit is contained in:
Frantisek Hrbata
2025-09-18 17:05:08 +02:00
committed by BOT
parent 9da953f3a7
commit c5d21936be
-2
View File
@@ -525,7 +525,6 @@ function(__generate_kconfig_outputs)
set(sdkconfig_header "${config_dir}/sdkconfig.h")
set(sdkconfig_cmake "${config_dir}/sdkconfig.cmake")
set(sdkconfig_json "${config_dir}/sdkconfig.json")
set(sdkconfig_json_menus "${config_dir}/kconfig_menus.json")
# Create and store base kconfgen command for this generation and target reuse
__create_base_kconfgen_command("${sdkconfig}" "${sdkconfig_defaults}")
@@ -535,7 +534,6 @@ function(__generate_kconfig_outputs)
--output header "${sdkconfig_header}"
--output cmake "${sdkconfig_cmake}"
--output json "${sdkconfig_json}"
--output json_menus "${sdkconfig_json_menus}"
--output config "${sdkconfig}"
)