From 2effc5fde812735c0d264e45c4b303c0016e5f88 Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Sun, 12 Nov 2023 12:28:55 +0000 Subject: [PATCH] Ignore unresolved plugins symbols (dynamic load) --- scripts/fbt_tools/fbt_extapps.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/fbt_tools/fbt_extapps.py b/scripts/fbt_tools/fbt_extapps.py index b88fa7929..904b706f0 100644 --- a/scripts/fbt_tools/fbt_extapps.py +++ b/scripts/fbt_tools/fbt_extapps.py @@ -289,6 +289,18 @@ def _validate_app_imports(target, source, env): for line in f: app_syms.add(line.split()[0]) unresolved_syms = app_syms - sdk_cache.get_valid_names() + ignore_syms = [ + sym + for sym in unresolved_syms + if sym.startswith( + ( + "totp_", + "app_api_accumulator_", + ) + ) + ] + for sym in ignore_syms: + unresolved_syms.remove(sym) if unresolved_syms: warning_msg = fg.brightyellow( f"{source[0].path}: app may not be runnable. Symbols not resolved using firmware's API: "