forked from ARMmbed/mbed-os
-
Notifications
You must be signed in to change notification settings - Fork 26
Implement support for building Mbed as a PlatformIO framework #494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
31b19dd
Start importing PlatformIO target adapter code
multiplemonomials f7efa3c
PIO can run CMake configuration!
multiplemonomials dbf7bc9
Making progress, able to transfer all flags to SCons!
multiplemonomials 34f6fb6
Working!!
multiplemonomials c4f382e
Fix clean build issue
multiplemonomials f885b9e
Support 'pio debug'
multiplemonomials 07c5a21
Fix mbed_app.json path being specified wrong
multiplemonomials b0fec18
Hyphen to underscore
multiplemonomials 38ed992
Remove debug comment
multiplemonomials eac1143
Add licenses
multiplemonomials abc47eb
Missed package.json
multiplemonomials c716bd5
Final variable name
multiplemonomials 71f03d2
Final-er name
multiplemonomials d8d1f39
Avoid need for one PIO Core change
multiplemonomials 628c99f
Declare prerelease version
multiplemonomials File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "framework-mbed-ce", | ||
"version": "6.99.0", | ||
"title": "Mbed OS Community Edition", | ||
"description": "Mbed CE is a platform operating system designed for the internet of things", | ||
"keywords": [ | ||
"framework", | ||
"os", | ||
"arm", | ||
"hal" | ||
], | ||
"homepage": "http://mbed-ce.dev", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/mbed-ce/mbed-os" | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# | ||
# This file is used as the CMakeLists.txt when building a PlatformIO project. | ||
# | ||
|
||
cmake_minimum_required(VERSION 3.19) | ||
cmake_policy(VERSION 3.19...3.22) | ||
|
||
set(MBED_APP_JSON_PATH ${PLATFORMIO_PROJECT_PATH}/mbed_app.json5) | ||
|
||
include(${PLATFORMIO_MBED_OS_PATH}/tools/cmake/mbed_toolchain_setup.cmake) | ||
project(PlatformIOMbedProject | ||
LANGUAGES C CXX ASM) | ||
include(mbed_project_setup) | ||
|
||
add_subdirectory(${PLATFORMIO_MBED_OS_PATH} mbed-os) | ||
|
||
# Dummy executable. Not built, but needed to get the compile and linker flags via the CMake file API | ||
add_executable(PIODummyExecutable | ||
dummy_source_file.c | ||
dummy_source_file.cpp | ||
dummy_source_file.S) | ||
target_link_libraries(PIODummyExecutable mbed-os) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
""" | ||
Copyright (c) 2025 Jamie Smith | ||
SPDX-License-Identifier: Apache-2.0 | ||
""" |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.