commit | e0bb1f956f75c84500278ab4cc482f833acc413f | [log] [tgz] |
---|---|---|
author | David Brown <david.brown@linaro.org> | Tue Oct 01 15:57:01 2019 -0600 |
committer | David Brown <davidb@davidb.org> | Wed Oct 02 10:17:22 2019 -0700 |
tree | cbe09cf17e6f1d38ded88645c764e1346b81edd7 | |
parent | 510fddb8e06d76e2442b2a4603d3e1cbefe28be4 [diff] |
Change BOOT_MAX_ALIGN to #define BOOT_MAX_ALIGN is defined as extern const uint32_t BOOT_MAX_ALIGN; and is assigned a value in a single file. This causes extra work when this is used as the size of a local variable in a function. The value was made a constant in order for the simulator to be able to access the value. Instead of making it a "real" constant, keep it as a define, unifying the value of FLASH_MAX_ALIGN and this one, and provide an accessor function for the test code to be able to access this value. This causes a minor improvement in the code generated in `boot_write_status`, but more importantly, eliminates a VLA from the code, which increases the possible compilers supported by MCUboot. Signed-off-by: David Brown <david.brown@linaro.org>
This is mcuboot, version 1.3.1
MCUboot is a secure bootloader for 32-bit MCUs. The goal of MCUboot is to define a common infrastructure for the bootloader, system flash layout on microcontroller systems, and to provide a secure bootloader that enables easy software upgrade.
MCUboot is operating system and hardware independent and relies on hardware porting layers from the operating system it works with. Currently, mcuboot works with both the Apache Mynewt, and Zephyr operating systems, but more ports are planned in the future. RIOT is currently supported as a boot target with a complete port planned.
Instructions for different operating systems can be found here:
The issues being planned and worked on are tracked using GitHub issues. To participate please visit:
Issues were previously tracked on MCUboot JIRA , but it is now deprecated.
Information and documentation on the bootloader are stored within the source.
It was previously also documented on confluence: MCUBoot Confluence however, it is now deprecated and not currently maintained
For more information in the source, here are some pointers:
Developers welcome!