Skip to content

Commit 75aea61

Browse files
committed
Merge branch 'release/v7.1.0'
2 parents 0db6b6c + b7c9c42 commit 75aea61

File tree

2 files changed

+23
-12
lines changed

2 files changed

+23
-12
lines changed

platform.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"type": "git",
1919
"url": "https://github.com/platformio/platform-nxpimxrt.git"
2020
},
21-
"version": "7.0.0",
21+
"version": "7.1.0",
2222
"frameworks": {
2323
"mbed": {
2424
"package": "framework-mbed",
@@ -48,7 +48,7 @@
4848
"type": "framework",
4949
"optional": true,
5050
"owner": "platformio",
51-
"version": "~2.40000.0"
51+
"version": "~3.40100.0"
5252
},
5353
"tool-openocd": {
5454
"type": "debugger",

platform.py

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import subprocess
1818

1919
from platformio.public import PlatformBase
20+
from platformio.project.helpers import get_project_dir
2021

2122

2223
IS_WINDOWS = sys.platform.startswith("win")
@@ -68,16 +69,26 @@ def install_package(self, name, *args, **kwargs):
6869
if name != "framework-zephyr":
6970
return pkg
7071

71-
if not os.path.isfile(os.path.join(pkg.path, "_pio", "state.json")):
72-
self.pm.log.info("Installing Zephyr project dependencies...")
73-
try:
74-
subprocess.run([
75-
os.path.normpath(sys.executable),
76-
os.path.join(pkg.path, "scripts", "platformio", "install-deps.py"),
77-
"--platform", self.name
78-
])
79-
except subprocess.CalledProcessError:
80-
self.pm.log.info("Failed to install Zephyr dependencies!")
72+
prj_west_manifest = os.path.join(get_project_dir(), "west.yml")
73+
try:
74+
(
75+
subprocess.run(
76+
[
77+
os.path.normpath(sys.executable),
78+
os.path.join(
79+
pkg.path, "scripts", "platformio", "install-deps.py"
80+
),
81+
"--platform",
82+
self.name,
83+
] + (
84+
["--manifest", prj_west_manifest]
85+
if os.path.isfile(prj_west_manifest)
86+
else []
87+
)
88+
)
89+
)
90+
except subprocess.CalledProcessError:
91+
self.pm.log.info("Failed to install Zephyr dependencies!")
8192

8293
return pkg
8394

0 commit comments

Comments
 (0)