Skip to content

Commit e76ec09

Browse files
authored
install c2 compile skeleton only for Arduino
1 parent 7274300 commit e76ec09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

platform.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def configure_default_packages(self, variables, targets):
103103
if variables.get("custom_sdkconfig") is not None or len(str(board_sdkconfig)) > 3:
104104
frameworks.append("espidf")
105105
self.packages["framework-espidf"]["optional"] = False
106-
if mcu == "esp32c2":
106+
if (mcu == "esp32c2") and not ("espidf" in frameworks):
107107
self.packages["framework-arduino-c2-skeleton-lib"]["optional"] = False
108108

109109
# packages for IDF and mixed Arduino+IDF projects
@@ -117,7 +117,7 @@ def configure_default_packages(self, variables, targets):
117117
):
118118
self.packages[p]["optional"] = False
119119

120-
if "".join(targets) in ("upload", "buildfs", "uploadfs"):
120+
if tl_flag and ("".join(targets) in ("upload", "buildfs", "uploadfs") or variables.get("custom_files_upload") is not None):
121121
filesystem = variables.get("board_build.filesystem", "littlefs")
122122
if filesystem == "littlefs":
123123
# Use mklittlefs v3.2.0 to generate FS

0 commit comments

Comments
 (0)