I opted for the bare idf_build_process() as shown in idf_as_lib example, but not I'm facing the problem the incorporating two sdkconfig files, one for each image, where the first one has WiFi custom config and BLE disabled and the second one does the opposite.
By calling idf_build_process() twice I got the following:
Code: Select all
CMake Error at C:/Vayyar/esp-idf-v4.2/tools/cmake/kconfig.cmake:263 (add_custom_target):
add_custom_target cannot create target "menuconfig" because another target
with the same name already exists. The existing target is a custom target
created in source directory "C:/Vayyar/vayyar-smart-home". See
documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
C:/Vayyar/esp-idf-v4.2/tools/cmake/build.cmake:442 (__kconfig_generate_config)
CMakeLists.txt:213 (idf_build_process)
What can be done?
Thanks