forked from espressif/esp-idf
Merge branch 'bugfix/remove_o0_bootloader' into 'master'
fix(build): remove CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_NONE option from c6, h2 and p4 See merge request espressif/esp-idf!28371
This commit is contained in:
@ -23,7 +23,6 @@ menu "Bootloader config"
|
|||||||
- The default "Size" setting will add the -0s flag to CFLAGS.
|
- The default "Size" setting will add the -0s flag to CFLAGS.
|
||||||
- The "Debug" setting will add the -Og flag to CFLAGS.
|
- The "Debug" setting will add the -Og flag to CFLAGS.
|
||||||
- The "Performance" setting will add the -O2 flag to CFLAGS.
|
- The "Performance" setting will add the -O2 flag to CFLAGS.
|
||||||
- The "None" setting will add the -O0 flag to CFLAGS.
|
|
||||||
|
|
||||||
Note that custom optimization levels may be unsupported.
|
Note that custom optimization levels may be unsupported.
|
||||||
|
|
||||||
@ -34,7 +33,9 @@ menu "Bootloader config"
|
|||||||
config BOOTLOADER_COMPILER_OPTIMIZATION_PERF
|
config BOOTLOADER_COMPILER_OPTIMIZATION_PERF
|
||||||
bool "Optimize for performance (-O2)"
|
bool "Optimize for performance (-O2)"
|
||||||
config BOOTLOADER_COMPILER_OPTIMIZATION_NONE
|
config BOOTLOADER_COMPILER_OPTIMIZATION_NONE
|
||||||
bool "Debug without optimization (-O0)"
|
bool "Debug without optimization (-O0) (Deprecated, will be removed in IDF v6.0)"
|
||||||
|
depends on IDF_TARGET_ARCH_XTENSA || IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C2
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
choice BOOTLOADER_LOG_LEVEL
|
choice BOOTLOADER_LOG_LEVEL
|
||||||
|
@ -12,9 +12,6 @@ set -euo pipefail
|
|||||||
gen_configs() {
|
gen_configs() {
|
||||||
# CONFIG_COMPILER_OPTIMIZATION_NONE with flag -O0
|
# CONFIG_COMPILER_OPTIMIZATION_NONE with flag -O0
|
||||||
echo "CONFIG_COMPILER_OPTIMIZATION_NONE=y" > esp-idf-template/sdkconfig.ci.O0
|
echo "CONFIG_COMPILER_OPTIMIZATION_NONE=y" > esp-idf-template/sdkconfig.ci.O0
|
||||||
echo "CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_NONE=y" >> esp-idf-template/sdkconfig.ci.O0
|
|
||||||
# -O0 makes the bootloader too large to fit in the default space, otherwise(!)
|
|
||||||
echo "CONFIG_PARTITION_TABLE_OFFSET=0x10000" >> esp-idf-template/sdkconfig.ci.O0
|
|
||||||
|
|
||||||
# CONFIG_COMPILER_OPTIMIZATION_SIZE with flag -Os
|
# CONFIG_COMPILER_OPTIMIZATION_SIZE with flag -Os
|
||||||
echo "CONFIG_COMPILER_OPTIMIZATION_SIZE=y" > esp-idf-template/sdkconfig.ci.Os
|
echo "CONFIG_COMPILER_OPTIMIZATION_SIZE=y" > esp-idf-template/sdkconfig.ci.Os
|
||||||
|
Reference in New Issue
Block a user