2022-10-12 19:12:05 +03:00
|
|
|
|
targets_help = """Configuration variables:
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
tail_help = """
|
|
|
|
|
|
|
|
|
|
TASKS:
|
|
|
|
|
Building:
|
|
|
|
|
firmware_all, fw_dist:
|
|
|
|
|
Build firmware; create distribution package
|
|
|
|
|
faps, fap_dist:
|
|
|
|
|
Build all FAP apps
|
|
|
|
|
fap_{APPID}, launch_app APPSRC={APPID}:
|
|
|
|
|
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
|
2022-10-12 19:12:05 +03:00
|
|
|
|
|
|
|
|
|
Flashing & debugging:
|
|
|
|
|
flash, flash_blackmagic, jflash:
|
|
|
|
|
Flash firmware to target using debug probe
|
|
|
|
|
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:
|
|
|
|
|
Generate сompilation_database.json
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
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
|