mbed: Add the size of the MCU boot header area
Add header area size at the start of FLASH parameter in mbed_lib.json
This parameter is not used in MCUboot source code directly but for
example is the argument for imgtool.py sign command which sign
the binary image.
It will be useful to have it in Mbed port settings to use during project
building. For example post build command in cmake which signs image.
Signed-off-by: Artur Tynecki <artur.tynecki@mobica.com>
diff --git a/boot/mbed/mbed_lib.json b/boot/mbed/mbed_lib.json
index afab39f..f5b7b67 100644
--- a/boot/mbed/mbed_lib.json
+++ b/boot/mbed/mbed_lib.json
@@ -17,6 +17,11 @@
"macro_name": "MCUBOOT_SLOT_SIZE",
"required": true
},
+ "header-size": {
+ "help": "Size of the header info section, in bytes. Target-dependent, please set on a per-target basis.",
+ "macro_name": "MCUBOOT_HEADER_SIZE",
+ "value": "0x1000"
+ },
"scratch-address": {
"help": "Start address of the scratch area. If needed, please set on a per-target basis.",
"macro_name": "MCUBOOT_SCRATCH_START_ADDR"