Files
dongheng d0f58daec1 feat(esp8266): add system version
Bootloader can get the version of application for specific section,
and then check if some features are supported.

Developers can use the macro "ESP_IDF_VERSION" to limite some function like following:

include "esp_idf_version.h"

if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(3, 4, 0) && ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(4, 0, 0) // 3.4 <= ver < 4.0
    do_xxx_process();
endif
2019-09-23 20:06:51 +08:00
..
2019-09-23 20:06:51 +08:00
2019-09-23 20:06:51 +08:00
2019-09-23 20:06:51 +08:00
2019-09-23 20:06:51 +08:00

README

esp-idf compile and 'AR' user program as target library 'libmain.a', so we should not use
library which is named 'libmain.a'. We use 'libcore.a' instead of it.

As I konwn, you can do following:

1. rename libmain.a to libcore.a
2. change text 
        "*libmain.a:spi_flash.o(.literal .text .literal.* .text.*)"
   to
        "*libcore.a:spi_flash.o(.literal .text .literal.* .text.*)"
   in file 'eagle.app.v6.common.ld'