diff options
author | Mark Horvath <mark.horvath@arm.com> | 2021-03-12 10:24:55 +0100 |
---|---|---|
committer | Anton Komlev <Anton.Komlev@arm.com> | 2021-08-04 18:20:13 +0200 |
commit | 8576e3800611a631620ff7910fc61aa637e46995 (patch) | |
tree | 45e333198577fc183eeb570f4f41cab7d886bce2 /config | |
parent | 7ef9178adad866d48e3af42d8a3129dfab792ed8 (diff) | |
download | trusted-firmware-m-8576e3800611a631620ff7910fc61aa637e46995.tar.gz |
Build: Make possible to overwrite BL2 sources
This commit introduces two cmake flags to let a platform overwrite BL2
related implementations created by the TF-M project.
- Setting DEFAULT_MCUBOOT_FLASH_MAP to OFF makes possible for a
platform to create custom flash map.
- Setting DEFAULT_MCUBOOT_SECURITY_COUNTER to OFF makes possible for a
platform to use custom security counter mapping.
Change-Id: Ib1955e63e78dd5a5a7dff67a49dab1d5d1a06fc1
Signed-off-by: Mark Horvath <mark.horvath@arm.com>
Signed-off-by: Satish Kumar <satish.kumar01@arm.com>
Diffstat (limited to 'config')
-rw-r--r-- | config/config_default.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/config_default.cmake b/config/config_default.cmake index c5d0a3b63d..bace8126ca 100644 --- a/config/config_default.cmake +++ b/config/config_default.cmake @@ -47,6 +47,9 @@ set(TFM_EXCEPTION_INFO_DUMP OFF CACHE BOOL "On fatal er ########################## BL2 ################################################# +set(DEFAULT_MCUBOOT_SECURITY_COUNTERS ON CACHE BOOL "Whether to use the default security counter configuration defined by TF-M project") +set(DEFAULT_MCUBOOT_FLASH_MAP ON CACHE BOOL "Whether to use the default flash map defined by TF-M project") + set(MCUBOOT_IMAGE_NUMBER 2 CACHE STRING "Whether to combine S and NS into either 1 image, or sign each seperately") set(MCUBOOT_EXECUTION_SLOT 1 CACHE STRING "Slot from which to execute the image, used for XIP mode") set(MCUBOOT_LOG_LEVEL "INFO" CACHE STRING "Level of logging to use for MCUboot [OFF, ERROR, WARNING, INFO, DEBUG]") |