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
-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
