Skip to content

Commit

Permalink
[Minimal build] Reduce file size of minimal build for 1MB OTA
Browse files Browse the repository at this point in the history
In order to get the build size down, a number of things had to be done:

- Removed notifications
- Reduce favicon.ico size
- Reduce flash string usage
- No SVG images on buttons.

Also made the OTA load button visible but disabled when OTA not possible.
  • Loading branch information
TD-er committed Dec 17, 2018
1 parent 680f60e commit 2973f32
Show file tree
Hide file tree
Showing 8 changed files with 248 additions and 232 deletions.
41 changes: 39 additions & 2 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,12 @@ build_flags = ${beta_platform.build_flags}
[normal_ota]
platform = ${regular_platform.platform}
build_flags = ${regular_platform.build_flags} -DPLUGIN_BUILD_MINIMAL_OTA
board_upload.maximum_size = 616448

[normal_beta_ota]
platform = ${beta_platform.platform}
build_flags = ${beta_platform.build_flags} -DPLUGIN_BUILD_MINIMAL_OTA
board_upload.maximum_size = ${normal_ota.board_upload.maximum_size}

[normal_ir]
platform = ${regular_platform.platform}
Expand Down Expand Up @@ -355,7 +361,7 @@ framework = ${common.framework}
upload_speed = ${common.upload_speed}
monitor_speed = ${common.monitor_speed}
board = ${esp8266_1M.board}
board_upload.maximum_size = 616448
board_upload.maximum_size = ${normal_ota.board_upload.maximum_size}
board_build.f_cpu = ${esp8266_1M.board_build.f_cpu}
board_build.flash_mode = ${esp8266_1M.board_build.flash_mode}
build_unflags = ${esp8266_1M.build_unflags}
Expand All @@ -371,12 +377,43 @@ framework = ${common.framework}
upload_speed = ${common.upload_speed}
monitor_speed = ${common.monitor_speed}
board = ${esp8285_1M.board}
board_upload.maximum_size = 616448
board_upload.maximum_size = ${normal_ota.board_upload.maximum_size}
board_build.f_cpu = ${esp8285_1M.board_build.f_cpu}
board_build.flash_mode = ${esp8285_1M.board_build.flash_mode}
build_unflags = ${esp8285_1M.build_unflags}
build_flags = ${esp8285_1M.build_flags} ${normal_ota.build_flags}

[env:minimal_core_250_beta_ESP8266_1024_OTA]
platform = ${normal_beta_ota.platform}
lib_deps = ${common.lib_deps}
lib_ignore = ${common.lib_ignore}
lib_ldf_mode = ${common.lib_ldf_mode}
lib_archive = ${common.lib_archive}
framework = ${common.framework}
upload_speed = ${common.upload_speed}
monitor_speed = ${common.monitor_speed}
board = ${esp8266_1M.board}
board_upload.maximum_size = ${normal_beta_ota.board_upload.maximum_size}
board_build.f_cpu = ${esp8266_1M.board_build.f_cpu}
board_build.flash_mode = ${esp8266_1M.board_build.flash_mode}
build_unflags = ${esp8266_1M.build_unflags}
build_flags = ${esp8266_1M.build_flags} ${normal_beta_ota.build_flags}

[env:minimal_core_250_beta_ESP8285_1024_OTA]
platform = ${normal_beta_ota.platform}
lib_deps = ${common.lib_deps}
lib_ignore = ${common.lib_ignore}
lib_ldf_mode = ${common.lib_ldf_mode}
lib_archive = ${common.lib_archive}
framework = ${common.framework}
upload_speed = ${common.upload_speed}
monitor_speed = ${common.monitor_speed}
board = ${esp8285_1M.board}
board_upload.maximum_size = ${normal_beta_ota.board_upload.maximum_size}
board_build.f_cpu = ${esp8285_1M.board_build.f_cpu}
board_build.flash_mode = ${esp8285_1M.board_build.flash_mode}
build_unflags = ${esp8285_1M.build_unflags}
build_flags = ${esp8285_1M.build_flags} ${normal_beta_ota.build_flags}

[env:normal_core_241_ESP8266_1024]
platform = ${normal_241.platform}
Expand Down
Loading

0 comments on commit 2973f32

Please sign in to comment.