Skip to content
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 CMakeLists.txt to MCUBoot example #3

Closed
3 tasks done
sudotensor opened this issue Jul 28, 2021 · 1 comment · Fixed by #12
Closed
3 tasks done

Add CMakeLists.txt to MCUBoot example #3

sudotensor opened this issue Jul 28, 2021 · 1 comment · Fixed by #12
Assignees
Labels
enhancement New feature or request

Comments

@sudotensor
Copy link
Owner

sudotensor commented Jul 28, 2021

Currently, the MCUBoot example requires the use of mbed-cli to build the bootloader and primary application. However, mbed-tools is the new, future command-line tool for MbedOS. The Mock example has already been updated to use this.

Note: mbed-tools is also known as Mbed CLI 2. This new tool makes use of "Ninja as a build system, and CMake to generate the build environment and manage the build process in a compiler-independent manner." More information can be found here.

A CMakeLists.txt file "contains a set of directives and instructions describing the project's source files and targets (executable, library, or both)" as mentioned here.

The aim is to update the MCUBoot example with CMakeLists.txt files for use with mbed-tools. Please refer to CMake file in the Mock example as well as other BLE examples as a point of reference; the requirements and relevant resources are listed below.

Requirements:

  • Setup a CMakeLists.txt for the bootloader
  • Setup a CMakeLists.txt file for the primary application
  • Run the example and verify that it builds without errors

Resources:

Associated branch: cmake-support

@sudotensor sudotensor added the enhancement New feature or request label Jul 28, 2021
@sudotensor sudotensor self-assigned this Jul 28, 2021
@sudotensor sudotensor changed the title Add CMakeLists.txt to examples Add CMakeLists.txt to MCUBoot example Jul 28, 2021
@sudotensor
Copy link
Owner Author

Development work associated with this issue has been currently put on hold until the 17th of August, 2021. The reason for this decision is because the MCUboot port for Mbed OS was built with the old cli in mind; as a result, writing a CMakeLists.txt isn't entirely trivial without understanding how the port actually works. This would involve discussions with the original contributors (AGlassOfMilk and LDong-ARM) among others.

Note: This issue would see modifications to the MCUboot Mbed OS port and would require a pull request to the MCUBoot repository to add support for CMake.

For the time-being, #1 would use both cli tools and #2 would contain a note referencing this issue and further details on why it isn't trivial to solve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant