2 # For a description of the syntax of this configuration file,
3 # see kconfig/kconfig-language.txt.
5 mainmenu "Espressif IoT Development Framework Configuration"
8 menu "SDK tool configuration"
10 string "Compiler toolchain path/prefix"
11 default "xtensa-esp32-elf-"
13 The prefix/path that is used to call the toolchain. The default setting assumes
14 a crosstool-ng gcc setup that is in your PATH.
17 string "Python 2 interpreter"
20 The executable name/path that is used to run python. On some systems Python 2.x
21 may need to be invoked as python2.
23 config MAKE_WARN_UNDEFINED_VARIABLES
24 bool "'make' warns on undefined variables"
27 Adds --warn-undefined-variables to MAKEFLAGS. This causes make to
28 print a warning any time an undefined variable is referenced.
30 This option helps find places where a variable reference is misspelled
31 or otherwise missing, but it can be unwanted if you have Makefiles which
32 depend on undefined variables expanding to an empty string.
34 endmenu # SDK tool configuration
36 source "$COMPONENT_KCONFIGS_PROJBUILD"
38 menu "Compiler options"
40 choice OPTIMIZATION_COMPILER
41 prompt "Optimization Level"
42 default OPTIMIZATION_LEVEL_DEBUG
44 This option sets compiler optimization level (gcc -O argument).
46 - for "Release" setting, -Os flag is added to CFLAGS.
47 - for "Debug" setting, -Og flag is added to CFLAGS.
49 "Release" with -Os produces smaller & faster compiled code but it
50 may be harder to correlated code addresses to source files when debugging.
52 To add custom optimization settings, set CFLAGS and/or CPPFLAGS
53 in project makefile, before including $(IDF_PATH)/make/project.mk. Note that
54 custom optimization levels may be unsupported.
56 config OPTIMIZATION_LEVEL_DEBUG
58 config OPTIMIZATION_LEVEL_RELEASE
62 choice OPTIMIZATION_ASSERTION_LEVEL
63 prompt "Assertion level"
64 default OPTIMIZATION_ASSERTIONS_ENABLED
67 - Enabled. Failure will print verbose assertion details. This is the default.
69 - Set to "silent" to save code size (failed assertions will abort() but user
70 needs to use the aborting address to find the line number with the failed assertion.)
72 - Disabled entirely (not recommended for most configurations.) -DNDEBUG is added
73 to CPPFLAGS in this case.
75 config OPTIMIZATION_ASSERTIONS_ENABLED
79 Enable assertions. Assertion content and line number will be printed on failure.
81 config OPTIMIZATION_ASSERTIONS_SILENT
82 prompt "Silent (saves code size)"
85 Enable silent assertions. Failed assertions will abort(), user needs to
86 use the aborting address to find the line number with the failed assertion.
88 config OPTIMIZATION_ASSERTIONS_DISABLED
89 prompt "Disabled (sets -DNDEBUG)"
92 If assertions are disabled, -DNDEBUG is added to CPPFLAGS.
94 endchoice # assertions
97 bool "Enable C++ exceptions"
100 Enabling this option compiles all IDF C++ files with exception support enabled.
102 Disabling this option disables C++ exception support in all compiled files, and any libstdc++ code which throws
103 an exception will abort instead.
105 Enabling this option currently adds an additional 20KB of heap overhead, and 4KB of additional heap is allocated
106 the first time an exception is thrown in user code.
108 endmenu # Compiler Options
110 menu "Component config"
111 source "$COMPONENT_KCONFIGS"