fbt: added support for FBT_NO_SYNC environment variable to skip submodule update at start (#1363)

This commit is contained in:
hedger
2022-07-04 20:38:18 +03:00
committed by GitHub
parent 6b6ea44802
commit 43fd2e4433
5 changed files with 18 additions and 225 deletions

View File

@@ -10,7 +10,10 @@ Make sure that `gcc-arm-none-eabi` toolchain & OpenOCD executables are in system
## NB
FBT constructs all referenced environments & their targets' dependency trees on startup. So, to keep startup time as low as possible, we're hiding construction of certain targets behind command-line options.
* `fbt` constructs all referenced environments & their targets' dependency trees on startup. So, to keep startup time as low as possible, we're hiding construction of certain targets behind command-line options.
* `fbt` always performs `git submodule update --init` on start, unless you set `FBT_NO_SYNC=1` in environment:
* On Windows, that's `set "FBT_NO_SYNC=1"` in the shell you're running `fbt` from
* On \*nix, it's `$ FBT_NO_SYNC=1 ./fbt ...`
## Invoking FBT