mirror of
https://github.com/espressif/esp-phy-lib.git
synced 2026-07-28 15:07:53 +00:00
fix the bug that phy libs still have ets_printf
This commit is contained in:
@@ -1,5 +1,17 @@
|
||||
stages:
|
||||
- deploy
|
||||
- check
|
||||
|
||||
check_lib_reversion:
|
||||
stage: check
|
||||
except:
|
||||
- master
|
||||
- /^release\/v/
|
||||
image: $CI_DOCKER_REGISTRY/esp32-ci-env
|
||||
script:
|
||||
- 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;
|
||||
|
||||
|
||||
push_master_to_github:
|
||||
stage: deploy
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+10
-2
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
for dir in esp32 esp32s2 esp32c3 esp32s3; do
|
||||
for dir in esp32 esp32s2 esp32c3 esp32s3 esp32h2; do
|
||||
if [ $dir = esp32 ]; then
|
||||
TOOLCHAIN="xtensa-esp32-elf"
|
||||
elif [ $dir = esp32s2 ]; then
|
||||
@@ -8,18 +8,26 @@ for dir in esp32 esp32s2 esp32c3 esp32s3; do
|
||||
TOOLCHAIN="riscv32-esp-elf"
|
||||
elif [ $dir = esp32s3 ]; then
|
||||
TOOLCHAIN="xtensa-esp32s3-elf"
|
||||
elif [ $dir = esp32h2 ]; then
|
||||
TOOLCHAIN="riscv32-esp-elf"
|
||||
else
|
||||
echo "$dir does not exist"
|
||||
fi
|
||||
if [ -d "$dir" ]; then
|
||||
cd $dir
|
||||
|
||||
if [ $dir = esp32 ] || [ $dir = esp32s2 ]; then
|
||||
if [ $dir = esp32 ]; 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
|
||||
elif [ $dir != esp32s2 ]; then
|
||||
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
|
||||
fi
|
||||
|
||||
git status libphy.a | grep "modified" >/dev/null 2>&1
|
||||
|
||||
Reference in New Issue
Block a user