Conditional usage of idf_component.yml ?
Posted: Thu Sep 28, 2023 11:39 am
Hi,
To compile my project for esp32 and esp32s3 (with a display), I use idf.py set-target and a KConfig depends on IDF_TARGET_ESP32S3 combined with if/endif clauses in my CMakeLists.txt.
This works great, but the contents of idf_component.yml are always parsed/downloaded/compiled, even though they are not added to my REQUIRES/idf_component_register. So the components are build, although never used/linked.
Is some logic possible to use a KConfig variable or a method like sdkconfig.defaults.<target> to select different idf components, based on a selection?
To compile my project for esp32 and esp32s3 (with a display), I use idf.py set-target and a KConfig depends on IDF_TARGET_ESP32S3 combined with if/endif clauses in my CMakeLists.txt.
This works great, but the contents of idf_component.yml are always parsed/downloaded/compiled, even though they are not added to my REQUIRES/idf_component_register. So the components are build, although never used/linked.
Is some logic possible to use a KConfig variable or a method like sdkconfig.defaults.<target> to select different idf components, based on a selection?