esp_phy: add phy libraries

* libphy.a was copied from esp32-wifi-lib repo (commit id: f20bc566)
* librtc.a was copied from esp32-wifi-lib repo (commit id: f20bc566)
* libbtbb.a was copied from esp32c3-bt-lib repo (commit id: 90b02563)
This commit is contained in:
Shu Chen
2021-06-03 19:05:33 +08:00
parent 8b70ba802b
commit f2c0563405
8 changed files with 35 additions and 0 deletions

BIN
esp32/libphy.a Normal file

Binary file not shown.

BIN
esp32/librtc.a Normal file

Binary file not shown.

BIN
esp32c3/libbtbb.a Normal file

Binary file not shown.

BIN
esp32c3/libphy.a Normal file

Binary file not shown.

BIN
esp32s2/libphy.a Normal file

Binary file not shown.

BIN
esp32s3/libbtbb.a Normal file

Binary file not shown.

BIN
esp32s3/libphy.a Normal file

Binary file not shown.

35
fix_printf.sh Executable file
View File

@ -0,0 +1,35 @@
#!/bin/bash
for dir in esp32 esp32s2 esp32c3 esp32s3; 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"
elif [ $dir = esp32s3 ]; then
TOOLCHAIN="xtensa-esp32s3-elf"
else
echo "$dir does not exist"
fi
if [ -d "$dir" ]; then
cd $dir
if [ $dir = esp32 ] || [ $dir = esp32s2 ]; then
git status librtc.a | grep "modified" >/dev/null 2>&1
if [ $? -eq 0 ]; then
echo $dir/librtc.a fixed
$TOOLCHAIN-objcopy --redefine-sym ets_printf=rtc_printf librtc.a
fi
fi
git status libphy.a | grep "modified" >/dev/null 2>&1
if [ $? -eq 0 ]; then
echo $dir/libphy.a fixed
$TOOLCHAIN-objcopy --redefine-sym ets_printf=phy_printf libphy.a
fi
cd ..
else
echo "$dir does not exist"
fi
done;