Page 1 of 1

Different partition.csv files in one project

Posted: Tue Jun 27, 2023 4:37 pm
by apuder
Hi all,

for one of my projects I have two different partition.csv files depending on a Kconfig compile-time configuration. ESP-IDF lets me select one custom partition.csv file, but I would like to make that dependent on an application-specific setting. I realize this is more of a CMake question than ESP-IDF, but I'm sure someone smart out there can point me in the right direction.

TIA,
AP

Re: Different partition.csv files in one project

Posted: Fri Jun 30, 2023 2:38 pm
by ESP_rrtandler
Hello apuder,

You can build more .bin files from .csv files using CMake's add_custom_target construct. You can get inspiration directly from esp-idf repository:

Code: Select all

components/esp_partition/host_test/partition_api_test/CMakeLists.txt