1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 20:49:49 +04:00

ufbt: deploying sample ufbt automation for new apps; added source "ufbt -s env" for toolchain access (#2648)

This commit is contained in:
hedger
2023-05-08 14:01:52 +03:00
committed by GitHub
parent 954780ed24
commit f7dd77795a
7 changed files with 66 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ from SCons.Action import Action
from SCons.Builder import Builder
from SCons.Errors import StopError
from SCons.Warnings import WarningOnByDefault, warn
from SCons.Script import GetOption
# Adding objects for application management to env
# AppManager env["APPMGR"] - loads all manifests; manages list of known apps
@@ -28,7 +29,8 @@ def LoadAppManifest(env, entry):
env["APPMGR"].load_manifest(app_manifest_file_path, entry)
env.Append(PY_LINT_SOURCES=[app_manifest_file_path])
except FlipperManifestException as e:
warn(WarningOnByDefault, str(e))
if not GetOption("silent"):
warn(WarningOnByDefault, str(e))
def PrepareApplicationsBuild(env):