From 4f971a0cf5bad3c2e6f9f2382841cb371723c20b Mon Sep 17 00:00:00 2001 From: Marius Vikhammer Date: Fri, 20 May 2022 14:32:40 +0800 Subject: [PATCH] CI: reduce memory footprint for "Loadable ELF build" Build test was failing due to IRAM overflow, building with the recommended options for reducing memory footprint should give us some breathing room. --- tools/ci/test_build_system_cmake.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/ci/test_build_system_cmake.sh b/tools/ci/test_build_system_cmake.sh index 9cc0f91390..f0a2b6cac0 100755 --- a/tools/ci/test_build_system_cmake.sh +++ b/tools/ci/test_build_system_cmake.sh @@ -800,6 +800,13 @@ endmenu\n" >> ${IDF_PATH}/Kconfig print_status "Loadable ELF build works" echo "CONFIG_APP_BUILD_TYPE_ELF_RAM=y" > sdkconfig + + # Set recommend configs to reduce memory footprint + echo "CONFIG_VFS_SUPPORT_TERMIOS=n" >> sdkconfig + echo "CONFIG_NEWLIB_NANO_FORMAT=y" >> sdkconfig + echo "CONFIG_ESP_SYSTEM_PANIC_PRINT_HALT=y" >> sdkconfig + echo "CONFIG_ESP_ERR_TO_NAME_LOOKUP=n" >> sdkconfig + idf.py reconfigure || failure "Couldn't configure for loadable ELF file" test -f build/flasher_args.json && failure "flasher_args.json should not be generated in a loadable ELF build" idf.py build || failure "Couldn't build a loadable ELF file"