Skip to content

Commit 5a0da8e

Browse files
committed
Move build script to mbed package
1 parent c74414d commit 5a0da8e

File tree

4 files changed

+39
-6
lines changed

4 files changed

+39
-6
lines changed

.gitmodules

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

builder/frameworks/mbed

Lines changed: 0 additions & 1 deletion
This file was deleted.

builder/frameworks/mbed.py

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Copyright 2014-present PlatformIO <[email protected]>
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
"""
15+
mbed
16+
17+
The mbed framework The mbed SDK has been designed to provide enough
18+
hardware abstraction to be intuitive and concise, yet powerful enough to
19+
build complex projects. It is built on the low-level ARM CMSIS APIs,
20+
allowing you to code down to the metal if needed. In addition to RTOS,
21+
USB and Networking libraries, a cookbook of hundreds of reusable
22+
peripheral and module libraries have been built on top of the SDK by
23+
the mbed Developer Community.
24+
25+
http://mbed.org/
26+
"""
27+
28+
from os.path import join
29+
30+
from SCons.Script import Import, SConscript
31+
32+
Import("env")
33+
34+
# https://github.com/platformio/builder-framework-mbed.git
35+
SConscript(
36+
join(env.PioPlatform().get_package_dir("framework-mbed"), "platformio",
37+
"platformio-build.py"))

platform.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"frameworks": {
2121
"mbed": {
2222
"package": "framework-mbed",
23-
"script": "builder/frameworks/mbed/mbed.py"
23+
"script": "builder/frameworks/mbed.py"
2424
}
2525
},
2626
"packages": {
@@ -31,7 +31,7 @@
3131
"framework-mbed": {
3232
"type": "framework",
3333
"optional": true,
34-
"version": "~5.51001.0"
34+
"version": "~5.51001.1"
3535
},
3636
"tool-openocd": {
3737
"type": "debugger",

0 commit comments

Comments
 (0)