182184567e
This change adds two options (Debug/Release) for optimization level. Debug enables -O0, release enables -Os and adds -DNDEBUG (which removes all assert() statements). Debugging symbols are kept in both cases, although we may add an option to strip output file if necessary. Also we used to define all common compiler flags in CPPFLAGS, and then appended them to CFLAGS/CXXFLAGS. It makes it impossible to add preprocessor macros to CPPFLAGS at component level (one has to use CFLAGS/CXXFLAGS instead). Some third party libraries are not compatible with this approach. Changed to the more common way of using these variables.
42 lines
1 KiB
Text
42 lines
1 KiB
Text
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see kconfig/kconfig-language.txt.
|
|
#
|
|
mainmenu "Espressif IoT Development Framework Configuration"
|
|
|
|
|
|
menu "SDK tool configuration"
|
|
config TOOLPREFIX
|
|
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.
|
|
|
|
config PYTHON
|
|
string "Python 2 interpreter"
|
|
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.
|
|
endmenu
|
|
|
|
source "$COMPONENT_KCONFIGS_PROJBUILD"
|
|
|
|
choice OPTIMIZATION_LEVEL
|
|
prompt "Optimization level"
|
|
default OPTIMIZATION_LEVEL_DEBUG
|
|
help
|
|
This option sets compiler optimization level.
|
|
config OPTIMIZATION_LEVEL_DEBUG
|
|
bool "Debug"
|
|
config OPTIMIZATION_LEVEL_RELEASE
|
|
bool "Release"
|
|
endchoice
|
|
|
|
menu "Component config"
|
|
source "$COMPONENT_KCONFIGS"
|
|
endmenu
|
|
|
|
|
|
|