mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-15 16:52:38 +03:00
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>
29 lines
739 B
Bash
Executable File
29 lines
739 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";
|
|
|
|
# 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
|
|
|
|
python3 "$SCRIPT_PATH/lib/scons/scripts/scons.py" $SCONS_DEFAULT_FLAGS "$@"
|