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
96 endmenu # Optimization level
98 menu "Component config"
99 source "$COMPONENT_KCONFIGS"