Multiple binaries per single ESP-IDF project?
Posted: Sun Aug 01, 2021 6:22 am
I am working on a project that is more-less a library. Therefore, I would like to have roughly the following project structure:
Where examples are complete firmware for ESP32. I would like to make them easy to build for the users and especially, make them fast to compile and flash. When I make each example a separate ESP-IDF project (with root CMakeLists.txt), there is one problem - each example would have a separate build directory and ESP-IDF would be built for every example again and again. That is troublesome as it adds extra time to the compilation and also, every build directory is roughly 600MB, which adds up when you have more than 20 of them.
All of my examples share the exact same configuration, so I was wondering if it is possible to have or hack multiple binaries per one IDF project, so I reduce the usage of disk space and speed up the compilation. The goal is to allow users to compile all examples and then flash them one by one via a script (essentially giving the user an interactive show case).
Code: Select all
- components
- libraryComponent1
- libraryComponent2
- libraryComponent3
- examples
- example1
- example2
- example3
All of my examples share the exact same configuration, so I was wondering if it is possible to have or hack multiple binaries per one IDF project, so I reduce the usage of disk space and speed up the compilation. The goal is to allow users to compile all examples and then flash them one by one via a script (essentially giving the user an interactive show case).