-
Notifications
You must be signed in to change notification settings - Fork 3k
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
CMake: Add support for Cypress targets #13934
CMake: Add support for Cypress targets #13934
Conversation
975e16a
to
c134a28
Compare
@hugueskamba, thank you for your changes. |
3310849
to
d08e4dd
Compare
b0b76a5
to
61a8446
Compare
@hugueskamba initially tried to define |
This sounds like a bug with how the new tools handle the json config. Could you explain a bit more about how mbed_lib.json exclusion works? Particularly useful would be a description of how, and which, |
An example: mbed-os-example-blinky-baremetal contains |
Thanks for the explanation. Which data file dictates if a library is part of bare metal? Is it this one? ./TESTS/configs/baremetal.json |
This one: https://github.com/ARMmbed/mbed-os/blob/mbed-os-6.5.0/platform/bare_metal/mbed_lib.json |
@LDong-Arm @hugueskamba Could either of you please ensure there is a bug raised on https://github.com/ARMmbed/mbed-tools/issues for this? Thanks. |
Created ARMmbed/mbed-tools#127 If we defined |
Yes, Thanks for finding and raising the bug. |
158a68f
to
0c41cca
Compare
CI started |
Jenkins CI Test : ❌ FAILEDBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Jenkins CI Test : ✔️ SUCCESSBuild Number: 2 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Summary of changes
Add
CMakeLists.txt
input source files to build Cypress Mbed targets with CMake.Please note the following:
mbed-tools 3.5.0
always generates the macro from the attribute"target.macros_add": ["CY_RTOS_AWARE"]
in cmsis/device/rtos/mbed_lib.json. This causes an issue as the presence of the macroCY_RTOS_AWARE
causes the files intargets/TARGET_Cypress/TARGET_PSOC6/psoc6csp/abstraction/rtos/
to be required thus making it impossible to build with the baremetal profile (using thembed-baremetal
CMake target instead ofmbed-os
in the applicationCMakeLists.txt
, see here).mbedtools
should not processmbed_lib.json
files that are excluded when therequires
keyword is used. This behaviour will match the old Mbed CLI and will cause theCY_RTOS_AWARE
to not be generated as it lives in anmbed_lib.json
file that is excluded when the baremetal profile is used.The bug in
mbed-tools
has been reported here: ARMmbed/mbed-tools#127Impact of changes
Migration actions required
Documentation
Pull request type
Test results
Reviewers