mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
a2461ea32b
Add a GENERATE_SDKCONFIG build property that controls whether kconfgen writes the sdkconfig file (--output config) during the configuration step. It defaults to 1 (enabled). When building the bootloader as a subproject, the set of components (and their Kconfig files) differs from the main project. Running kconfgen with --output config in this context rewrites the main project's sdkconfig. Even when the content is identical, the timestamp update causes ninja to detect sdkconfig as newer than build.ninja outputs (e.g. cmake_install.cmake), triggering an infinite CMake re-run loop. Setting GENERATE_SDKCONFIG to 0 in a subproject prevents this, matching the behaviour of cmakev1's __OUTPUT_SDKCONFIG property. Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>