Skip to content

Commit 45e3a69

Browse files
committed
Set versions
1 parent bf3d652 commit 45e3a69

File tree

2 files changed

+23
-46
lines changed

2 files changed

+23
-46
lines changed

build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ SKIP_ENV=0
1616
COPY_OUT=0
1717
DEPLOY_OUT=0
1818

19+
export IDF_COMMIT="b8050b365e"
20+
1921
function print_help() {
2022
echo "Usage: build.sh [-s] [-A <arduino_branch>] [-I <idf_branch>] [-i <idf_commit>] [-c <path>] [-t <target>] [-b <build|menuconfig|idf_libs|copy_bootloader|mem_variant>] [config ...]"
2123
echo " -s Skip installing/updating of ESP-IDF and all components"

tools/update-components.sh

Lines changed: 21 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -18,33 +18,8 @@ if [ ! -d "$AR_COMPS/arduino" ]; then
1818
git clone $AR_REPO_URL "$AR_COMPS/arduino"
1919
fi
2020

21-
if [ -z $AR_BRANCH ]; then
22-
if [ -z $GITHUB_HEAD_REF ]; then
23-
current_branch=`git branch --show-current`
24-
else
25-
current_branch="$GITHUB_HEAD_REF"
26-
fi
27-
echo "Current Branch: $current_branch"
28-
if [[ "$current_branch" != "master" && `git_branch_exists "$AR_COMPS/arduino" "$current_branch"` == "1" ]]; then
29-
export AR_BRANCH="$current_branch"
30-
else
31-
has_ar_branch=`git_branch_exists "$AR_COMPS/arduino" "idf-$IDF_BRANCH"`
32-
if [ "$has_ar_branch" == "1" ]; then
33-
export AR_BRANCH="idf-$IDF_BRANCH"
34-
else
35-
has_ar_branch=`git_branch_exists "$AR_COMPS/arduino" "$AR_PR_TARGET_BRANCH"`
36-
if [ "$has_ar_branch" == "1" ]; then
37-
export AR_BRANCH="$AR_PR_TARGET_BRANCH"
38-
fi
39-
fi
40-
fi
41-
fi
42-
43-
if [ "$AR_BRANCH" ]; then
44-
git -C "$AR_COMPS/arduino" checkout "$AR_BRANCH" && \
45-
git -C "$AR_COMPS/arduino" fetch && \
46-
git -C "$AR_COMPS/arduino" pull --ff-only
47-
fi
21+
git -C "$AR_COMPS/arduino" fetch && \
22+
git -C "$AR_COMPS/arduino" checkout 2.0.3
4823
if [ $? -ne 0 ]; then exit 1; fi
4924

5025
#
@@ -54,9 +29,9 @@ if [ $? -ne 0 ]; then exit 1; fi
5429
if [ ! -d "$AR_COMPS/esp32-camera" ]; then
5530
git clone $CAMERA_REPO_URL "$AR_COMPS/esp32-camera"
5631
else
57-
git -C "$AR_COMPS/esp32-camera" fetch && \
58-
git -C "$AR_COMPS/esp32-camera" pull --ff-only
59-
fi
32+
git -C "$AR_COMPS/esp32-camera" fetch
33+
fi && \
34+
git -C "$AR_COMPS/esp32-camera" checkout 86a4951
6035
#this is a temp measure to fix build issue in recent IDF master
6136
if [ -f "$AR_COMPS/esp32-camera/idf_component.yml" ]; then
6237
rm -rf "$AR_COMPS/esp32-camera/idf_component.yml"
@@ -70,9 +45,9 @@ if [ $? -ne 0 ]; then exit 1; fi
7045
if [ ! -d "$AR_COMPS/esp-dl" ]; then
7146
git clone $DL_REPO_URL "$AR_COMPS/esp-dl"
7247
else
73-
git -C "$AR_COMPS/esp-dl" fetch && \
74-
git -C "$AR_COMPS/esp-dl" pull --ff-only
75-
fi
48+
git -C "$AR_COMPS/esp-dl" fetch
49+
fi && \
50+
git -C "$AR_COMPS/esp-dl" checkout d949350
7651
if [ $? -ne 0 ]; then exit 1; fi
7752

7853
#
@@ -82,9 +57,9 @@ if [ $? -ne 0 ]; then exit 1; fi
8257
if [ ! -d "$AR_COMPS/esp-sr" ]; then
8358
git clone $SR_REPO_URL "$AR_COMPS/esp-sr"
8459
else
85-
git -C "$AR_COMPS/esp-sr" fetch && \
86-
git -C "$AR_COMPS/esp-sr" pull --ff-only
87-
fi
60+
git -C "$AR_COMPS/esp-sr" fetch
61+
fi && \
62+
git -C "$AR_COMPS/esp-sr" checkout d05cf97
8863
if [ $? -ne 0 ]; then exit 1; fi
8964

9065
#
@@ -96,9 +71,9 @@ if [ ! -d "$AR_COMPS/esp_littlefs" ]; then
9671
git -C "$AR_COMPS/esp_littlefs" submodule update --init --recursive
9772
else
9873
git -C "$AR_COMPS/esp_littlefs" fetch && \
99-
git -C "$AR_COMPS/esp_littlefs" pull --ff-only && \
10074
git -C "$AR_COMPS/esp_littlefs" submodule update --init --recursive
101-
fi
75+
fi && \
76+
git -C "$AR_COMPS/esp_littlefs" checkout 29341d0
10277
if [ $? -ne 0 ]; then exit 1; fi
10378

10479
#
@@ -111,9 +86,9 @@ if [ ! -d "$AR_COMPS/esp-rainmaker" ]; then
11186
# git -C "$AR_COMPS/esp-rainmaker" checkout f1b82c71c4536ab816d17df016d8afe106bd60e3
11287
else
11388
git -C "$AR_COMPS/esp-rainmaker" fetch && \
114-
git -C "$AR_COMPS/esp-rainmaker" pull --ff-only && \
11589
git -C "$AR_COMPS/esp-rainmaker" submodule update --init --recursive
116-
fi
90+
fi && \
91+
git -C "$AR_COMPS/esp-rainmaker" checkout f57a5ec
11792
if [ $? -ne 0 ]; then exit 1; fi
11893

11994
#
@@ -127,9 +102,9 @@ if [ ! -d "$AR_COMPS/esp-dsp" ]; then
127102
# echo "$cml" >> "$AR_COMPS/esp-dsp/CMakeLists.txt"
128103
# echo "endif()" >> "$AR_COMPS/esp-dsp/CMakeLists.txt"
129104
else
130-
git -C "$AR_COMPS/esp-dsp" fetch && \
131-
git -C "$AR_COMPS/esp-dsp" pull --ff-only
132-
fi
105+
git -C "$AR_COMPS/esp-dsp" fetch
106+
fi && \
107+
git -C "$AR_COMPS/esp-dsp" checkout 07aa7b1
133108
if [ $? -ne 0 ]; then exit 1; fi
134109

135110
#
@@ -139,8 +114,8 @@ if [ $? -ne 0 ]; then exit 1; fi
139114
if [ ! -d "$AR_COMPS/arduino_tinyusb/tinyusb" ]; then
140115
git clone $TINYUSB_REPO_URL "$AR_COMPS/arduino_tinyusb/tinyusb"
141116
else
142-
git -C "$AR_COMPS/arduino_tinyusb/tinyusb" fetch && \
143-
git -C "$AR_COMPS/arduino_tinyusb/tinyusb" pull --ff-only
144-
fi
117+
git -C "$AR_COMPS/arduino_tinyusb/tinyusb" fetch
118+
fi && \
119+
git -C "$AR_COMPS/arduino_tinyusb/tinyusb" checkout b5a9537eea81bd6ffd8d575dbd2b5823c2fc1f0e
145120
if [ $? -ne 0 ]; then exit 1; fi
146121

0 commit comments

Comments
 (0)