Enable support for building mcuboot for Mbed with direct-xip
This commit also introduces changes that allow users to build for other non-swap type update methods (overwrite only, swap using move, direct xip, or RAM loading). Changes include:
- Adding configuration options relating to XIP
- Updating the Mbed flash map backend to be compatible with XIP updates
- Add default secondary_bd in internal flash for XIP on Mbed OS.
Signed-off-by: George Beckstein <becksteing@embeddedplanet.com>
diff --git a/boot/mbed/mbed_lib.json b/boot/mbed/mbed_lib.json
index 7c9ccba..ef16f0c 100644
--- a/boot/mbed/mbed_lib.json
+++ b/boot/mbed/mbed_lib.json
@@ -160,6 +160,20 @@
"help": "Share data (NOT TESTED)",
"macro_name": "MCUBOOT_DATA_SHARING",
"value": null
+ },
+ "direct-xip": {
+ "help": "Enable ability to boot update candidates in-place.",
+ "macro_name": "MCUBOOT_DIRECT_XIP",
+ "value": null
+ },
+ "direct-xip-revert": {
+ "help": "Enable XIP revert mechanism. Only valid if direct-xip is also enabled.",
+ "macro_name": "MCUBOOT_DIRECT_XIP_REVERT",
+ "value": null
+ },
+ "xip-secondary-slot-address": {
+ "help": "Specify start address for secondary slot address in XIP-accessible memory. This is required if direct-xip is enabled.",
+ "value": null
}
}
}