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 CMake support #5

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

lambda-shuttle
Copy link

As mentioned in mcu-tools/mcuboot#1153,

"Currently, MbedOS applications using this port require that they are built with the old mbed-cli. However, mbed-tools is the new, future command-line tool for MbedOS; 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 was added as a result; the mcuboot.lib now points to this fork. This pull request has a companion pull request in the mbed-mcuboot-demo application repository; both are required for the full mbed-tools build workflow.

Note: This pull requests builds on the changes from #4.

@LDong-Arm

LDong-Arm and others added 8 commits August 24, 2021 16:08
As per the latest guidelines on Mbed OS standard pin names, all
buttons are numbered, starting at `BUTTON1`. `USER_BUTTON` is not
available on DISCO_L475VG_IOT01A anymore.
The majority of flash devices support reading single bytes without
alignment concerns. The config `mcuboot.read-granularity` enables
additional code to handle read alignment, and it comes with a slight
code size and performance overhead.
Mbed OS builds .bin images by default for most targets, but many
targets (e.g. ST targets running the latest ST-LINK firmware) also
support .hex files, making this demo much easier to prepare. In
case a target doesn't support .hex files, README.md already contains
steps for merging .hex files into a single one and converting it to
a .bin file.
A missing include was added into main.cpp to fix the build.

Co-authored-by: Lingkai Dong <[email protected]>
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.

2 participants