93a4b9c4a9
* enable sparseCheckout, moving github actions from docker to raw shell * fix missing known_hosts while setting ssh priv key * fix build.yml * add ssh key to upload just in time * fixing rsync syntax * fix build.yml * try to fix build.yml again * testing rsync * test rsync again * add linters * add Black Python linter to submodules * add Black submodule * add working python linter target, dirty file list * up toolchain to version 4 * up toolchain to ver 5 * up toolchain version to 6 * fbt: using black 22.6.0 * remove Black submodule, up toolchain to ver 7 * fbt: added lint_py, format_py targets * add pvs_studio workflow * fix pvs_studio segfault * fix pvs_studio command * fix pvs_studio command 2 * show env before run pvs_studio * try to debug pvs_studio * try to strace pvs_studio.. * Add FBT_TOOLCHAIN_PATH, MacOS Rosseta check, and ignore non-x86_64 linux architectures * prevent redownloading toolchain on github-runners * fix toolchain download exitcode * add strace to debug pvs_studio segfault * disable strace to catch full code dump * Add './fbt cli' target to access Flipper CLI via PySerial * remove pvs_studio from this PR * removing clang-format from toolchain due errors * make source easy, and fix some mistakes found by @hedger * Add check_submodules workflow, some fixes * fixing mistakes Co-authored-by: hedger <hedger@nanode.su> Co-authored-by: hedger <hedger@users.noreply.github.com>
46 lines
1.3 KiB
Batchfile
46 lines
1.3 KiB
Batchfile
@echo off
|
|
|
|
if not [%FBT_ROOT%] == [] (
|
|
goto already_set
|
|
)
|
|
|
|
set "FBT_ROOT=%~dp0\..\..\"
|
|
pushd %FBT_ROOT%
|
|
set "FBT_ROOT=%cd%"
|
|
popd
|
|
|
|
if not [%FBT_NOENV%] == [] (
|
|
exit /b 0
|
|
)
|
|
|
|
set "FLIPPER_TOOLCHAIN_VERSION=8"
|
|
set "FBT_TOOLCHAIN_ROOT=%FBT_ROOT%\toolchain\i686-windows"
|
|
|
|
|
|
if not exist "%FBT_TOOLCHAIN_ROOT%" (
|
|
powershell -ExecutionPolicy Bypass -File "%FBT_ROOT%\scripts\toolchain\windows-toolchain-download.ps1" "%flipper_toolchain_version%"
|
|
)
|
|
if not exist "%FBT_TOOLCHAIN_ROOT%\VERSION" (
|
|
powershell -ExecutionPolicy Bypass -File "%FBT_ROOT%\scripts\toolchain\windows-toolchain-download.ps1" "%flipper_toolchain_version%"
|
|
)
|
|
set /p REAL_TOOLCHAIN_VERSION=<"%FBT_TOOLCHAIN_ROOT%\VERSION"
|
|
if not "%REAL_TOOLCHAIN_VERSION%" == "%FLIPPER_TOOLCHAIN_VERSION%" (
|
|
powershell -ExecutionPolicy Bypass -File "%FBT_ROOT%\scripts\toolchain\windows-toolchain-download.ps1" "%flipper_toolchain_version%"
|
|
)
|
|
|
|
|
|
set "HOME=%USERPROFILE%"
|
|
set "PYTHONHOME=%FBT_TOOLCHAIN_ROOT%\python"
|
|
set "PATH=%FBT_TOOLCHAIN_ROOT%\python;%FBT_TOOLCHAIN_ROOT%\bin;%FBT_TOOLCHAIN_ROOT%\protoc\bin;%FBT_TOOLCHAIN_ROOT%\openocd\bin;%PATH%"
|
|
set "PROMPT=(fbt) %PROMPT%"
|
|
|
|
:already_set
|
|
|
|
if not "%1" == "env" (
|
|
echo *********************************
|
|
echo * fbt build environment *
|
|
echo *********************************
|
|
cd "%FBT_ROOT%"
|
|
cmd /k
|
|
)
|