Skip to content

Commit 3ccbc2d

Browse files
authored
Use chip_variant for Arduino libraries path
1 parent 9700aae commit 3ccbc2d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

builder/frameworks/component_manager.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ def __init__(self, env):
4545
self.board = env.BoardConfig()
4646
# Extract MCU type from board configuration, defaulting to esp32
4747
self.mcu = self.board.get("build.mcu", "esp32").lower()
48+
chip_variant = self.board.get("build.chip_variant", "").lower()
49+
self.chip_variant = chip_variant if chip_variant else self.mcu
4850
# Get project source directory path
4951
self.project_src_dir = env.subst("$PROJECT_SRC_DIR")
5052

@@ -74,7 +76,7 @@ def arduino_libs_mcu(self):
7476
"""
7577
if self._arduino_libs_mcu is None:
7678
ald = self.platform.get_package_dir("framework-arduinoespressif32-libs")
77-
self._arduino_libs_mcu = str(Path(ald) / self.mcu) if ald else ""
79+
self._arduino_libs_mcu = str(Path(ald) / self.chip_variant) if ald else ""
7880
return self._arduino_libs_mcu
7981

8082

0 commit comments

Comments
 (0)