mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-26 23:05:05 +03:00
bc309cebe6
toolchain: updated to v33 with debugging & other fixes toolchain: better error handling during update/env configuration process debugging: improved udev rules file, added readme on installation firmware: bumped compiler C/C++ standards (stricter code checks) firmware: fixed warnings emerging from newer standards ufbt: FBT_NOENV is now also supported by ufbt fbt: added ccache-related variables to env forward list on Windows
30 lines
793 B
Batchfile
30 lines
793 B
Batchfile
@echo off
|
|
call "%~dp0scripts\toolchain\fbtenv.cmd" env || exit /b
|
|
|
|
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 %_FBT_CLONE_FLAGS%
|
|
if %ERRORLEVEL% neq 0 (
|
|
echo Failed to update submodules, set FBT_NO_SYNC to skip
|
|
exit /b 1
|
|
)
|
|
) else (
|
|
echo .git not found, please clone repo with "git clone"
|
|
exit /b 1
|
|
)
|
|
)
|
|
|
|
set "SCONS_DEFAULT_FLAGS=--warn=target-not-built"
|
|
|
|
if not defined FBT_VERBOSE (
|
|
set "SCONS_DEFAULT_FLAGS=%SCONS_DEFAULT_FLAGS% -Q"
|
|
)
|
|
|
|
%SCONS_EP% %SCONS_DEFAULT_FLAGS% %*
|