Skip to content

Conversation

@LDong-Arm
Copy link
Contributor

@LDong-Arm LDong-Arm commented Feb 22, 2021

This is based on CMakeLists.txt from mbed-os-example-blinky, with mbed-psa added to the list of libraries to link.
The Travis script has been changed to build with Mbed CLI 2 (only) to align with other Mbed official examples (e.g. mbed-os-example-blinky).

Tested:

  • Compilation for K64F, ARM_MUSCA_B1, ARM_MUSCA_S1
  • Running on K64F (we can only run it on Musca B1 and S1 after we added post binary hooks for them)

@LDong-Arm LDong-Arm force-pushed the cmake_support branch 3 times, most recently from 5153ca5 to 4dfce79 Compare February 25, 2021 15:15
@LDong-Arm LDong-Arm force-pushed the cmake_support branch 2 times, most recently from 0dcfd99 to 64e1184 Compare March 2, 2021 14:25
@LDong-Arm LDong-Arm changed the title Add CMakeLists.txt to support Mbed CLI 2 Support Mbed CLI 2 Mar 2, 2021
Copy link
Contributor

@evedon evedon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes look good

This commit adds CMakeLists.txt to support Mbed CLI 2, and updates
README with build steps aligned with other official Mbed examples.
@LDong-Arm LDong-Arm force-pushed the cmake_support branch 8 times, most recently from eac40b9 to 5e53fbb Compare March 3, 2021 10:54
@LDong-Arm
Copy link
Contributor Author

Sorry for the many force pushes. After many trials and errors, Circle CI finally works!

@jamesbeyond
Copy link

Can we use docker in Travis? I think that will save the problem of downloading tools, and make the flow neat

@LDong-Arm
Copy link
Contributor Author

LDong-Arm commented Mar 3, 2021

Can we use docker in Travis? I think that will save the problem of downloading tools, and make the flow neat

This should be aligned for all Mbed OS official examples, none of which use Mbed OS docker for Travis. I can change this particular PR, but for consistency we should refactor all of them. @0xc0170

@LDong-Arm
Copy link
Contributor Author

LDong-Arm commented Mar 3, 2021

The scope of this PR is to update existing scripts to use Mbed CLI 2.
For the use of a Docker image in Travis, I'm happy to create a separate PR to experiment that, but there's no existing example I can simply use - even the mbed-os Travis is not using Docker. There would be quite a bit of experimentation involved (e.g. how Travis's ccache, which is pretty automatic and speeds up builds, can work in a container environment.)

Here's Travis's documentation: https://docs.travis-ci.com/user/docker/
The use of Docker in Travis requires manual management (docker pull/run/...) and is not an automatic process like CircleCI.

@evedon
Copy link
Contributor

evedon commented Mar 4, 2021

The scope of this PR is to update existing scripts to use Mbed CLI 2.

I agree that to use Mbed OS docker for Travis is not in scope. Let's not do any work on this now as the work needs to be prioritised first.

@evedon
Copy link
Contributor

evedon commented Mar 4, 2021

@hugueskamba @0xc0170 Can one of you review the cmake changes please?

@hugueskamba
Copy link

@hugueskamba @0xc0170 Can one of you review the cmake changes please?

The CMake LGTM.

@evedon evedon merged commit e5585ba into ARMmbed:development Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants