Skip to content

Commit b34019b

Browse files
committed
add a IDF_COMMIT variable that will checkout to an exact commit
1 parent ca771bd commit b34019b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/install-esp-idf.sh

+5
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ if [ -z "$IDF_PATH" ]; then
2020
cd "$AR_ROOT"
2121
fi
2222

23+
if [ "$IDF_COMMIT" ]; then
24+
git -C $IDF_PATH checkout $IDF_COMMIT
25+
git -C $IDF_PATH submodule update
26+
fi
27+
2328
if ! [ -x "$(command -v $IDF_TOOLCHAIN-gcc)" ]; then
2429
echo "GCC toolchain is not installed! Installing local copy"
2530

0 commit comments

Comments
 (0)