mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into xfw-dev
This commit is contained in:
12
fbt.cmd
12
fbt.cmd
@@ -4,10 +4,18 @@ call "%~dp0scripts\toolchain\fbtenv.cmd" env
|
||||
set SCONS_EP=python -m SCons
|
||||
|
||||
if [%FBT_NO_SYNC%] == [] (
|
||||
set _FBT_CLONE_FLAGS=--jobs %NUMBER_OF_PROCESSORS%
|
||||
if not [%FBT_GIT_SUBMODULE_SHALLOW%] == [] (
|
||||
set _FBT_CLONE_FLAGS=%_FBT_CLONE_FLAGS% --depth 1
|
||||
)
|
||||
if exist ".git" (
|
||||
git submodule update --init --recursive --depth 1 --jobs %NUMBER_OF_PROCESSORS%
|
||||
git submodule update --init --recursive --recursive %_FBT_CLONE_FLAGS%
|
||||
if %ERRORLEVEL% neq 0 (
|
||||
echo Failed to update submodules, set FBT_NO_SYNC to skip
|
||||
exit /b 1
|
||||
)
|
||||
) else (
|
||||
echo Not in a git repo, please clone with "git clone"
|
||||
echo .git not found, please clone repo with "git clone"
|
||||
exit /b 1
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user