mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-11-28 11:26:32 +03:00
0adad32418
* fbt: fixed py scripts for gdb * fbt: removed compiled dolphin assets from tracked files; resolved cached dependency issues by globally disabling deps cache; changed dependency tracking for dolphin assets * fbt: fix for "resources" node lookup * toolchain: bump to v.16 with scons + x64 win binaries * fbt: using scons from toolchain * vscode: fixed paths for 64-bit Windows toolchain * fbt: added colors! * fbt: moved import validator to ansi lib coloring * fbt: moved COMSTR vars to tools * fbt: custom action for fap dist * fbt: added OPENOCD_ADAPTER_SERIAL configuration var for openocd operations * fbt: added get_stlink target * docs: details on libs for faps * vscode: added DAP config for using Flipper as a debugger for a 2nd Flipper * fbt: blind deps fix for sdk_origin * fbt: sdk: moved deployment actions to pure python * Github: disable disableLicenseExpirationCheck option for pvs Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
48 lines
1.4 KiB
Batchfile
48 lines
1.4 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=16"
|
|
set "FBT_TOOLCHAIN_ROOT=%FBT_ROOT%\toolchain\x86_64-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 "PYTHONPATH="
|
|
set "PYTHONNOUSERSITE=1"
|
|
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
|
|
)
|