Skip to content

Commit

Permalink
Properly handle precompiled static archives located outside IDF proje…
Browse files Browse the repository at this point in the history
…ct root

Resolves #1230
  • Loading branch information
valeros committed Nov 13, 2023
1 parent f6ec392 commit ff6ec88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions builder/frameworks/espidf.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
IDF_ENV_VERSION = "1.0.0"
FRAMEWORK_DIR = platform.get_package_dir("framework-espidf")
TOOLCHAIN_DIR = platform.get_package_dir(
"toolchain-%s" % ("riscv32-esp" if mcu in ("esp32c3","esp32c6") else ("xtensa-%s" % mcu))
"toolchain-%s" % ("riscv32-esp" if mcu in ("esp32c3", "esp32c6") else ("xtensa-%s" % mcu))
)


Expand Down Expand Up @@ -373,8 +373,8 @@ def _add_archive(archive_path, link_args):
elif fragment.endswith(".a"):
archive_path = fragment
# process static archives
if archive_path.startswith(FRAMEWORK_DIR):
# In case of precompiled archives from framework package
if os.path.isabs(archive_path):
# In case of precompiled archives
_add_archive(archive_path, link_args)
else:
# In case of archives within project
Expand Down

0 comments on commit ff6ec88

Please sign in to comment.