mirror of
https://github.com/espressif/esp-phy-lib.git
synced 2026-08-20 10:09:56 +00:00
support libphy&libbtbb for esp32h2beta2
* add esp32h2 CI test * update fix_printf.sh * rename h2beta1 libphy&libbtbb * add libphy&libbtbb for esp32h2beta2 libbtbb version: 6c47ec3 libphy version: bb2a234
This commit is contained in:
@@ -11,6 +11,15 @@ check_lib_reversion:
|
||||
variables:
|
||||
GIT_SUBMODULE_STRATEGY: none
|
||||
script:
|
||||
- mkdir riscv32
|
||||
- wget https://github.com/espressif/crosstool-NG/releases/download/esp-2021r2-patch3/riscv32-esp-elf-gcc8_4_0-esp-2021r2-patch3-linux-amd64.tar.gz >/dev/null 2>&1
|
||||
- tar -zxvf riscv32-esp-elf-gcc8_4_0-esp-2021r2-patch3-linux-amd64.tar.gz -C ./riscv32 >/dev/null 2>&1
|
||||
- for dir in esp32c3; do test $(riscv32/riscv32-esp-elf/bin/riscv32-esp-elf-nm $dir/*.a | grep -w printf | wc -l) -eq 0; done;
|
||||
- for dir in esp32c3; do test $(riscv32/riscv32-esp-elf/bin/riscv32-esp-elf-nm $dir/*.a | grep -w ets_printf | wc -l) -eq 0; done;
|
||||
- test $(riscv32/riscv32-esp-elf/bin/riscv32-esp-elf-nm esp32h2/rev1/*.a | grep -w printf | wc -l) -eq 0;
|
||||
- test $(riscv32/riscv32-esp-elf/bin/riscv32-esp-elf-nm esp32h2/rev1/*.a | grep -w ets_printf | wc -l) -eq 0;
|
||||
- test $(riscv32/riscv32-esp-elf/bin/riscv32-esp-elf-nm esp32h2/rev2/*.a | grep -w printf | wc -l) -eq 0;
|
||||
- test $(riscv32/riscv32-esp-elf/bin/riscv32-esp-elf-nm esp32h2/rev2/*.a | grep -w ets_printf | wc -l) -eq 0;
|
||||
- for dir in esp32 esp32s2 esp32s3; do test $(xtensa-esp32-elf-nm $dir/*.a | grep -w printf | wc -l) -eq 0; done;
|
||||
- for dir in esp32 esp32s2 esp32s3; do test $(xtensa-esp32-elf-nm $dir/*.a | grep -w ets_printf | wc -l) -eq 0; done;
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
+21
-5
@@ -22,6 +22,21 @@ for dir in esp32 esp32s2 esp32c3 esp32s3 esp32h2; do
|
||||
echo $dir/librtc.a fixed
|
||||
$TOOLCHAIN-objcopy --redefine-sym ets_printf=rtc_printf librtc.a
|
||||
fi
|
||||
elif [ $dir = esp32h2 ]; then
|
||||
for subdir in rev1 rev2 ; do
|
||||
cd $subdir
|
||||
git status libbtbb.a | grep "modified" >/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
|
||||
if [ $? -eq 0 ]; then
|
||||
echo $dir/libphy.a fixed
|
||||
$TOOLCHAIN-objcopy --redefine-sym ets_printf=phy_printf libphy.a
|
||||
fi
|
||||
cd ..
|
||||
done
|
||||
elif [ $dir != esp32s2 ]; then
|
||||
git status libbtbb.a | grep "modified" >/dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
@@ -29,11 +44,12 @@ for dir in esp32 esp32s2 esp32c3 esp32s3 esp32h2; do
|
||||
$TOOLCHAIN-objcopy --redefine-sym ets_printf=rtc_printf libbtbb.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
|
||||
if [ $dir != esp32h2 ]; then
|
||||
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
|
||||
fi
|
||||
|
||||
cd ..
|
||||
|
||||
Reference in New Issue
Block a user