-
Notifications
You must be signed in to change notification settings - Fork 3k
CMake: Fix travis using tools #13311
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
Conversation
For anyone watching this branch, please use the commands to build blinky (other examples will be fixed).
|
a856e61
to
bbd66a5
Compare
Syntax error, fixed |
I tried to build Blinky as specified in the script but I got the following error:
|
The tools config doesn't touch |
@@ -113,13 +113,15 @@ matrix: | |||
- source_pkg gcc | |||
- arm-none-eabi-gcc --version | |||
- pip install --user --upgrade cmake | |||
- pip install --user --upgrade mbed-tools | |||
- >- | |||
git clone --depth=1 --single-branch --branch feature-cmake https://github.com/ARMmbed/mbed-os-example-blinky.git; | |||
cd mbed-os-example-blinky; |
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.
We'll need to add .mbed file
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.
just about to add it. can we fix the tool or we fix it here for now?
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.
I'd suggest we fix it here for now until we can all discuss what we want to do in the tools going forward (perhaps on Wednesday when @Patater returns from holiday).
@rwalton-arm Yes, I fetched and pulled this morning. There are custom commands in |
Yeah but I don't think the generated config affects them. Did you pull after #13286 was merged? |
I added |
@rwalton-arm @hugueskamba Please review |
2aaa04c
to
d3914c4
Compare
@0xc0170, thank you for your changes. |
.travis.yml
Outdated
mkdir -p build; | ||
script: | ||
- cd build && cmake .. -GNinja && ninja | ||
- cd build && cmake .. -GNinja -DMBED_PROFILE=develop && ninja |
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.
- cd build && cmake .. -GNinja -DMBED_PROFILE=develop && ninja | |
- cd build && cmake .. -GNinja -DMBED_PROFILE=develop && cmake --build . |
This command is a generic, cross-platform wrapper to the native build command for the chosen generator, ninja
in this case.
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.
updated
We need config generation as part of the export, thus need to use tools from now on. Blinky was already updated.
0d1b602
to
b9d9b01
Compare
rebased, if this fails with only file missing, I'll merge to feature-branch, another PR incoming to fix this error |
Summary of changes
Travis broke with the recent commits, we shall use
mbed-tools
from now on to export cmake and build.Impact of changes
Migration actions required
Documentation
Pull request type
Test results
Reviewers