Skip to content

Commit

Permalink
sdk: rename hostname and default_hostname symbols (esp8266#1281)
Browse files Browse the repository at this point in the history
hostname -> wifi_station_hostname
default_hostname -> wifi_station_default_hostname
  • Loading branch information
igrr committed Dec 31, 2017
1 parent 9183366 commit 8edeac0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tools/sdk/lib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@ 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
```

## Updating libstdc++

After building gcc using crosstool-NG, get compiled libstdc++ and remove some objects:
Expand Down
Binary file modified tools/sdk/lib/libmain.a
Binary file not shown.

0 comments on commit 8edeac0

Please sign in to comment.