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.
@@ -873,6 +873,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"
