mirror of
https://github.com/flipperdevices/flipperzero-firmware.git
synced 2025-12-12 04:41:26 +04:00
[FL-3330] fbt: added hooks for build & dist environments; added FW_ORIGIN_* macro for apps & SDK (#2705)
* fbt: added hooks for build & dist environments * Moved env hooks to an optional file * Fixed var name * Added fw origin to device info * Bumped device info version * fbt: added FIRMWARE_ORIGIN option. Different implementation for FW_ORIGIN_* C macro. * api: bumped versions * fbt: added fbt_options_local.py * gitignore: cleanup Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -236,6 +236,13 @@ vars.AddVariables(
|
||||
help="Don't open browser after generating error repots",
|
||||
default=False,
|
||||
),
|
||||
(
|
||||
"FIRMWARE_ORIGIN",
|
||||
"Firmware origin. 'Official' if follows upstream's API structure, otherwise fork name. "
|
||||
" This will also create a C define FW_ORIGIN_<origin> so that "
|
||||
" app can check what version it is being built for.",
|
||||
"Official",
|
||||
),
|
||||
)
|
||||
|
||||
Return("vars")
|
||||
|
||||
Reference in New Issue
Block a user