2022-10-12 16:12:05 +00:00
|
|
|
targets_help = """Configuration variables:
|
|
|
|
"""
|
|
|
|
|
|
|
|
tail_help = """
|
|
|
|
|
|
|
|
TASKS:
|
2023-07-18 09:39:30 +00:00
|
|
|
Firmware & apps:
|
2022-10-12 16:12:05 +00:00
|
|
|
firmware_all, fw_dist:
|
|
|
|
Build firmware; create distribution package
|
|
|
|
faps, fap_dist:
|
|
|
|
Build all FAP apps
|
2023-07-18 09:39:30 +00:00
|
|
|
fap_{APPID}, build APPSRC={APPID}; launch APPSRC={APPID}:
|
2022-10-12 16:12:05 +00:00
|
|
|
Build FAP app with appid={APPID}; upload & start it over USB
|
2023-01-11 10:13:07 +00:00
|
|
|
fap_deploy:
|
|
|
|
Build and upload all FAP apps over USB
|
2023-07-18 09:39:30 +00:00
|
|
|
|
2022-10-12 16:12:05 +00:00
|
|
|
|
|
|
|
Flashing & debugging:
|
2023-08-22 18:33:10 +00:00
|
|
|
flash, jflash:
|
|
|
|
Flash firmware to target using SWD probe. See also SWD_TRANSPORT, SWD_TRANSPORT_SERIAL
|
2022-10-12 16:12:05 +00: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 15:55:53 +00:00
|
|
|
Generate compilation_database.json
|
2022-10-12 16:12:05 +00:00
|
|
|
lint, lint_py:
|
|
|
|
run linters
|
|
|
|
format, format_py:
|
|
|
|
run code formatters
|
2023-01-17 12:55:49 +00:00
|
|
|
firmware_pvs:
|
|
|
|
generate a PVS-Studio report
|
2022-10-12 16:12:05 +00:00
|
|
|
|
2023-05-08 11:01:52 +00: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 16:12:05 +00: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
|