mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-23 21:13:16 +00: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>
29 lines
727 B
Bash
Executable file
29 lines
727 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# shellcheck disable=SC2086 source=/dev/null
|
|
# unofficial strict mode
|
|
set -eu;
|
|
|
|
# private variables
|
|
SCRIPT_PATH="$(cd "$(dirname "$0")" && pwd -P)";
|
|
SCONS_DEFAULT_FLAGS="-Q --warn=target-not-built";
|
|
SCONS_EP="python3 -m SCons"
|
|
|
|
# public variables
|
|
FBT_NOENV="${FBT_NOENV:-""}";
|
|
FBT_NO_SYNC="${FBT_NO_SYNC:-""}";
|
|
FBT_TOOLCHAIN_PATH="${FBT_TOOLCHAIN_PATH:-$SCRIPT_PATH}";
|
|
|
|
if [ -z "$FBT_NOENV" ]; then
|
|
. "$SCRIPT_PATH/scripts/toolchain/fbtenv.sh";
|
|
fi
|
|
|
|
if [ -z "$FBT_NO_SYNC" ]; then
|
|
if [ ! -d "$SCRIPT_PATH/.git" ]; then
|
|
echo "\".git\" directory not found, please clone repo via \"git clone --recursive\"";
|
|
exit 1;
|
|
fi
|
|
git submodule update --init;
|
|
fi
|
|
|
|
$SCONS_EP $SCONS_DEFAULT_FLAGS "$@"
|