Files
esp32-wifi-lib/fix_printf.sh
shenjun 6e05326fc7 esp_wifi_mesh: update wifi mesh libs(d5c1f19)
1. Fix FIX-ROOT does not reconnect to router when disconnect reason is too many
2. Add API esp_mesh_print_scan_result
3. Modify not to reset mesh_xonseq of self and children when flush_upstream_packets
4. Fix not switch to a parent candidate which has the same layer and assoc as current parent
5. Fix not arm parent monitor when a parent candidate is cleared without sending an event to mesh layer
6. Fix the new voted root does not reconnect to router if rssi is weak
2020-10-27 23:37:16 +08:00

60 lines
2.2 KiB
Bash
Executable File

#!/bin/bash
for dir in esp32 esp32s2; do
if [ -d "$dir" ]; then
cd $dir
git status libphy.a | grep "modified" >/dev/null 2>&1
if [ $? -eq 0 ]; then
echo $dir/libphy.a fixed
xtensa-esp32-elf-objcopy --redefine-sym ets_printf=phy_printf libphy.a
fi
git status librtc.a | grep "modified" >/dev/null 2>&1
if [ $? -eq 0 ]; then
echo $dir/librtc.a fixed
xtensa-esp32-elf-objcopy --redefine-sym ets_printf=rtc_printf librtc.a
fi
git status libsmartconfig.a | grep "modified" >/dev/null 2>&1
if [ $? -eq 0 ]; then
echo $dir/libsmartconfig.a fixed
xtensa-esp32-elf-objcopy --redefine-sym printf=sc_printf libsmartconfig.a
fi
git status libpp.a | grep "modified" >/dev/null 2>&1
if [ $? -eq 0 ]; then
echo $dir/libpp.a fixed
xtensa-esp32-elf-objcopy --redefine-sym printf=pp_printf libpp.a
fi
git status libnet80211.a | grep "modified" >/dev/null 2>&1
if [ $? -eq 0 ]; then
echo $dir/libnet80211.a fixed
xtensa-esp32-elf-objcopy --redefine-sym printf=net80211_printf libnet80211.a
fi
git status libmesh.a | grep "modified" >/dev/null 2>&1
if [ $? -eq 0 ]; then
echo $dir/libmesh.a fixed
xtensa-esp32-elf-objcopy --redefine-sym printf=mesh_printf libmesh.a
xtensa-esp32-elf-objcopy --redefine-sym ets_printf=mesh_printf libmesh.a
fi
git status libcore.a | grep "modified" >/dev/null 2>&1
if [ $? -eq 0 ]; then
echo $dir/libcore.a fixed
xtensa-esp32-elf-objcopy --redefine-sym printf=core_printf libcore.a
xtensa-esp32-elf-objcopy --redefine-sym ets_printf=core_printf libcore.a
fi
git status libcoexist.a | grep "modified" >/dev/null 2>&1
if [ $? -eq 0 ]; then
echo $dir/libcoexist.a fixed
xtensa-esp32-elf-objcopy --redefine-sym ets_printf=coexist_printf libcoexist.a
xtensa-esp32-elf-objcopy --redefine-sym printf=coexist_printf libcoexist.a
fi
cd ..
else
echo "$dir does not exist"
fi
done;