@@ -87,7 +87,7 @@ if [ ! -d "$AR_COMPS/esp-dl" ]; then
87
87
git clone $DL_REPO_URL " $AR_COMPS /esp-dl"
88
88
mv " $AR_COMPS /esp-dl/CMakeLists.txt" " $AR_COMPS /esp-dl/CMakeListsOld.txt"
89
89
echo " idf_build_get_property(target IDF_TARGET)" > " $AR_COMPS /esp-dl/CMakeLists.txt"
90
- echo " if(NOT \$ {IDF_TARGET} STREQUAL \" esp32c6\" )" >> " $AR_COMPS /esp-dl/CMakeLists.txt"
90
+ echo " if(NOT \$ {IDF_TARGET} STREQUAL \" esp32c6\" AND NOT \$ {IDF_TARGET} STREQUAL \" esp32h2 \" )" >> " $AR_COMPS /esp-dl/CMakeLists.txt"
91
91
cat " $AR_COMPS /esp-dl/CMakeListsOld.txt" >> " $AR_COMPS /esp-dl/CMakeLists.txt"
92
92
echo " endif()" >> " $AR_COMPS /esp-dl/CMakeLists.txt"
93
93
else
@@ -100,6 +100,25 @@ if [ -f "$AR_COMPS/esp-dl/idf_component.yml" ]; then
100
100
rm -rf " $AR_COMPS /esp-dl/idf_component.yml"
101
101
fi
102
102
103
+ #
104
+ # CLONE/UPDATE ESP-SR
105
+ #
106
+ SR_REPO_URL=" https://github.com/espressif/esp-sr.git"
107
+ echo " Updating ESP-SR..."
108
+ if [ ! -d " $AR_COMPS /esp-sr" ]; then
109
+ git clone $SR_REPO_URL " $AR_COMPS /esp-sr"
110
+ mv " $AR_COMPS /esp-sr/CMakeLists.txt" " $AR_COMPS /esp-sr/CMakeListsOld.txt"
111
+ echo " if(IDF_TARGET STREQUAL \" esp32s3\" )" > " $AR_COMPS /esp-sr/CMakeLists.txt"
112
+ cat " $AR_COMPS /esp-sr/CMakeListsOld.txt" >> " $AR_COMPS /esp-sr/CMakeLists.txt"
113
+ echo " endif()" >> " $AR_COMPS /esp-sr/CMakeLists.txt"
114
+ echo " - esp32c6" >> " $AR_COMPS /esp-sr/idf_component.yml"
115
+ echo " - esp32h2" >> " $AR_COMPS /esp-sr/idf_component.yml"
116
+ else
117
+ git -C " $AR_COMPS /esp-sr" fetch && \
118
+ git -C " $AR_COMPS /esp-sr" pull --ff-only
119
+ fi
120
+ if [ $? -ne 0 ]; then exit 1; fi
121
+
103
122
#
104
123
# CLONE/UPDATE ESP-RAINMAKER
105
124
#
@@ -143,35 +162,3 @@ else
143
162
git -C " $AR_COMPS /arduino_tinyusb/tinyusb" pull --ff-only
144
163
fi
145
164
if [ $? -ne 0 ]; then exit 1; fi
146
-
147
- #
148
- # CLONE/UPDATE ESP-SR
149
- #
150
- SR_REPO_URL=" https://github.com/espressif/esp-sr.git"
151
- echo " Updating ESP-SR..."
152
- if [ ! -d " $AR_COMPS /esp-sr" ]; then
153
- git clone $SR_REPO_URL " $AR_COMPS /esp-sr"
154
- mv " $AR_COMPS /esp-sr/CMakeLists.txt" " $AR_COMPS /esp-sr/CMakeListsOld.txt"
155
- echo " if(IDF_TARGET STREQUAL \" esp32s3\" )" > " $AR_COMPS /esp-sr/CMakeLists.txt"
156
- cat " $AR_COMPS /esp-sr/CMakeListsOld.txt" >> " $AR_COMPS /esp-sr/CMakeLists.txt"
157
- echo " endif()" >> " $AR_COMPS /esp-sr/CMakeLists.txt"
158
- echo " - esp32c6" >> " $AR_COMPS /esp-sr/idf_component.yml"
159
- else
160
- git -C " $AR_COMPS /esp-sr" fetch && \
161
- git -C " $AR_COMPS /esp-sr" pull --ff-only
162
- fi
163
- if [ $? -ne 0 ]; then exit 1; fi
164
-
165
- # #
166
- # # CLONE/UPDATE ESP-DSP
167
- # #
168
- # DSP_REPO_URL="https://github.com/espressif/esp-dsp.git"
169
- # echo "Updating ESP-DSP..."
170
- # if [ ! -d "$AR_COMPS/espressif__esp-dsp" ]; then
171
- # git clone $DSP_REPO_URL "$AR_COMPS/espressif__esp-dsp"
172
- # else
173
- # git -C "$AR_COMPS/espressif__esp-dsp" fetch && \
174
- # git -C "$AR_COMPS/espressif__esp-dsp" pull --ff-only
175
- # fi
176
- # if [ $? -ne 0 ]; then exit 1; fi
177
-
0 commit comments