[FL-2052] New build system based on scons (#1269)
This commit is contained in:
@@ -19,37 +19,4 @@ Target independent code and headers in `target/include` folders. More details in
|
||||
|
||||
# Building
|
||||
|
||||
## With dev docker image:
|
||||
|
||||
`docker-compose exec dev make -C firmware`
|
||||
|
||||
## With toolchain installed in path:
|
||||
|
||||
`make -C firmware`
|
||||
|
||||
## Build Options
|
||||
|
||||
- `DEBUG` - 0/1 - enable or disable debug build. Default is 1.
|
||||
- `COMPACT` - 0/1 - enable or disable compiler optimizations. Significantly reduces binary size. Default is 0.
|
||||
- `TARGET` - string - target to build. Default is `f7`.
|
||||
- `RAM_EXEC` - 0/1 - whether to build full firmware or RAM-based stage for firmware update. 0 is default, builds firmware.
|
||||
|
||||
# Building self-update package
|
||||
|
||||
`make DEBUG=0 COMPACT=1 updater_package`
|
||||
|
||||
# Flashing
|
||||
|
||||
Using SWD (STLink):
|
||||
|
||||
`make -C firmware flash`
|
||||
|
||||
Or use DFU (USB):
|
||||
|
||||
`make -C firmware upload`
|
||||
|
||||
# Debug
|
||||
|
||||
Using SWD (STLink):
|
||||
|
||||
`make -C firmware debug`
|
||||
Check out `documentation/fbt.md` on how to build and flash firmware.
|
Reference in New Issue
Block a user