From bed8b29d9a00422368305e0e01e6f2be6b5ebe20 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Thu, 15 Apr 2021 16:13:40 +1000 Subject: [PATCH] ci: Move partition table offset for -O0 build of template app --- tools/ci/build_template_app.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/ci/build_template_app.sh b/tools/ci/build_template_app.sh index abda314691..80e0b2ebf9 100755 --- a/tools/ci/build_template_app.sh +++ b/tools/ci/build_template_app.sh @@ -17,9 +17,13 @@ gen_configs() { # CONFIG_COMPILER_OPTIMIZATION_NONE with flag -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 echo "CONFIG_COMPILER_OPTIMIZATION_SIZE=y" > esp-idf-template/sdkconfig.ci.Os echo "CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_SIZE=y" >> esp-idf-template/sdkconfig.ci.Os + # CONFIG_COMPILER_OPTIMIZATION_PERF with flag -O2 echo "CONFIG_COMPILER_OPTIMIZATION_PERF=y" > esp-idf-template/sdkconfig.ci.O2 echo "CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_PERF=y" >> esp-idf-template/sdkconfig.ci.O2