mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 04:34:43 +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:
@@ -1,7 +1,9 @@
|
||||
from pathlib import Path
|
||||
import posixpath
|
||||
|
||||
# For more details on these options, run 'fbt -h'
|
||||
|
||||
FIRMWARE_ORIGIN = "Official"
|
||||
|
||||
# Default hardware target
|
||||
TARGET_HW = 7
|
||||
@@ -75,3 +77,8 @@ FIRMWARE_APPS = {
|
||||
}
|
||||
|
||||
FIRMWARE_APP_SET = "default"
|
||||
|
||||
custom_options_fn = "fbt_options_local.py"
|
||||
|
||||
if Path(custom_options_fn).exists():
|
||||
exec(compile(Path(custom_options_fn).read_text(), custom_options_fn, "exec"))
|
||||
|
||||
Reference in New Issue
Block a user