Skip to content

Commit d1253b5

Browse files
committed
Add additional DL models and use extra components only when needed
1 parent 956d601 commit d1253b5

File tree

2 files changed

+27
-6
lines changed

2 files changed

+27
-6
lines changed

build.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ if [ "$BUILD_TYPE" != "all" ]; then
169169

170170
echo "idf.py -DIDF_TARGET=\"$target\" -DSDKCONFIG_DEFAULTS=\"$configs\" $BUILD_TYPE"
171171
rm -rf build sdkconfig
172-
idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$configs" $BUILD_TYPE
172+
COMPONENTS_SUBSET=full idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$configs" $BUILD_TYPE
173173
if [ $? -ne 0 ]; then exit 1; fi
174174
done
175175
exit 0
@@ -223,11 +223,11 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
223223

224224
echo "* Build IDF-Libs: $idf_libs_configs"
225225
rm -rf build sdkconfig
226-
idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$idf_libs_configs" idf-libs
226+
COMPONENTS_SUBSET=full idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$idf_libs_configs" idf-libs
227227
if [ $? -ne 0 ]; then exit 1; fi
228228

229229
if [ "$target" == "esp32s3" ]; then
230-
idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$idf_libs_configs" srmodels_bin
230+
COMPONENTS_SUBSET=full idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$idf_libs_configs" srmodels_bin
231231
if [ $? -ne 0 ]; then exit 1; fi
232232
AR_SDK="$AR_TOOLS/esp32-arduino-libs/$target"
233233
# sr model.bin
@@ -248,7 +248,7 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
248248

249249
echo "* Build BootLoader: $bootloader_configs"
250250
rm -rf build sdkconfig
251-
idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$bootloader_configs" copy-bootloader
251+
COMPONENTS_SUBSET=none idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$bootloader_configs" copy-bootloader
252252
if [ $? -ne 0 ]; then exit 1; fi
253253
done
254254

@@ -261,7 +261,7 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
261261

262262
echo "* Build Memory Variant: $mem_configs"
263263
rm -rf build sdkconfig
264-
idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$mem_configs" mem-variant
264+
COMPONENTS_SUBSET=none idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$mem_configs" mem-variant
265265
if [ $? -ne 0 ]; then exit 1; fi
266266
done
267267
done

main/idf_component.yml

+22-1
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,48 @@ dependencies:
77
require: public
88
rules:
99
- if: "target in [esp32, esp32s2, esp32s3]"
10+
- if: "$COMPONENTS_SUBSET in [full, all]"
1011
espressif/esp-tflite-micro:
1112
version: ">=1.2.0"
1213
require: public
1314
rules:
1415
- if: "target not in [esp32c2]"
16+
- if: "$COMPONENTS_SUBSET in [full, all]"
1517
espressif/esp-dl:
1618
version: "master"
1719
git: https://github.com/espressif/esp-dl.git
1820
path: esp-dl
1921
require: public
2022
rules:
21-
- if: "target in [esp32s3, esp32s2, esp32, esp32p4]"
23+
- if: "target in [esp32s3, esp32, esp32p4]"
24+
- if: "$COMPONENTS_SUBSET in [full, all]"
25+
espressif/human_face_detect:
26+
version: "master"
27+
git: https://github.com/espressif/esp-dl.git
28+
path: models/human_face_detect
29+
require: public
30+
rules:
31+
- if: "target in [esp32s3, esp32, esp32p4]"
32+
- if: "$COMPONENTS_SUBSET in [full, all]"
33+
espressif/pedestrian_detect:
34+
version: "master"
35+
git: https://github.com/espressif/esp-dl.git
36+
path: models/pedestrian_detect
37+
require: public
38+
rules:
39+
- if: "target in [esp32s3, esp32, esp32p4]"
40+
- if: "$COMPONENTS_SUBSET in [full, all]"
2241
espressif/esp-sr:
2342
version: ">=1.4.2"
2443
rules:
2544
- if: "target in [esp32s3]"
45+
- if: "$COMPONENTS_SUBSET in [full, all]"
2646
espressif/esp_matter:
2747
version: "^1.3.0"
2848
require: public
2949
rules:
3050
- if: "target not in [esp32c2, esp32h2, esp32p4]"
51+
- if: "$COMPONENTS_SUBSET in [full, all]"
3152

3253
# esp-sr: "^1.3.1"
3354
# esp32-camera: "^2.0.4"

0 commit comments

Comments
 (0)