Different partition.csv files in one project

apuder
Posts: 53
Joined: Mon Mar 26, 2018 7:27 pm

Different partition.csv files in one project

Postby apuder » Tue Jun 27, 2023 4:37 pm

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

ESP_rrtandler
Posts: 23
Joined: Wed May 31, 2023 6:54 pm

Re: Different partition.csv files in one project

Postby ESP_rrtandler » Fri Jun 30, 2023 2:38 pm

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

Who is online

Users browsing this forum: JustVic and 98 guests