Skip to content

Commit 2dab10f

Browse files
authored
Update update-components.sh
1 parent 6f2eedb commit 2dab10f

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

tools/update-components.sh

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,9 @@
22

33
source ./tools/config.sh
44

5-
CAMERA_REPO_URL="https://github.com/espressif/esp32-camera.git"
65
TINYUSB_REPO_URL="https://github.com/hathach/tinyusb.git"
76
TINYUSB_REPO_DIR="$AR_COMPS/arduino_tinyusb/tinyusb"
87

9-
#
10-
# CLONE/UPDATE ESP32-CAMERA
11-
#
12-
echo "Updating ESP32 Camera..."
13-
if [ ! -d "$AR_COMPS/esp32-camera" ]; then
14-
git clone -b master --recursive --depth 1 --shallow-submodule $CAMERA_REPO_URL "$AR_COMPS/esp32-camera"
15-
else
16-
cd "$AR_COMPS/esp32-camera"
17-
git pull
18-
git submodule update --depth 1
19-
# -ff is for cleaning untracked files as well as submodules
20-
git clean -ffdx
21-
cd -
22-
fi
23-
if [ $? -ne 0 ]; then exit 1; fi
24-
25-
#
26-
# Arduino needs cam_hal.h from esp32-camera in include folder
27-
#
28-
cp "$AR_COMPS/esp32-camera/driver/private_include/cam_hal.h" "$AR_COMPS/esp32-camera/driver/include/"
29-
308
#
319
# CLONE/UPDATE TINYUSB
3210
#

0 commit comments

Comments
 (0)