Build multiple images with different sdkconfigs

Posts: 6
Joined: Sun Jun 21, 2020 3:12 pm

Build multiple images with different sdkconfigs

Postby gal-vayyar » Tue Jul 28, 2020 4:04 pm

My use case is an app with two different images - one is WiFi-based and the other one is BLE-based. I'd like to share components between the two.

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)
It looks like the second call is trying to create a target already created.
What can be done?


Who is online

Users browsing this forum: No registered users and 45 guests