fix(esp8266): fix bootloader stuck temporarily

Note: bootloader and phy init data will be compatible to idf, storing init data bin in (last - 3) sector will be as a legancy mode.

Closes https://github.com/espressif/ESP8266_RTOS_SDK/issues/230
This commit is contained in:
Wu Jian Gang
2018-06-19 09:09:16 +08:00
parent 1be2401df1
commit 9f58e5aacf

View File

@ -1,4 +1,4 @@
ifdef CONFIG_ESP8266_LEGACY
#ifdef CONFIG_ESP8266_LEGACY
BOOTLOADER_FIRMWARE_DIR := $(abspath $(COMPONENT_PATH))/firmware
@ -24,7 +24,7 @@ ESP_INIT_DATA_DEFAULT_BIN := $(BOOTLOADER_FIRMWARE_DIR)/esp_init_data_default.bi
ESPTOOL_ALL_FLASH_ARGS += $(ESP_INIT_DATA_DEFAULT_BIN_OFFSET) $(ESP_INIT_DATA_DEFAULT_BIN)
else
#else
ifdef CONFIG_ESP_PHY_INIT_DATA_IN_PARTITION
@ -59,7 +59,7 @@ flash: phy_init_data
endif # CONFIG_ESP_PHY_INIT_DATA_IN_PARTITION
endif
#endif
# global CFLAGS for ESP8266
CFLAGS += -DMEMLEAK_DEBUG -DICACHE_FLASH