esp-idf/examples/build_system/cmake/multi_config/main/Kconfig.projbuild
Ivan Grokhotkov 5730711185 examples: build_system: demonstrate building app with multiple configs
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
2021-04-21 01:11:06 +02:00

21 lines
605 B
Plaintext

menu "Example Product Configuration"
config EXAMPLE_PRODUCT_NAME
string "Product name"
default "Not set"
help
Product name used in the example
choice EXAMPLE_FUNC_IMPL
prompt "Implementation of function 'func'"
help
Select one of the implementations of 'func' to be used in the app.
This setting is used in component CMakeLists.txt.
config EXAMPLE_FUNC_IMPL_DEV
bool "Development (func_dev.c)"
config EXAMPLE_FUNC_IMPL_PROD
bool "Production (func_prod.c)"
endchoice
endmenu