-
Notifications
You must be signed in to change notification settings - Fork 28
Add support for custom_targets.json #160
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
Add support for custom_targets.json #160
Conversation
b7e9cbd
to
8f803c4
Compare
Codecov Report
@@ Coverage Diff @@
## master #160 +/- ##
==========================================
+ Coverage 96.54% 96.55% +0.01%
==========================================
Files 94 94
Lines 2605 2615 +10
==========================================
+ Hits 2515 2525 +10
Misses 90 90
|
60af69f
to
6c19600
Compare
3d4d11e
to
30735ba
Compare
697a245
to
3f2f8b6
Compare
ac914f2
to
bf10d32
Compare
@@ -0,0 +1,18 @@ | |||
## |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make this header match the format used in src/mbed_tools/project/_internal/templates/CMakeLists.tmpl
(single #
, no extra lines)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for providing a fix for this @Patater
The default style for licenseheaders for CMake is to use ## and to have some extra start and end comments around the license. Mbed style is to use single # and no extra start and end comments. Add a settings file for licenseheaders to override the default style with Mbed style.
The CMake function `mbed_set_mbed_target_linker_script` is deprecated in Mbed OS. Remove it from `CMakeLists.tmpl`.
bf10d32
to
94d85af
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Is there a guide for using this feature? I am getting |
To answer my own question: The custom board porting guide has been updated to incorporate CLI 2. |
Description
Adds support for custom_targets.json in the tools.
This is dependent on mbed-os CMake changes.
Without those changes adding a custom target using
add_subdirectory
will make mbed-os fail to build for standard mbed targets.With those changes (once applied to all targets) you can add your target using
add_subdirectory(<target-dir> EXCLUDE_FROM_ALL)
before adding the mbed-os subdirectory, in the top level CMakeLists.txt, and the custom target will integrate into the build system without breaking it.While I'm here fix the
deploy --force
option as that was broken.Test Coverage