fbt_help.py 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. targets_help = """Configuration variables:
  2. """
  3. tail_help = """
  4. TASKS:
  5. Building:
  6. firmware_all, fw_dist:
  7. Build firmware; create distribution package
  8. faps, fap_dist:
  9. Build all FAP apps
  10. fap_{APPID}, launch_app APPSRC={APPID}:
  11. Build FAP app with appid={APPID}; upload & start it over USB
  12. fap_deploy:
  13. Build and upload all FAP apps over USB
  14. Flashing & debugging:
  15. flash, flash_blackmagic, jflash:
  16. Flash firmware to target using debug probe
  17. flash_usb, flash_usb_full:
  18. Install firmware using self-update package
  19. debug, debug_other, blackmagic:
  20. Start GDB
  21. Other:
  22. cli:
  23. Open a Flipper CLI session over USB
  24. firmware_cdb, updater_cdb:
  25. Generate сompilation_database.json
  26. lint, lint_py:
  27. run linters
  28. format, format_py:
  29. run code formatters
  30. firmware_pvs:
  31. generate a PVS-Studio report
  32. For more targets & info, see documentation/fbt.md
  33. """
  34. def generate(env, **kw):
  35. vars = kw["vars"]
  36. basic_help = vars.GenerateHelpText(env)
  37. env.Help(targets_help + basic_help + tail_help)
  38. def exists(env):
  39. return True