feat(esptool): hack code to support esp8266 version 3 binary

This commit is contained in:
Wu Jian Gang
2018-06-17 23:39:56 +08:00
committed by Dong Heng
parent 82a8582371
commit db10e49f14
3 changed files with 215 additions and 8 deletions

View File

@ -99,13 +99,13 @@ config ESPTOOLPY_FLASHFREQ
choice ESPTOOLPY_FLASHSIZE
prompt "Flash size"
default ESPTOOLPY_FLASHSIZE_2MB_C1
default ESPTOOLPY_FLASHSIZE_2MB
help
SPI flash size, in megabytes
config ESPTOOLPY_FLASHSIZE_2MB_C1
config ESPTOOLPY_FLASHSIZE_2MB
bool "2 MB"
config ESPTOOLPY_FLASHSIZE_4MB_C1
config ESPTOOLPY_FLASHSIZE_4MB
bool "4 MB"
config ESPTOOLPY_FLASHSIZE_8MB
bool "8 MB"
@ -115,8 +115,8 @@ endchoice
config ESPTOOLPY_FLASHSIZE
string
default "2MB-c1" if ESPTOOLPY_FLASHSIZE_2MB_C1
default "4MB-c1" if ESPTOOLPY_FLASHSIZE_4MB_C1
default "2MB" if ESPTOOLPY_FLASHSIZE_2MB
default "4MB" if ESPTOOLPY_FLASHSIZE_4MB
default "8MB" if ESPTOOLPY_FLASHSIZE_8MB
default "16MB" if ESPTOOLPY_FLASHSIZE_16MB