fbt: fixed dependency issues with SDK definition file (#1893)

* fbt: fixed dependency issues with SDK definition file
* fbt: more path fixes; marked up new symbols
This commit is contained in:
hedger
2022-10-19 18:28:48 +04:00
committed by GitHub
parent 72713d6f4e
commit 79c3040629
4 changed files with 10 additions and 5 deletions

View File

@@ -145,7 +145,7 @@ def BuildAppElf(env, app):
def prepare_app_metadata(target, source, env):
sdk_cache = SdkCache(env.subst("$SDK_DEFINITION"), load_version_only=True)
sdk_cache = SdkCache(env["SDK_DEFINITION"].path, load_version_only=True)
if not sdk_cache.is_buildable():
raise UserError(
@@ -166,7 +166,7 @@ def prepare_app_metadata(target, source, env):
def validate_app_imports(target, source, env):
sdk_cache = SdkCache(env.subst("$SDK_DEFINITION"), load_version_only=False)
sdk_cache = SdkCache(env["SDK_DEFINITION"].path, load_version_only=False)
app_syms = set()
with open(target[0].path, "rt") as f:
for line in f: