This commit adds a new idf.py --preset NAME argument, which allows
selecting the CMake configuration preset with a given name.
For idf.py, selecting the preset does two things:
- sets the build directory, which is specified in the preset itself
using "binaryDir" field
- passes --preset argument to CMake configuration phase
The multi_config example is updated to illustrate how this feature is
expected to be used.
It corrupts environment on macOS runner because it uses shell, not docker-executor,
and makes all tree read-only for a non-root user.
+ Replace examples with real files in example README.md
This example shows how to use ESP-IDF build system features to build
multiple configurations of an app from the same source files.
Configurations are set by overriding SDKCONFIG_DEFAULTS variable when
invoking idf.py.
Related: https://github.com/espressif/esp-idf/issues/5658