mirror of
https://github.com/espressif/esp-phy-lib.git
synced 2026-08-07 19:57:51 +00:00
phy_init: phy_version 101,0868884,Dec 7 2022,14:01:12
This commit is contained in:
Binary file not shown.
Binary file not shown.
+7
-13
@@ -1,25 +1,19 @@
|
||||
#!/bin/bash
|
||||
for dir in esp32 esp32s2 esp32c3 esp32s3 esp32h2 esp32c2; do
|
||||
for dir in esp32 esp32s2 esp32c3 esp32s3 esp32h2 esp32c2 esp32c6; 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"
|
||||
elif [ $dir = esp32h2 ]; then
|
||||
TOOLCHAIN="riscv32-esp-elf"
|
||||
elif [ $dir = esp32c2 ]; then
|
||||
TOOLCHAIN="riscv32-esp-elf"
|
||||
else
|
||||
echo "$dir does not exist"
|
||||
TOOLCHAIN="riscv32-esp-elf"
|
||||
fi
|
||||
if [ -d "$dir" ]; then
|
||||
cd $dir
|
||||
|
||||
if [ $dir = esp32 ]; then
|
||||
git status librtc.a | grep "modified" >/dev/null 2>&1
|
||||
git status librtc.a | grep "modified\|new file" >/dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
echo $dir/librtc.a fixed
|
||||
$TOOLCHAIN-objcopy --redefine-sym ets_printf=rtc_printf librtc.a
|
||||
@@ -27,12 +21,12 @@ for dir in esp32 esp32s2 esp32c3 esp32s3 esp32h2 esp32c2; do
|
||||
elif [ $dir = esp32h2 ]; then
|
||||
for subdir in rev1 rev2 ; do
|
||||
cd $subdir
|
||||
git status libbtbb.a | grep "modified" >/dev/null 2>&1
|
||||
git status libbtbb.a | grep "modified\|new file" >/dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
echo $dir/libbtbb.a fixed
|
||||
$TOOLCHAIN-objcopy --redefine-sym ets_printf=rtc_printf libbtbb.a
|
||||
fi
|
||||
git status libphy.a | grep "modified" >/dev/null 2>&1
|
||||
git status libphy.a | grep "modified\|new file" >/dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
echo $dir/libphy.a fixed
|
||||
$TOOLCHAIN-objcopy --redefine-sym ets_printf=phy_printf libphy.a
|
||||
@@ -40,14 +34,14 @@ for dir in esp32 esp32s2 esp32c3 esp32s3 esp32h2 esp32c2; do
|
||||
cd ..
|
||||
done
|
||||
elif [ $dir != esp32s2 ]; then
|
||||
git status libbtbb.a | grep "modified" >/dev/null 2>&1
|
||||
git status libbtbb.a | grep "modified\|new file" >/dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
echo $dir/libbtbb.a fixed
|
||||
$TOOLCHAIN-objcopy --redefine-sym ets_printf=rtc_printf libbtbb.a
|
||||
fi
|
||||
fi
|
||||
if [ $dir != esp32h2 ]; then
|
||||
git status libphy.a | grep "modified" >/dev/null 2>&1
|
||||
git status libphy.a | grep "modified\|new file" >/dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
echo $dir/libphy.a fixed
|
||||
$TOOLCHAIN-objcopy --redefine-sym ets_printf=phy_printf libphy.a
|
||||
|
||||
Reference in New Issue
Block a user