Skip to content

Commit fa7940d

Browse files
committed
Move build script for mbed-based Arduino core to a submodule
1 parent 9f12547 commit fa7940d

File tree

4 files changed

+8
-130
lines changed

4 files changed

+8
-130
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[submodule "builder/frameworks/libopencm3"]
22
path = builder/frameworks/libopencm3
33
url = https://github.com/platformio/builder-framework-libopencm3.git
4+
[submodule "builder/frameworks/arduino/mbed-core"]
5+
path = builder/frameworks/arduino/mbed-core
6+
url = https://github.com/platformio/builder-framework-arduino-core-mbed.git

builder/frameworks/arduino/arduino_h7_mbedos.py

Lines changed: 0 additions & 128 deletions
This file was deleted.

builder/frameworks/arduino/mbed-core

Submodule mbed-core added at 67dcd58

platform.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ def configure_default_packages(self, variables, targets):
3232

3333
frameworks = variables.get("pioframework", [])
3434
if "arduino" in frameworks:
35-
if board.startswith("portenta_h7"):
35+
if board.startswith("portenta"):
3636
self.frameworks["arduino"]["package"] = "framework-arduino-mbed"
37-
self.frameworks["arduino"]["script"] = "builder/frameworks/arduino/arduino_h7_mbedos.py"
37+
self.frameworks["arduino"][
38+
"script"
39+
] = "builder/frameworks/arduino/mbed-core/arduino-core-mbed.py"
3840
elif build_core == "maple":
3941
self.frameworks["arduino"]["package"] = "framework-arduinoststm32-maple"
4042
self.packages["framework-arduinoststm32-maple"]["optional"] = False

0 commit comments

Comments
 (0)