a91d319839
* scripts: moved ufbt code * ufbt: fixed tool path * ufbt: fixed linter/formatter target descriptions * scripts: ufbt: cleanup * fbt: moved fap launch target to tools; ufbt fixes * fbt: fixed missing headers from SDK * ufbt: removed debug output * ufbt: moved project template to main codebase * ufbt: fixed vscode_dist * ufbt: path naming changes * fbt: error message for older ufbt versions * ufbt: docs fixes * ufbt: fixed build dir location * fbt: fixes for extapps objcopy * fbt: extapps: removed extra debug output; fixed formatting * ufbt: handle launch target for multiple known apps * ufbt: dropping wrapper; linter fixes * ufbt: fixed boostrap path * ufbt: renamed entrypoint * ufbt: updated vscode config * ufbt: moved sconsign db location * ufbt: fixed sconsign path * fbt: SDK builders rework * fbt: reworked sdk packaging * ufbt: additional checks and state processing * ufbt: fixed sdk state file location * dist: not packaging pycache * dump commit json content * Github: more workflow debug prints * Github: fix incorrect commit meta extraction in get_env.py * ufbt, fbt: changed SConsEnvironmentError->StopError * fbtenv: no longer needs SCRIPT_PATH pre-set * ufbt: fixed sdk state check * scripts: exception fixes for storage.py * scripts: fbtenv: added FBT_TOOLCHAIN_PATH for on Windows for compat * ufbt: app template: creating .gitkeep for images folder * ufbt: app template: fixed .gitkeep creation * docs: formatting fixes for AppManifests; added link to ufbt * fbt: added link to PyPI for old ufbt versions * sdk: fixed dir component paths Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
54 lines
1.3 KiB
Python
54 lines
1.3 KiB
Python
targets_help = """Configuration variables:
|
|
"""
|
|
|
|
tail_help = """
|
|
|
|
TASKS:
|
|
(* - not supported yet)
|
|
|
|
launch:
|
|
Upload and start application over USB
|
|
vscode_dist:
|
|
Configure application in current directory for development in VSCode.
|
|
create:
|
|
Copy application template to current directory. Set APPID=myapp to create an app with id 'myapp'.
|
|
|
|
Building:
|
|
faps:
|
|
Build all FAP apps
|
|
fap_{APPID}, launch APPSRC={APPID}:
|
|
Build FAP app with appid={APPID}; upload & start it over USB
|
|
|
|
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
|
|
lint:
|
|
run linter for C code
|
|
format:
|
|
reformat C code
|
|
|
|
How to create a new application:
|
|
1. Create a new directory for your application and cd into it.
|
|
2. Run `ufbt vscode_dist create APPID=myapp`
|
|
3. In VSCode, open the folder and start editing.
|
|
4. Run `ufbt launch` to build and upload your application.
|
|
"""
|
|
|
|
|
|
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
|