mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-18 19:01:47 +03:00
00cdc3d1cb
* Protobuf: update * Toolbox: md5 for file. Unit-Tests: test md5_calc. * Storage RPC, CLI, unit tests: use new md5_calc * Protobuf: update * RPC, StorageList: append md5 info to file * fbt: attempt to fix shallow submodule checkouts * pvs: make happy * Protobuf: update to latest release Co-authored-by: hedger <hedger@nanode.su> Co-authored-by: hedger <hedger@users.noreply.github.com> Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
36 lines
930 B
Bash
Executable File
36 lines
930 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# shellcheck disable=SC2086 source=/dev/null
|
|
# unofficial strict mode
|
|
set -eu;
|
|
|
|
# private variables
|
|
N_GIT_THREADS="$(getconf _NPROCESSORS_ONLN)";
|
|
SCRIPT_PATH="$(cd "$(dirname "$0")" && pwd -P)";
|
|
SCONS_DEFAULT_FLAGS="--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}";
|
|
FBT_VERBOSE="${FBT_VERBOSE:-""}";
|
|
|
|
if [ -z "$FBT_NOENV" ]; then
|
|
FBT_VERBOSE="$FBT_VERBOSE" . "$SCRIPT_PATH/scripts/toolchain/fbtenv.sh";
|
|
fi
|
|
|
|
if [ -z "$FBT_VERBOSE" ]; then
|
|
SCONS_DEFAULT_FLAGS="$SCONS_DEFAULT_FLAGS -Q";
|
|
fi
|
|
|
|
if [ -z "$FBT_NO_SYNC" ]; then
|
|
if [ ! -d "$SCRIPT_PATH/.git" ]; then
|
|
echo "\".git\" directory not found, please clone repo via \"git clone\"";
|
|
exit 1;
|
|
fi
|
|
git submodule update --init --jobs "$N_GIT_THREADS";
|
|
fi
|
|
|
|
$SCONS_EP $SCONS_DEFAULT_FLAGS "$@"
|