mirror of
https://github.com/espressif/esp32-wifi-lib.git
synced 2025-05-20 08:26:13 +08:00
support Wi-Fi modem sleep with MAC and baseband powering down(ccb95fec)
This commit is contained in:

committed by
ChenJianxing

parent
ad616c926f
commit
4222cde748
Binary file not shown.
BIN
esp32/libcore.a
BIN
esp32/libcore.a
Binary file not shown.
Binary file not shown.
BIN
esp32/libmesh.a
BIN
esp32/libmesh.a
Binary file not shown.
Binary file not shown.
BIN
esp32/libpp.a
BIN
esp32/libpp.a
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
esp32c3/libpp.a
BIN
esp32c3/libpp.a
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
esp32s2/libpp.a
BIN
esp32s2/libpp.a
Binary file not shown.
Binary file not shown.
@ -1,115 +1,67 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
for dir in esp32 esp32s2; do
|
for dir in esp32 esp32s2 esp32c3; do
|
||||||
|
if [ $dir = esp32 ]; then
|
||||||
|
TOOLCHAIN="xtensa-esp32-elf"
|
||||||
|
elif [ $dir = esp32s2 ]; then
|
||||||
|
TOOLCHAIN="xtensa-esp32s2-elf"
|
||||||
|
elif [ $dir = esp32c3 ]; then
|
||||||
|
TOOLCHAIN="riscv32-esp-elf"
|
||||||
|
else
|
||||||
|
echo "$dir does not exist"
|
||||||
|
fi
|
||||||
if [ -d "$dir" ]; then
|
if [ -d "$dir" ]; then
|
||||||
cd $dir
|
cd $dir
|
||||||
git status libphy.a | grep "modified" >/dev/null 2>&1
|
git status libphy.a | grep "modified" >/dev/null 2>&1
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo $dir/libphy.a fixed
|
echo $dir/libphy.a fixed
|
||||||
xtensa-esp32-elf-objcopy --redefine-sym ets_printf=phy_printf libphy.a
|
$TOOLCHAIN-objcopy --redefine-sym ets_printf=phy_printf libphy.a
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $dir = esp32 ] || [ $dir = esp32s2 ]; then
|
||||||
git status librtc.a | grep "modified" >/dev/null 2>&1
|
git status librtc.a | grep "modified" >/dev/null 2>&1
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo $dir/librtc.a fixed
|
echo $dir/librtc.a fixed
|
||||||
xtensa-esp32-elf-objcopy --redefine-sym ets_printf=rtc_printf librtc.a
|
$TOOLCHAIN-objcopy --redefine-sym ets_printf=rtc_printf librtc.a
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git status libsmartconfig.a | grep "modified" >/dev/null 2>&1
|
git status libsmartconfig.a | grep "modified" >/dev/null 2>&1
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo $dir/libsmartconfig.a fixed
|
echo $dir/libsmartconfig.a fixed
|
||||||
xtensa-esp32-elf-objcopy --redefine-sym printf=sc_printf libsmartconfig.a
|
$TOOLCHAIN-objcopy --redefine-sym printf=sc_printf libsmartconfig.a
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git status libpp.a | grep "modified" >/dev/null 2>&1
|
git status libpp.a | grep "modified" >/dev/null 2>&1
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo $dir/libpp.a fixed
|
echo $dir/libpp.a fixed
|
||||||
xtensa-esp32-elf-objcopy --redefine-sym printf=pp_printf libpp.a
|
$TOOLCHAIN-objcopy --redefine-sym printf=pp_printf libpp.a
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git status libnet80211.a | grep "modified" >/dev/null 2>&1
|
git status libnet80211.a | grep "modified" >/dev/null 2>&1
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo $dir/libnet80211.a fixed
|
echo $dir/libnet80211.a fixed
|
||||||
xtensa-esp32-elf-objcopy --redefine-sym printf=net80211_printf libnet80211.a
|
$TOOLCHAIN-objcopy --redefine-sym printf=net80211_printf libnet80211.a
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git status libmesh.a | grep "modified" >/dev/null 2>&1
|
git status libmesh.a | grep "modified" >/dev/null 2>&1
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo $dir/libmesh.a fixed
|
echo $dir/libmesh.a fixed
|
||||||
xtensa-esp32-elf-objcopy --redefine-sym printf=mesh_printf libmesh.a
|
$TOOLCHAIN-objcopy --redefine-sym printf=mesh_printf libmesh.a
|
||||||
xtensa-esp32-elf-objcopy --redefine-sym ets_printf=mesh_printf libmesh.a
|
$TOOLCHAIN-objcopy --redefine-sym ets_printf=mesh_printf libmesh.a
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git status libcore.a | grep "modified" >/dev/null 2>&1
|
git status libcore.a | grep "modified" >/dev/null 2>&1
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo $dir/libcore.a fixed
|
echo $dir/libcore.a fixed
|
||||||
xtensa-esp32-elf-objcopy --redefine-sym printf=core_printf libcore.a
|
$TOOLCHAIN-objcopy --redefine-sym printf=core_printf libcore.a
|
||||||
xtensa-esp32-elf-objcopy --redefine-sym ets_printf=core_printf libcore.a
|
$TOOLCHAIN-objcopy --redefine-sym ets_printf=core_printf libcore.a
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git status libcoexist.a | grep "modified" >/dev/null 2>&1
|
git status libcoexist.a | grep "modified" >/dev/null 2>&1
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo $dir/libcoexist.a fixed
|
echo $dir/libcoexist.a fixed
|
||||||
xtensa-esp32-elf-objcopy --redefine-sym ets_printf=coexist_printf libcoexist.a
|
$TOOLCHAIN-objcopy --redefine-sym ets_printf=coexist_printf libcoexist.a
|
||||||
xtensa-esp32-elf-objcopy --redefine-sym printf=coexist_printf libcoexist.a
|
$TOOLCHAIN-objcopy --redefine-sym printf=coexist_printf libcoexist.a
|
||||||
fi
|
|
||||||
cd ..
|
|
||||||
else
|
|
||||||
echo "$dir does not exist"
|
|
||||||
fi
|
|
||||||
done;
|
|
||||||
|
|
||||||
for dir in esp32c3; 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
|
|
||||||
riscv32-esp-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
|
|
||||||
riscv32-esp-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
|
|
||||||
riscv32-esp-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
|
|
||||||
riscv32-esp-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
|
|
||||||
riscv32-esp-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
|
|
||||||
riscv32-esp-elf-objcopy --redefine-sym printf=mesh_printf libmesh.a
|
|
||||||
riscv32-esp-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
|
|
||||||
riscv32-esp-elf-objcopy --redefine-sym printf=core_printf libcore.a
|
|
||||||
riscv32-esp-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
|
|
||||||
riscv32-esp-elf-objcopy --redefine-sym ets_printf=coexist_printf libcoexist.a
|
|
||||||
riscv32-esp-elf-objcopy --redefine-sym printf=coexist_printf libcoexist.a
|
|
||||||
fi
|
fi
|
||||||
cd ..
|
cd ..
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user