merge ESP32S2BETA WiFi libraries to master branch(af6bf136)

This commit is contained in:
Xia Xiaotian
2019-10-29 14:34:02 +08:00
parent 1d830bc243
commit 4a7e5493e7
23 changed files with 38 additions and 24 deletions

View File

@ -1,10 +1,24 @@
#!/bin/bash
xtensa-esp32-elf-objcopy --redefine-sym ets_printf=phy_printf libphy.a
xtensa-esp32-elf-objcopy --redefine-sym ets_printf=rtc_printf librtc.a
xtensa-esp32-elf-objcopy --redefine-sym printf=sc_printf libsmartconfig.a
xtensa-esp32-elf-objcopy --redefine-sym printf=pp_printf libpp.a
xtensa-esp32-elf-objcopy --redefine-sym printf=net80211_printf libnet80211.a
xtensa-esp32-elf-objcopy --redefine-sym printf=core_printf libcore.a
xtensa-esp32-elf-objcopy --redefine-sym ets_printf=core_printf libcore.a
xtensa-esp32-elf-objcopy --redefine-sym ets_printf=coexist_printf libcoexist.a
xtensa-esp32-elf-objcopy --redefine-sym printf=coexist_printf libcoexist.a
for dir in esp32 esp32s2beta; do
if [ -d "$dir" ]; then
cd $dir
if [ $dir == esp32 ]; then
xtensa-esp32-elf-objcopy --redefine-sym ets_printf=phy_printf libphy.a
elif [ $dir == esp32s2beta ]; then
xtensa-esp32-elf-objcopy --redefine-sym ets_printf=phy_printf libphyA.a
xtensa-esp32-elf-objcopy --redefine-sym ets_printf=phy_printf libphyB.a
xtensa-esp32-elf-objcopy --redefine-sym ets_printf=phy_printf libphy_marlin3.a
fi
xtensa-esp32-elf-objcopy --redefine-sym ets_printf=rtc_printf librtc.a
xtensa-esp32-elf-objcopy --redefine-sym printf=sc_printf libsmartconfig.a
xtensa-esp32-elf-objcopy --redefine-sym printf=pp_printf libpp.a
xtensa-esp32-elf-objcopy --redefine-sym printf=net80211_printf libnet80211.a
xtensa-esp32-elf-objcopy --redefine-sym printf=core_printf libcore.a
xtensa-esp32-elf-objcopy --redefine-sym ets_printf=core_printf libcore.a
xtensa-esp32-elf-objcopy --redefine-sym ets_printf=coexist_printf libcoexist.a
xtensa-esp32-elf-objcopy --redefine-sym printf=coexist_printf libcoexist.a
cd ..
else
echo "$dir does not exist"
fi
done;