From c5d21936be1c354d7ed43fb405bd341747eb60fd Mon Sep 17 00:00:00 2001 From: Frantisek Hrbata Date: Thu, 18 Sep 2025 17:05:08 +0200 Subject: [PATCH] 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 --- tools/cmakev2/kconfig.cmake | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/cmakev2/kconfig.cmake b/tools/cmakev2/kconfig.cmake index acfdb42f36..890a690c85 100644 --- a/tools/cmakev2/kconfig.cmake +++ b/tools/cmakev2/kconfig.cmake @@ -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}" )