Skip to content

Commit

Permalink
install ninja and make only for IDF
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 authored Dec 12, 2023
1 parent ff4118c commit a09da8f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def configure_default_packages(self, variables, targets):
self.packages["framework-arduinoespressif32"]["optional"] = False

if "buildfs" in targets:
filesystem = variables.get("board_build.filesystem", "spiffs")
filesystem = variables.get("board_build.filesystem", "littlefs")
if filesystem == "littlefs":
self.packages["tool-mklittlefs"]["optional"] = False
elif filesystem == "fatfs":
Expand All @@ -69,12 +69,13 @@ def configure_default_packages(self, variables, targets):
self.packages[gdb_package]["version"] = "~11.2.0"

# Common packages for IDF and mixed Arduino+IDF projects
self.packages["toolchain-esp32ulp"]["optional"] = False
for p in self.packages:
if p in ("tool-cmake", "tool-ninja"):
self.packages[p]["optional"] = False
elif p in ("tool-mconf", "tool-idf") and IS_WINDOWS:
self.packages[p]["optional"] = False
if "espidf" in frameworks:
self.packages["toolchain-esp32ulp"]["optional"] = False
for p in self.packages:
if p in ("tool-cmake", "tool-ninja"):
self.packages[p]["optional"] = False
elif p in ("tool-mconf", "tool-idf") and IS_WINDOWS:
self.packages[p]["optional"] = False

for available_mcu in ("esp32", "esp32s2", "esp32s3"):
if available_mcu == mcu:
Expand Down

0 comments on commit a09da8f

Please sign in to comment.