2016-08-17 15:08:22 +00:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
|
|
# see kconfig/kconfig-language.txt.
|
|
|
|
#
|
2016-08-19 06:30:39 +00:00
|
|
|
mainmenu "Espressif IoT Development Framework Configuration"
|
2016-08-17 15:08:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
menu "SDK tool configuration"
|
|
|
|
config TOOLPREFIX
|
2016-09-28 05:24:58 +00:00
|
|
|
string "Compiler toolchain path/prefix"
|
|
|
|
default "xtensa-esp32-elf-"
|
|
|
|
help
|
|
|
|
The prefix/path that is used to call the toolchain. The default setting assumes
|
|
|
|
a crosstool-ng gcc setup that is in your PATH.
|
2016-08-17 15:08:22 +00:00
|
|
|
|
|
|
|
config PYTHON
|
|
|
|
string "Python 2 interpreter"
|
2016-09-28 05:24:58 +00:00
|
|
|
default "python"
|
|
|
|
help
|
|
|
|
The executable name/path that is used to run python. On some systems Python 2.x
|
|
|
|
may need to be invoked as python2.
|
2016-08-17 15:08:22 +00:00
|
|
|
endmenu
|
|
|
|
|
|
|
|
source "$COMPONENT_KCONFIGS_PROJBUILD"
|
|
|
|
|
2017-06-19 01:25:45 +00:00
|
|
|
menu "Compiler options"
|
|
|
|
|
|
|
|
choice OPTIMIZATION_COMPILER
|
|
|
|
prompt "Optimization Level"
|
2016-10-17 04:38:17 +00:00
|
|
|
default OPTIMIZATION_LEVEL_DEBUG
|
|
|
|
help
|
2017-06-19 01:25:45 +00:00
|
|
|
This option sets compiler optimization level (gcc -O argument).
|
|
|
|
|
|
|
|
- for "Release" setting, -Os flag is added to CFLAGS.
|
2016-10-20 09:17:54 +00:00
|
|
|
- for "Debug" setting, -Og flag is added to CFLAGS.
|
2017-06-19 01:25:45 +00:00
|
|
|
|
|
|
|
"Release" with -Os produces smaller & faster compiled code but it
|
|
|
|
may be harder to correlated code addresses to source files when debugging.
|
|
|
|
|
|
|
|
To add custom optimization settings, set CFLAGS and/or CPPFLAGS
|
|
|
|
in project makefile, before including $(IDF_PATH)/make/project.mk. Note that
|
|
|
|
custom optimization levels may be unsupported.
|
|
|
|
|
2016-10-17 04:38:17 +00:00
|
|
|
config OPTIMIZATION_LEVEL_DEBUG
|
2017-06-19 01:25:45 +00:00
|
|
|
bool "Debug (-Og)"
|
2016-10-17 04:38:17 +00:00
|
|
|
config OPTIMIZATION_LEVEL_RELEASE
|
2017-06-19 01:25:45 +00:00
|
|
|
bool "Release (-Os)"
|
2016-10-17 04:38:17 +00:00
|
|
|
endchoice
|
|
|
|
|
2017-07-12 04:57:44 +00:00
|
|
|
choice OPTIMIZATION_ASSERTION_LEVEL
|
|
|
|
prompt "Assertion level"
|
|
|
|
default OPTIMIZATION_ASSERTIONS_ENABLED
|
|
|
|
help
|
|
|
|
Assertions can be:
|
|
|
|
- Enabled. Failure will print verbose assertion details. This is the default.
|
|
|
|
|
|
|
|
- Set to "silent" to save code size (failed assertions will abort() but user
|
|
|
|
needs to use the aborting address to find the line number with the failed assertion.)
|
|
|
|
|
|
|
|
- Disabled entirely (not recommended for most configurations.) -DNDEBUG is added
|
|
|
|
to CPPFLAGS in this case.
|
|
|
|
|
|
|
|
config OPTIMIZATION_ASSERTIONS_ENABLED
|
|
|
|
prompt "Enabled"
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Enable assertions. Assertion content and line number will be printed on failure.
|
|
|
|
|
|
|
|
config OPTIMIZATION_ASSERTIONS_SILENT
|
|
|
|
prompt "Silent (saves code size)"
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Enable silent assertions. Failed assertions will abort(), user needs to
|
|
|
|
use the aborting address to find the line number with the failed assertion.
|
|
|
|
|
|
|
|
config OPTIMIZATION_ASSERTIONS_DISABLED
|
|
|
|
prompt "Disabled (sets -DNDEBUG)"
|
2017-06-19 01:25:45 +00:00
|
|
|
bool
|
|
|
|
help
|
2017-07-12 04:57:44 +00:00
|
|
|
If assertions are disabled, -DNDEBUG is added to CPPFLAGS.
|
2017-06-19 01:25:45 +00:00
|
|
|
|
2017-07-12 04:57:44 +00:00
|
|
|
endchoice # assertions
|
2017-06-19 01:25:45 +00:00
|
|
|
|
|
|
|
endmenu # Optimization level
|
|
|
|
|
2016-08-17 15:08:22 +00:00
|
|
|
menu "Component config"
|
|
|
|
source "$COMPONENT_KCONFIGS"
|
|
|
|
endmenu
|