Skip to content

Commit 2a47861

Browse files
committed
Fix build error for esp-dsp and esp-face
1 parent e18c7de commit 2a47861

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tools/update-components.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ if [ $? -ne 0 ]; then exit 1; fi
5555

5656
if [ ! -d "$AR_COMPS/esp-face" ]; then
5757
git clone $FACE_REPO_URL "$AR_COMPS/esp-face"
58+
cml=`cat "$AR_COMPS/esp-face/CMakeLists.txt"`
59+
echo "if(IDF_TARGET STREQUAL \"esp32\" OR IDF_TARGET STREQUAL \"esp32s2\" OR IDF_TARGET STREQUAL \"esp32s3\")" > "$AR_COMPS/esp-face/CMakeLists.txt"
60+
echo "$cml" >> "$AR_COMPS/esp-face/CMakeLists.txt"
61+
echo "endif()" >> "$AR_COMPS/esp-face/CMakeLists.txt"
5862
else
5963
git -C "$AR_COMPS/esp-face" fetch && \
6064
git -C "$AR_COMPS/esp-face" pull --ff-only
@@ -91,6 +95,10 @@ if [ $? -ne 0 ]; then exit 1; fi
9195

9296
if [ ! -d "$AR_COMPS/esp-dsp" ]; then
9397
git clone $DSP_REPO_URL "$AR_COMPS/esp-dsp"
98+
cml=`cat "$AR_COMPS/esp-dsp/CMakeLists.txt"`
99+
echo "if(IDF_TARGET STREQUAL \"esp32\" OR IDF_TARGET STREQUAL \"esp32s2\" OR IDF_TARGET STREQUAL \"esp32s3\")" > "$AR_COMPS/esp-dsp/CMakeLists.txt"
100+
echo "$cml" >> "$AR_COMPS/esp-dsp/CMakeLists.txt"
101+
echo "endif()" >> "$AR_COMPS/esp-dsp/CMakeLists.txt"
94102
else
95103
git -C "$AR_COMPS/esp-dsp" fetch && \
96104
git -C "$AR_COMPS/esp-dsp" pull --ff-only

0 commit comments

Comments
 (0)