fbt: Deterministic STARTUP order & additional checks (#4179)

* unit_tests: clear startup order

* fam: ensure unique STARTUP order

* fbt: warn on same .order values within a group leading to non-determinitic builds

* fbt: better formatting for app order warning

---------

Co-authored-by: hedger <hedger@nanode.su>
This commit is contained in:
Anna Antonenko
2025-04-07 16:45:09 +04:00
committed by GitHub
parent eb0f5ef8c0
commit 3d02063bce
14 changed files with 28 additions and 16 deletions

View File

@@ -21,5 +21,5 @@ App(
appid="bt_start",
apptype=FlipperAppType.STARTUP,
entry_point="bt_on_system_start",
order=70,
order=40,
)

View File

@@ -21,7 +21,7 @@ App(
apptype=FlipperAppType.SERVICE,
entry_point="cli_vcp_srv",
stack_size=1024,
order=40,
order=10,
sdk_headers=["cli_vcp.h"],
sources=["cli_vcp.c"],
)

View File

@@ -2,5 +2,5 @@ App(
appid="crypto_start",
apptype=FlipperAppType.STARTUP,
entry_point="crypto_on_system_start",
order=10,
order=20,
)

View File

@@ -8,5 +8,5 @@ App(
],
requires=["rpc_start"],
provides=["expansion_settings"],
order=150,
order=100,
)

View File

@@ -19,5 +19,5 @@ App(
apptype=FlipperAppType.STARTUP,
entry_point="loader_on_system_start",
requires=["loader"],
order=90,
order=80,
)

View File

@@ -4,6 +4,6 @@ App(
apptype=FlipperAppType.STARTUP,
entry_point="locale_on_system_start",
cdefines=["SRV_LOCALE"],
order=90,
order=70,
sdk_headers=["locale.h"],
)

View File

@@ -22,5 +22,5 @@ App(
apptype=FlipperAppType.STARTUP,
entry_point="power_on_system_start",
requires=["power"],
order=80,
order=50,
)

View File

@@ -6,5 +6,5 @@ App(
entry_point="region_on_system_start",
cdefines=["SRV_REGION"],
requires=["storage"],
order=170,
order=120,
)

View File

@@ -16,5 +16,5 @@ App(
apptype=FlipperAppType.STARTUP,
entry_point="storage_on_system_start",
requires=["storage"],
order=90,
order=60,
)