Files
esp-idf/examples/build_system/cmake/multi_config/sdkconfig.defaults.prod_common
Ivan Grokhotkov 78ae7ab085 feat(build): add idf.py support for CMake configuration presets
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.
2025-10-29 11:47:40 +08:00

13 lines
524 B
Plaintext

# Common settings for production builds.
# For product-specific settings, see sdkconfig.prod1 and sdkconfig.prod2.
# This selects 'func_prod.c' file to be compiled and linked, see CMakeLists.txt.
CONFIG_EXAMPLE_FUNC_IMPL_PROD=y
# This sdkconfig file can also include additional options specific to this
# configuration. For example, we can optimize the binary size of a production
# build, and remove all log messages.
CONFIG_COMPILER_OPTIMIZATION_SIZE=y
CONFIG_BOOTLOADER_LOG_LEVEL_NONE=y
CONFIG_LOG_DEFAULT_LEVEL_NONE=y