@@ -19,38 +19,8 @@ if [ ! -d "$AR_COMPS/arduino" ]; then
19
19
git clone $AR_REPO_URL " $AR_COMPS /arduino"
20
20
fi
21
21
22
- if [ -z $AR_BRANCH ]; then
23
- if [ -z $GITHUB_HEAD_REF ]; then
24
- current_branch=` git branch --show-current`
25
- else
26
- current_branch=" $GITHUB_HEAD_REF "
27
- fi
28
- echo " Current Branch: $current_branch "
29
- if [[ " $current_branch " != " master" && ` git_branch_exists " $AR_COMPS /arduino" " $current_branch " ` == " 1" ]]; then
30
- export AR_BRANCH=" $current_branch "
31
- else
3
8000
2
- if [ -z " $IDF_COMMIT " ]; then # commit was not specified at build time
33
- AR_BRANCH_NAME=" idf-$IDF_BRANCH "
34
- else
35
- AR_BRANCH_NAME=" idf-$IDF_COMMIT "
36
- fi
37
- has_ar_branch=` git_branch_exists " $AR_COMPS /arduino" " $AR_BRANCH_NAME " `
38
- if [ " $has_ar_branch " == " 1" ]; then
39
- export AR_BRANCH=" $AR_BRANCH_NAME "
40
- else
41
- has_ar_branch=` git_branch_exists " $AR_COMPS /arduino" " $AR_PR_TARGET_BRANCH " `
42
- if [ " $has_ar_branch " == " 1" ]; then
43
- export AR_BRANCH=" $AR_PR_TARGET_BRANCH "
44
- fi
45
- fi
46
- fi
47
- fi
48
-
49
- if [ " $AR_BRANCH " ]; then
50
- git -C " $AR_COMPS /arduino" checkout " $AR_BRANCH " && \
51
- git -C " $AR_COMPS /arduino" fetch && \
52
- git -C " $AR_COMPS /arduino" pull --ff-only
53
- fi
22
+ git -C " $AR_COMPS /arduino" fetch && \
23
+ git -C " $AR_COMPS /arduino" checkout 2.0.6
54
24
if [ $? -ne 0 ]; then exit 1; fi
55
25
56
26
#
@@ -60,13 +30,14 @@ echo "Updating ESP32 Camera..."
60
30
if [ ! -d " $AR_COMPS /esp32-camera" ]; then
61
31
git clone $CAMERA_REPO_URL " $AR_COMPS /esp32-camera"
62
32
else
63
- git -C " $AR_COMPS /esp32-camera" fetch && \
64
- git -C " $AR_COMPS /esp32-camera" pull --ff-only
33
+ git -C " $AR_COMPS /esp32-camera" fetch
65
34
fi
35
+ if [ $? -ne 0 ]; then exit 1; fi
66
36
# this is a temp measure to fix build issue
67
37
# if [ -f "$AR_COMPS/esp32-camera/idf_component.yml" ]; then
68
38
# rm -rf "$AR_COMPS/esp32-camera/idf_component.yml"
69
39
# fi
40
+ git -C " $AR_COMPS /esp32-camera" checkout " $( grep -e ^esp32-camera: $AR_COMPS /arduino/tools/sdk/versions.txt | cut -d ' ' -f 3) "
70
41
if [ $? -ne 0 ]; then exit 1; fi
71
42
72
43
#
@@ -76,9 +47,9 @@ echo "Updating ESP-DL..."
76
47
if [ ! -d " $AR_COMPS /esp-dl" ]; then
77
48
git clone $DL_REPO_URL " $AR_COMPS /esp-dl"
78
49
else
79
- git -C " $AR_COMPS /esp-dl" fetch && \
80
- git -C " $AR_COMPS /esp-dl" pull --ff-only
50
+ git -C " $AR_COMPS /esp-dl" fetch
81
51
fi
52
+ git -C " $AR_COMPS /esp-dl" checkout " $( grep -e ^esp-dl: $AR_COMPS /arduino/tools/sdk/versions.txt | cut -d ' ' -f 3) "
82
53
if [ $? -ne 0 ]; then exit 1; fi
83
54
84
55
#
@@ -88,9 +59,10 @@ echo "Updating ESP-SR..."
88
59
if [ ! -d " $AR_COMPS /esp-sr" ]; then
89
60
git clone $SR_REPO_URL " $AR_COMPS /esp-sr"
90
61
else
91
- git -C " $AR_COMPS /esp-sr" fetch && \
92
- git -C " $AR_COMPS /esp-sr" pull --ff-only
62
+ git -C " $AR_COMPS /esp-sr" fetch
93
63
fi
64
+ git -C " $AR_COMPS /esp-dl" checkout " $( grep -e ^esp-dl: $AR_COMPS /arduino/tools/sdk/versions.txt | cut -d ' ' -f 3) "
65
+ if [ $? -ne 0 ]; then exit 1; fi
94
66
# this is a temp measure to fix build issue
95
67
if [ -f " $AR_COMPS /esp-sr/idf_component.yml" ]; then
96
68
rm -rf " $AR_COMPS /esp-sr/idf_component.yml"
@@ -102,42 +74,42 @@ if [ $? -ne 0 ]; then exit 1; fi
102
74
#
103
75
echo " Updating ESP-LITTLEFS..."
104
76
if [ ! -d " $AR_COMPS /esp_littlefs" ]; then
105
- git clone $LITTLEFS_REPO_URL " $AR_COMPS /esp_littlefs" && \
106
- git -C " $AR_COMPS /esp_littlefs" submodule update --init --recursive
77
+ git clone $LITTLEFS_REPO_URL " $AR_COMPS /esp_littlefs"
107
78
else
108
- git -C " $AR_COMPS /esp_littlefs" fetch && \
109
- git -C " $AR_COMPS /esp_littlefs" pull --ff-only && \
110
- git -C " $AR_COMPS /esp_littlefs" submodule update --init --recursive
79
+ git -C " $AR_COMPS /esp_littlefs" fetch
111
80
fi
112
81
if [ $? -ne 0 ]; then exit 1; fi
82
+ git -C " $AR_COMPS /esp_littlefs" checkout " $( grep -e ^esp_littlefs: $AR_COMPS /arduino/tools/sdk/versions.txt | cut -d ' ' -f 3) " && \
83
+ git -C " $AR_COMPS /esp_littlefs" submodule update --init --recursive
84
+ if [ $? -ne 0 ]; then exit 1; fi
113
85
114
86
#
115
87
# CLONE/UPDATE ESP-RAINMAKER
116
88
#
117
89
echo " Updating ESP-RainMaker..."
118
90
if [ ! -d " $AR_COMPS /esp-rainmaker" ]; then
119
- git clone $RMAKER_REPO_URL " $AR_COMPS /esp-rainmaker" && \
120
- git -C " $AR_COMPS /esp-rainmaker" submodule update --init --recursive
91
+ git clone $RMAKER_REPO_URL " $AR_COMPS /esp-rainmaker"
121
92
else
122
- git -C " $AR_COMPS /esp-rainmaker" fetch && \
123
- git -C " $AR_COMPS /esp-rainmaker" pull --ff-only && \
124
- git -C " $AR_COMPS /esp-rainmaker" submodule update --init --recursive
93
+ git -C " $AR_COMPS /esp-rainmaker" fetch
125
94
fi
126
95
if [ $? -ne 0 ]; then exit 1; fi
96
+ git -C " $AR_COMPS /esp-rainmaker" checkout " $( grep -e ^esp-rainmaker: $AR_COMPS /arduino/tools/sdk/versions.txt | cut -d ' ' -f 3) " && \
97
+ git -C " $AR_COMPS /esp-rainmaker" submodule update --init --recursive
98
+ if [ $? -ne 0 ]; then exit 1; fi
127
99
128
100
#
129
101
# CLONE/UPDATE ESP-INSIGHTS
130
102
#
131
103
echo " Updating ESP-Insights..."
132
104
if [ ! -d " $AR_COMPS /esp-insights" ]; then
133
- git clone $INSIGHTS_REPO_URL " $AR_COMPS /esp-insights" && \
134
- git -C " $AR_COMPS /esp-insights" submodule update --init --recursive
105
+ git clone $INSIGHTS_REPO_URL " $AR_COMPS /esp-insights"
135
106
else
136
- git -C " $AR_COMPS /esp-insights" fetch && \
137
- git -C " $AR_COMPS /esp-insights" pull --ff-only && \
138
- git -C " $AR_COMPS /esp-insights" submodule update --init --recursive
107
+ git -C " $AR_COMPS /esp-insights" fetch
139
108
fi
140
109
if [ $? -ne 0 ]; then exit 1; fi
110
+ git -C " $AR_COMPS /esp-insights" checkout " $( grep -e ^esp-insights: $AR_COMPS /arduino/tools/sdk/versions.txt | cut -d ' ' -f 3) " && \
111
+ git -C " $AR_COMPS /esp-insights" submodule update --init --recursive
112
+ if [ $? -ne 0 ]; then exit 1; fi
141
113
142
114
#
143
115
# CLONE/UPDATE ESP-DSP
@@ -146,10 +118,11 @@ echo "Updating ESP-DSP..."
146
118
if [ ! -d " $AR_COMPS /esp-dsp" ]; then
147
119
git clone $DSP_REPO_URL " $AR_COMPS /esp-dsp"
148
120
else
149
- git -C " $AR_COMPS /esp-dsp" fetch && \
150
- git -C " $AR_COMPS /esp-dsp" pull --ff-only
121
+ git -C " $AR_COMPS /esp-dsp" fetch
151
122
fi
152
123
if [ $? -ne 0 ]; then exit 1; fi
124
+ git -C " $AR_COMPS /esp-dsp" checkout " $( grep -e ^esp-dsp: $AR_COMPS /arduino/tools/sdk/versions.txt | cut -d ' ' -f 3) "
125
+ if [ $? -ne 0 ]; then exit 1; fi
153
126
154
127
#
155
128
# CLONE/UPDATE TINYUSB
@@ -158,8 +131,8 @@ echo "Updating TinyUSB..."
158
131
if [ ! -d " $AR_COMPS /arduino_tinyusb/tinyusb" ]; then
159
132
git clone $TINYUSB_REPO_URL " $AR_COMPS /arduino_tinyusb/tinyusb"
160
133
else
161
- git -C " $AR_COMPS /arduino_tinyusb/tinyusb" fetch && \
162
- git -C " $AR_COMPS /arduino_tinyusb/tinyusb" pull --ff-only
134
+ git -C " $AR_COMPS /arduino_tinyusb/tinyusb" fetch
163
135
fi
164
136
if [ $? -ne 0 ]; then exit 1; fi
165
-
137
+ git -C " $AR_COMPS /arduino_tinyusb/tinyusb" checkout " $( grep -e ^tinyusb: $AR_COMPS /arduino/tools/sdk/versions.txt | cut -d ' ' -f 3) "
138
+ if [ $? -ne 0 ]; then exit 1; fi
0 commit comments