mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-29 06:24:45 -07: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:
@@ -82,6 +82,17 @@ uint8_t version_get_target(const Version* v);
|
||||
*/
|
||||
bool version_get_dirty_flag(const Version* v);
|
||||
|
||||
/**
|
||||
* Get firmware origin. "Official" for mainline firmware, fork name for forks.
|
||||
* Set by FIRMWARE_ORIGIN fbt argument.
|
||||
*/
|
||||
const char* version_get_firmware_origin(const Version* v);
|
||||
|
||||
/**
|
||||
* Get git repo origin
|
||||
*/
|
||||
const char* version_get_git_origin(const Version* v);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user