mirror of
https://github.com/espressif/esp-phy-lib.git
synced 2026-08-04 10:17:51 +00:00
Merge branch 'feature/decouple_esp_phy' into 'master'
phy: add phy libraries See merge request espressif/esp-phy-lib!1
This commit is contained in:
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.
Executable
+35
@@ -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;
|
||||
Reference in New Issue
Block a user