1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-15 00:02:49 +03:00

sdk: add a script for library update

Moves instructions from Readme file into a script
This commit is contained in:
Ivan Grokhotkov
2018-02-22 11:06:43 +03:00
committed by Ivan Grokhotkov
parent c885542f05
commit cd6cd85fca
2 changed files with 18 additions and 20 deletions

View File

@ -1,25 +1,7 @@
## Updating SDK libraries
After updating SDK libraries to a new version, do the following changes.
Remove mem_manager.o from libmain.a to use custom heap implementation, and time.o to fix redefinition of time-related functions:
```bash
xtensa-lx106-elf-ar -d libmain.a mem_manager.o
xtensa-lx106-elf-ar -d libmain.a time.o
```
Rename `hostname` and `default_hostname` symbols:
```bash
xtensa-lx106-elf-ar x libmain.a eagle_lwip_if.o user_interface.o
xtensa-lx106-elf-objcopy --redefine-sym hostname=wifi_station_hostname user_interface.o
xtensa-lx106-elf-objcopy --redefine-sym hostname=wifi_station_hostname eagle_lwip_if.o
xtensa-lx106-elf-objcopy --redefine-sym default_hostname=wifi_station_default_hostname user_interface.o
xtensa-lx106-elf-objcopy --redefine-sym default_hostname=wifi_station_default_hostname eagle_lwip_if.o
xtensa-lx106-elf-ar r libmain.a eagle_lwip_if.o user_interface.o
```
- Copy .a files from SDK `lib` directory to this directory
- Run `fix_sdk_libs.sh`
## Updating libstdc++