add a IDF_COMMIT variable that will checkout to an exact commit
This commit is contained in:
parent
ca771bdbc8
commit
b34019b7e0
1 changed files with 5 additions and 0 deletions
|
|
@ -20,6 +20,11 @@ if [ -z "$IDF_PATH" ]; then
|
||||||
cd "$AR_ROOT"
|
cd "$AR_ROOT"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$IDF_COMMIT" ]; then
|
||||||
|
git -C $IDF_PATH checkout $IDF_COMMIT
|
||||||
|
git -C $IDF_PATH submodule update
|
||||||
|
fi
|
||||||
|
|
||||||
if ! [ -x "$(command -v $IDF_TOOLCHAIN-gcc)" ]; then
|
if ! [ -x "$(command -v $IDF_TOOLCHAIN-gcc)" ]; then
|
||||||
echo "GCC toolchain is not installed! Installing local copy"
|
echo "GCC toolchain is not installed! Installing local copy"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue