2022-10-12 19:12:05 +03:00
|
|
|
targets_help = """Configuration variables:
|
|
|
|
"""
|
|
|
|
|
|
|
|
tail_help = """
|
|
|
|
|
|
|
|
TASKS:
|
2023-07-18 12:39:30 +03:00
|
|
|
Firmware & apps:
|
2022-10-12 19:12:05 +03:00
|
|
|
firmware_all, fw_dist:
|
|
|
|
Build firmware; create distribution package
|
|
|
|
faps, fap_dist:
|
|
|
|
Build all FAP apps
|
2023-07-18 12:39:30 +03:00
|
|
|
fap_{APPID}, build APPSRC={APPID}; launch APPSRC={APPID}:
|
2022-10-12 19:12:05 +03:00
|
|
|
Build FAP app with appid={APPID}; upload & start it over USB
|
2023-01-11 13:13:07 +03:00
|
|
|
fap_deploy:
|
|
|
|
Build and upload all FAP apps over USB
|
2023-07-18 12:39:30 +03:00
|
|
|
|
2022-10-12 19:12:05 +03:00
|
|
|
|
|
|
|
Flashing & debugging:
|
2023-08-22 21:33:10 +03:00
|
|
|
flash, jflash:
|
|
|
|
Flash firmware to target using SWD probe. See also SWD_TRANSPORT, SWD_TRANSPORT_SERIAL
|
2022-10-12 19:12:05 +03:00
|
|
|
flash_usb, flash_usb_full:
|
|
|
|
Install firmware using self-update package
|
|
|
|
debug, debug_other, blackmagic:
|
|
|
|
Start GDB
|
|
|
|
|
|
|
|
Other:
|
|
|
|
cli:
|
|
|
|
Open a Flipper CLI session over USB
|
|
|
|
firmware_cdb, updater_cdb:
|
2023-02-20 18:55:53 +03:00
|
|
|
Generate compilation_database.json
|
2022-10-12 19:12:05 +03:00
|
|
|
lint, lint_py:
|
|
|
|
run linters
|
|
|
|
format, format_py:
|
|
|
|
run code formatters
|
2023-01-17 15:55:49 +03:00
|
|
|
firmware_pvs:
|
|
|
|
generate a PVS-Studio report
|
2022-10-12 19:12:05 +03:00
|
|
|
|
2023-05-08 14:01:52 +03:00
|
|
|
How to open a shell with toolchain environment and other build tools:
|
|
|
|
In your shell, type "source `./fbt -s env`". You can also use "." instead of "source".
|
|
|
|
|
2022-10-12 19:12:05 +03:00
|
|
|
For more targets & info, see documentation/fbt.md
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
def generate(env, **kw):
|
|
|
|
vars = kw["vars"]
|
|
|
|
basic_help = vars.GenerateHelpText(env)
|
|
|
|
env.Help(targets_help + basic_help + tail_help)
|
|
|
|
|
|
|
|
|
|
|
|
def exists(env):
|
|
|
|
return True
|