blob: 8e00003b9a02f1503831b12bc7fcc7ab62c2a024 [file] [log] [blame]
Mate Toth-Pal65c935e2018-01-17 18:42:13 +01001#-------------------------------------------------------------------------------
Jamie Fox17c30bb2019-01-10 13:39:33 +00002# Copyright (c) 2018-2019, Arm Limited. All rights reserved.
Mate Toth-Pal65c935e2018-01-17 18:42:13 +01003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
8if(NOT DEFINED REGRESSION)
9 message(FATAL_ERROR "ERROR: Incomplete Configuration: REGRESSION not defined, Include this file from a Config*.cmake")
10elseif(NOT DEFINED CORE_TEST)
11 message(FATAL_ERROR "ERROR: Incomplete Configuration: CORE_TEST not defined, Include this file from a Config*.cmake")
Tamas Band90c81b2018-08-15 15:03:42 +010012elseif(NOT DEFINED TFM_LVL)
13 message(FATAL_ERROR "ERROR: Incomplete Configuration: TFM_LVL not defined, Include this file from a Config*.cmake")
Mate Toth-Pal65c935e2018-01-17 18:42:13 +010014endif()
15
Mate Toth-Palee551bc2018-06-12 16:40:45 +020016if(NOT DEFINED COMPILER)
17 message(FATAL_ERROR "ERROR: COMPILER is not set in command line")
18elseif((NOT ${COMPILER} STREQUAL "ARMCLANG") AND (NOT ${COMPILER} STREQUAL "GNUARM"))
19 message(FATAL_ERROR "ERROR: Compiler \"${COMPILER}\" is not supported.")
20endif()
21
David Vincze4638b2a2019-05-24 10:14:23 +020022#BL2 bootloader (MCUBoot) related settings
23if(NOT DEFINED BL2)
24 set(BL2 True CACHE BOOL "Configure TF-M to use BL2 and enable building BL2")
25endif()
26if (BL2)
27 if (NOT DEFINED MCUBOOT_UPGRADE_STRATEGY)
David Vincze8a2a4e22019-05-24 10:14:23 +020028 set (MCUBOOT_UPGRADE_STRATEGY "OVERWRITE_ONLY" CACHE STRING "Configure BL2 which upgrade strategy to use")
David Vincze4638b2a2019-05-24 10:14:23 +020029 set_property(CACHE MCUBOOT_UPGRADE_STRATEGY PROPERTY STRINGS "OVERWRITE_ONLY;SWAP;NO_SWAP;RAM_LOADING")
30 endif()
31endif()
32
Mate Toth-Pal48fc6a02018-01-24 09:50:14 +010033set(BUILD_CMSIS_CORE Off)
34set(BUILD_RETARGET Off)
35set(BUILD_NATIVE_DRIVERS Off)
36set(BUILD_TIME Off)
37set(BUILD_STARTUP Off)
38set(BUILD_TARGET_CFG Off)
39set(BUILD_TARGET_HARDWARE_KEYS Off)
Marc Moreno Berengue4cc81fc2018-08-10 14:32:01 +010040set(BUILD_TARGET_NV_COUNTERS Off)
Mate Toth-Pal48fc6a02018-01-24 09:50:14 +010041set(BUILD_CMSIS_DRIVERS Off)
42set(BUILD_UART_STDOUT Off)
43set(BUILD_FLASH Off)
Tamas Ban3681ce02018-11-22 15:19:24 +000044set(BUILD_BOOT_SEED Off)
Tamas Ban38e17312018-11-22 15:26:35 +000045set(BUILD_DEVICE_ID Off)
Mate Toth-Pald3c77662019-02-20 16:23:00 +010046set(BUILD_PLAT_TEST Off)
Mate Toth-Pal48fc6a02018-01-24 09:50:14 +010047if(NOT DEFINED PLATFORM_CMAKE_FILE)
48 message (FATAL_ERROR "Platform specific CMake is not defined. Please set PLATFORM_CMAKE_FILE.")
49elseif(NOT EXISTS ${PLATFORM_CMAKE_FILE})
50 message (FATAL_ERROR "Platform specific CMake \"${PLATFORM_CMAKE_FILE}\" file does not exist. Please fix value of PLATFORM_CMAKE_FILE.")
51else()
52 include(${PLATFORM_CMAKE_FILE})
53endif()
54
Oliver Swede21440442018-07-10 09:31:32 +010055if (NOT DEFINED IMAGE_VERSION)
Jamie Fox7a4170d2018-08-15 14:13:42 +010056 set(IMAGE_VERSION 0.0.0+0)
Oliver Swede21440442018-07-10 09:31:32 +010057endif()
58
Mate Toth-Palee551bc2018-06-12 16:40:45 +020059if(${COMPILER} STREQUAL "ARMCLANG")
Mate Toth-Pal76867262018-03-09 13:15:36 +010060 #Use any ARMCLANG version found on PATH. Note: Only versions supported by the
61 #build system will work. A file cmake/Common/CompilerArmClangXY.cmake
62 #must be present with a matching version.
63 include("Common/FindArmClang")
64 include("Common/${ARMCLANG_MODULE}")
Mate Toth-Pal48fc6a02018-01-24 09:50:14 +010065
Mate Toth-Pal76867262018-03-09 13:15:36 +010066 set (COMMON_COMPILE_FLAGS -fshort-enums -fshort-wchar -funsigned-char -mfpu=none -mcmse)
Tamas Bandb69d522018-03-01 10:04:41 +000067 ##Shared compiler settings.
68 function(config_setting_shared_compiler_flags tgt)
Mate Toth-Pal76867262018-03-09 13:15:36 +010069 embedded_set_target_compile_flags(TARGET ${tgt} LANGUAGE C FLAGS -xc -std=c99 ${COMMON_COMPILE_FLAGS} -Wall -Werror)
Tamas Bandb69d522018-03-01 10:04:41 +000070 endfunction()
71
72 ##Shared linker settings.
73 function(config_setting_shared_linker_flags tgt)
Mate Toth-Pal76867262018-03-09 13:15:36 +010074 embedded_set_target_link_flags(TARGET ${tgt} FLAGS --strict --map --symbols --xref --entry=Reset_Handler --info=summarysizes,sizes,totals,unused,veneers)
75 endfunction()
76elseif(${COMPILER} STREQUAL "GNUARM")
77 #Use any GNUARM version found on PATH. Note: Only versions supported by the
78 #build system will work. A file cmake/Common/CompilerGNUARMXY.cmake
79 #must be present with a matching version.
80 include("Common/FindGNUARM")
81 include("Common/${GNUARM_MODULE}")
Mate Toth-Pal48fc6a02018-01-24 09:50:14 +010082
Mate Toth-Palf64f1eb2018-04-26 17:22:37 +020083 set (COMMON_COMPILE_FLAGS -fshort-enums -fshort-wchar -funsigned-char -msoft-float -mcmse --specs=nano.specs)
Mate Toth-Pal76867262018-03-09 13:15:36 +010084 ##Shared compiler and linker settings.
Tamas Bandb69d522018-03-01 10:04:41 +000085 function(config_setting_shared_compiler_flags tgt)
Mate Toth-Pal76867262018-03-09 13:15:36 +010086 embedded_set_target_compile_flags(TARGET ${tgt} LANGUAGE C FLAGS -xc -std=c99 ${COMMON_COMPILE_FLAGS} -Wall -Werror -Wno-format -Wno-return-type -Wno-unused-but-set-variable)
Tamas Bandb69d522018-03-01 10:04:41 +000087 endfunction()
88
89 ##Shared linker settings.
90 function(config_setting_shared_linker_flags tgt)
Mate Toth-Pal76867262018-03-09 13:15:36 +010091 #--no-wchar-size-warning flag is added because TF-M sources are compiled
92 #with short wchars, however the standard library is compiled with normal
93 #wchar, and this generates linker time warnings. TF-M code does not use
94 #wchar, so the warning can be suppressed.
Karl Zhangb3b9d952018-08-07 21:47:11 +080095 embedded_set_target_link_flags(TARGET ${tgt} FLAGS -Xlinker -check-sections -Xlinker -fatal-warnings --entry=Reset_Handler -Wl,--no-wchar-size-warning --specs=nano.specs
96 -Wl,--print-memory-usage)
Mate Toth-Pal76867262018-03-09 13:15:36 +010097 endfunction()
Mate Toth-Pal76867262018-03-09 13:15:36 +010098endif()
99
100#Create a string from the compile flags list, so that it can be used later
101#in this file to set mbedtls and BL2 flags
Tamas Bandb69d522018-03-01 10:04:41 +0000102list_to_string(COMMON_COMPILE_FLAGS_STR ${COMMON_COMPILE_FLAGS})
Mate Toth-Pal65c935e2018-01-17 18:42:13 +0100103
104#Settings which shall be set for all projects the same way based
105# on the variables above.
Mate Toth-Pal349714a2018-02-23 15:30:24 +0100106set (TFM_PARTITION_TEST_CORE OFF)
Jamie Foxadf02552019-05-16 17:44:52 +0100107set (TFM_PARTITION_TEST_CORE_IPC OFF)
Mate Toth-Pal65c935e2018-01-17 18:42:13 +0100108set (CORE_TEST_POSITIVE OFF)
109set (CORE_TEST_INTERACTIVE OFF)
Miklos Balintf13ec022018-04-06 17:21:22 +0200110set (REFERENCE_PLATFORM OFF)
Ben Davis6d7256b2018-04-18 14:16:53 +0100111set (TFM_PARTITION_TEST_SECURE_SERVICES OFF)
Tamas Band90c81b2018-08-15 15:03:42 +0100112set (SERVICES_TEST_ENABLED OFF)
Marc Moreno Berenguecae2c532018-10-09 12:58:46 +0100113set (TEST_FRAMEWORK_S OFF)
114set (TEST_FRAMEWORK_NS OFF)
Edison Aiec109cd2018-07-17 16:04:14 +0800115set (TFM_PSA_API OFF)
Miklos Balint87da2512018-04-19 13:45:50 +0200116set (TFM_LEGACY_API ON)
Edison Aiec109cd2018-07-17 16:04:14 +0800117set (CORE_TEST_IPC OFF)
Miklos Balintf13ec022018-04-06 17:21:22 +0200118
Jamie Foxc78c62c2019-05-23 13:42:17 +0100119option(TFM_PARTITION_AUDIT_LOG "Enable the TF-M Audit Log partition" ON)
Mingyang Sun9511e5e2019-05-29 18:18:44 +0800120option(TFM_PARTITION_PLATFORM "Enable the TF-M Platform partition" ON)
Jamie Foxc78c62c2019-05-23 13:42:17 +0100121
Miklos Balintf13ec022018-04-06 17:21:22 +0200122if(${TARGET_PLATFORM} STREQUAL "AN521" OR ${TARGET_PLATFORM} STREQUAL "AN519")
123 set (REFERENCE_PLATFORM ON)
124endif()
Mate Toth-Pal65c935e2018-01-17 18:42:13 +0100125
Miklos Balint6cbeba62018-04-12 17:31:34 +0200126# Option to demonstrate usage of secure-only peripheral
127set (SECURE_UART1 OFF)
128
Mate Toth-Pal65c935e2018-01-17 18:42:13 +0100129if (REGRESSION)
130 set(SERVICES_TEST_ENABLED ON)
Mate Toth-Pal65c935e2018-01-17 18:42:13 +0100131endif()
132
Edison Aiec109cd2018-07-17 16:04:14 +0800133if (CORE_IPC)
134 set(TFM_PSA_API ON)
Edison Aiec109cd2018-07-17 16:04:14 +0800135endif()
136
Miklos Balint87da2512018-04-19 13:45:50 +0200137if (TFM_PSA_API)
138 add_definitions(-DTFM_PSA_API)
139endif()
140
141if (TFM_LEGACY_API)
142 add_definitions(-DTFM_LEGACY_API)
143endif()
144
Mate Toth-Pal65c935e2018-01-17 18:42:13 +0100145if (SERVICES_TEST_ENABLED)
146 set(SERVICE_TEST_S ON)
147 set(SERVICE_TEST_NS ON)
Jamie Foxadf02552019-05-16 17:44:52 +0100148 if (CORE_IPC)
149 set(CORE_TEST_IPC ON)
Mate Toth-Pald3c77662019-02-20 16:23:00 +0100150 else ()
Miklos Balintf13ec022018-04-06 17:21:22 +0200151 set(CORE_TEST_POSITIVE ON)
152 endif()
Mate Toth-Pal65c935e2018-01-17 18:42:13 +0100153endif()
154
155if (CORE_TEST)
Jamie Foxadf02552019-05-16 17:44:52 +0100156 if (CORE_IPC)
157 set(CORE_TEST_IPC ON)
Mate Toth-Pald3c77662019-02-20 16:23:00 +0100158 else()
Jamie Foxadf02552019-05-16 17:44:52 +0100159 set(CORE_TEST_POSITIVE ON)
160 set(CORE_TEST_INTERACTIVE OFF)
161 endif()
Mate Toth-Pal65c935e2018-01-17 18:42:13 +0100162endif()
163
Ben Davis6d7256b2018-04-18 14:16:53 +0100164if (CORE_TEST_INTERACTIVE)
Mate Toth-Pal65c935e2018-01-17 18:42:13 +0100165 add_definitions(-DCORE_TEST_INTERACTIVE)
166 set(TEST_FRAMEWORK_NS ON)
Mate Toth-Pal349714a2018-02-23 15:30:24 +0100167 set(TFM_PARTITION_TEST_CORE ON)
Mate Toth-Pal65c935e2018-01-17 18:42:13 +0100168endif()
169
Ben Davis6d7256b2018-04-18 14:16:53 +0100170if (CORE_TEST_POSITIVE)
Mate Toth-Pal65c935e2018-01-17 18:42:13 +0100171 add_definitions(-DCORE_TEST_POSITIVE)
172 set(TEST_FRAMEWORK_NS ON)
Mate Toth-Pal349714a2018-02-23 15:30:24 +0100173 set(TFM_PARTITION_TEST_CORE ON)
Mate Toth-Pal65c935e2018-01-17 18:42:13 +0100174endif()
175
Edison Aiec109cd2018-07-17 16:04:14 +0800176if (CORE_TEST_IPC)
177 add_definitions(-DCORE_TEST_IPC)
Jamie Foxadf02552019-05-16 17:44:52 +0100178 set(TEST_FRAMEWORK_NS ON)
179 set(TFM_PARTITION_TEST_CORE_IPC ON)
180elseif (CORE_IPC AND (NOT PSA_API_TEST) AND (TFM_LVL EQUAL 1))
181 # FIXME: Running the Core IPC tests in this config is deprecated and will
182 # be removed in the future.
183 set(CORE_TEST_IPC ON)
184 add_definitions(-DCORE_TEST_IPC)
185 set(TEST_FRAMEWORK_NS ON)
Edison Aiec109cd2018-07-17 16:04:14 +0800186endif()
187
Mate Toth-Pal65c935e2018-01-17 18:42:13 +0100188if (SERVICE_TEST_S)
189 add_definitions(-DSERVICES_TEST_S)
190 set(TEST_FRAMEWORK_S ON)
191endif()
192
193if (SERVICE_TEST_NS)
194 add_definitions(-DSERVICES_TEST_NS)
195 set(TEST_FRAMEWORK_NS ON)
196endif()
197
Ben Davis6d7256b2018-04-18 14:16:53 +0100198if (TEST_FRAMEWORK_S)
Mate Toth-Pal65c935e2018-01-17 18:42:13 +0100199 add_definitions(-DTEST_FRAMEWORK_S)
Jamie Fox56da0992019-05-28 14:35:06 +0100200 # The secure client partition is required to run secure tests
201 set(TFM_PARTITION_TEST_SECURE_SERVICES ON)
Mate Toth-Pal65c935e2018-01-17 18:42:13 +0100202endif()
203
Ben Davis6d7256b2018-04-18 14:16:53 +0100204if (TEST_FRAMEWORK_NS)
Mate Toth-Pal65c935e2018-01-17 18:42:13 +0100205 add_definitions(-DTEST_FRAMEWORK_NS)
206endif()
207
Jamie Foxc78c62c2019-05-23 13:42:17 +0100208if (CORE_IPC)
209 set(TFM_PARTITION_AUDIT_LOG OFF)
Mingyang Sun9511e5e2019-05-29 18:18:44 +0800210 set(TFM_PARTITION_PLATFORM OFF)
Jamie Foxc78c62c2019-05-23 13:42:17 +0100211endif()
212
213if (TFM_PARTITION_AUDIT_LOG)
214 add_definitions(-DTFM_PARTITION_AUDIT_LOG)
215endif()
216
Mingyang Sun9511e5e2019-05-29 18:18:44 +0800217if (TFM_PARTITION_PLATFORM)
218 add_definitions(-DTFM_PARTITION_PLATFORM)
219endif()
220
Mate Toth-Pal349714a2018-02-23 15:30:24 +0100221if (TFM_PARTITION_TEST_CORE)
222 add_definitions(-DTFM_PARTITION_TEST_CORE)
Mate Toth-Pal65c935e2018-01-17 18:42:13 +0100223endif()
224
Jamie Foxadf02552019-05-16 17:44:52 +0100225if (TFM_PARTITION_TEST_CORE_IPC)
226 add_definitions(-DTFM_PARTITION_TEST_CORE_IPC)
227endif()
228
Jamie Foxc78c62c2019-05-23 13:42:17 +0100229if (TFM_PARTITION_TEST_SECURE_SERVICES)
230 add_definitions(-DTFM_PARTITION_TEST_SECURE_SERVICES)
231endif()
232
Jamie Fox17c30bb2019-01-10 13:39:33 +0000233if (PSA_API_TEST)
234 add_definitions(-DPSA_API_TEST_NS)
235 set(PSA_API_TEST_NS ON)
236 if (NOT DEFINED PSA_API_TEST_CRYPTO)
237 set(PSA_API_TEST_CRYPTO OFF)
238 endif()
239 if (NOT DEFINED PSA_API_TEST_SECURE_STORAGE)
240 set(PSA_API_TEST_SECURE_STORAGE OFF)
241 endif()
242 if (NOT DEFINED PSA_API_TEST_ATTESTATION)
243 set(PSA_API_TEST_ATTESTATION OFF)
244 endif()
245endif()
246
Marc Moreno Berenguec2e4db82018-09-14 16:32:24 +0100247# This flag indicates if the non-secure OS is capable of identify the non-secure clients
248# which call the secure services
249if (NOT DEFINED TFM_NS_CLIENT_IDENTIFICATION)
250 set (TFM_NS_CLIENT_IDENTIFICATION ON)
251endif()
252
Mate Toth-Pal65c935e2018-01-17 18:42:13 +0100253if (BL2)
254 add_definitions(-DBL2)
Tamas Ban7801ed42019-05-20 13:21:53 +0100255 if (NOT ${MCUBOOT_SIGNATURE_TYPE} STREQUAL "RSA-2048" AND NOT ${MCUBOOT_SIGNATURE_TYPE} STREQUAL "RSA-3072")
256 message(FATAL_ERROR "MCUBoot only supports RSA-2048 and RSA-3072 signature")
257 endif()
258 if (NOT DEFINED MCUBOOT_SIGNATURE_TYPE)
Tamas Ban81daed02019-05-20 15:05:22 +0100259 set(MCUBOOT_SIGNATURE_TYPE "RSA-3072")
Tamas Ban7801ed42019-05-20 13:21:53 +0100260 endif()
David Vincze4638b2a2019-05-24 10:14:23 +0200261 if (NOT ${MCUBOOT_UPGRADE_STRATEGY} STREQUAL "OVERWRITE_ONLY" AND
262 NOT ${MCUBOOT_UPGRADE_STRATEGY} STREQUAL "SWAP" AND
263 NOT ${MCUBOOT_UPGRADE_STRATEGY} STREQUAL "NO_SWAP" AND
264 NOT ${MCUBOOT_UPGRADE_STRATEGY} STREQUAL "RAM_LOADING")
265 message(FATAL_ERROR "ERROR: MCUBoot supports OVERWRITE_ONLY, SWAP, NO_SWAP and RAM_LOADING upgrade strategies only.")
266 endif()
267 if (${MCUBOOT_UPGRADE_STRATEGY} STREQUAL "NO_SWAP")
Tamas Bandb69d522018-03-01 10:04:41 +0000268 set(LINK_TO_BOTH_MEMORY_REGION ON)
269 endif()
David Vincze4638b2a2019-05-24 10:14:23 +0200270else() #BL2 is turned off
271 if (DEFINED MCUBOOT_UPGRADE_STRATEGY)
272 message (WARNING "Ignoring value of MCUBOOT_UPGRADE_STRATEGY as BL2 option is set to False.")
273 unset (MCUBOOT_UPGRADE_STRATEGY)
Tamas Bandb69d522018-03-01 10:04:41 +0000274 endif()
Mate Toth-Pal65c935e2018-01-17 18:42:13 +0100275endif()
276
Jamie Foxdaade492019-04-26 14:35:39 +0100277##Set Mbed TLS compiler flags and variables for audit log and crypto
Jamie Fox0e54ebc2019-04-09 14:21:04 +0100278set(MBEDTLS_C_FLAGS_SERVICES "-D__ARM_FEATURE_CMSE=3 -D__thumb2__ ${COMMON_COMPILE_FLAGS_STR} -I${CMAKE_CURRENT_LIST_DIR}/platform/ext/common")
Mate Toth-Pal65c935e2018-01-17 18:42:13 +0100279
Marc Moreno Berengue6ffb22f2018-02-20 13:46:30 +0000280#Default TF-M secure storage flags.
281#These flags values can be overwritten by setting them in platform/ext/<TARGET_NAME>.cmake
Marc Moreno Berenguef6a64f72018-07-26 17:33:38 +0100282#Documentation about these flags can be found in docs/user_guides/services/tfm_sst_integration_guide.md
Marc Moreno Berengue8385e8e2019-01-21 11:49:50 +0000283if (NOT DEFINED SST_ENCRYPTION)
284 set (SST_ENCRYPTION ON)
285endif()
Marc Moreno Berengue6ffb22f2018-02-20 13:46:30 +0000286
Marc Moreno Berengue8385e8e2019-01-21 11:49:50 +0000287if (NOT DEFINED SST_ROLLBACK_PROTECTION)
288 set (SST_ROLLBACK_PROTECTION OFF)
289endif()
Marc Moreno Berengue6ffb22f2018-02-20 13:46:30 +0000290
Marc Moreno Berengue8385e8e2019-01-21 11:49:50 +0000291if (NOT DEFINED SST_CREATE_FLASH_LAYOUT)
292 set (SST_CREATE_FLASH_LAYOUT OFF)
293endif()
Marc Moreno Berengue184d2032018-08-14 12:51:43 +0100294
Marc Moreno Berengue8385e8e2019-01-21 11:49:50 +0000295if (NOT DEFINED SST_VALIDATE_METADATA_FROM_FLASH)
296 set (SST_VALIDATE_METADATA_FROM_FLASH ON)
297endif()
Marc Moreno Berengue6ffb22f2018-02-20 13:46:30 +0000298
Marc Moreno Berengue8385e8e2019-01-21 11:49:50 +0000299if (NOT DEFINED SST_RAM_FS)
300 if (REGRESSION)
301 set (SST_RAM_FS ON)
302 else()
303 set (SST_RAM_FS OFF)
Marc Moreno Berengue02a23442018-08-15 14:28:45 +0100304 endif()
Marc Moreno Berengue792fc682018-02-20 11:53:30 +0000305endif()
Marc Moreno Berengue6ffb22f2018-02-20 13:46:30 +0000306
Jamie Fox95bacd42019-03-21 18:14:15 +0000307if (NOT DEFINED SST_TEST_NV_COUNTERS)
308 if (REGRESSION AND (TFM_LVL EQUAL 1))
309 set(SST_TEST_NV_COUNTERS ON)
310 else()
311 set(SST_TEST_NV_COUNTERS OFF)
312 endif()
313endif()
314
Marc Moreno Berengue6ffb22f2018-02-20 13:46:30 +0000315if (NOT DEFINED MBEDTLS_DEBUG)
Jamie Fox287885f2018-10-24 14:09:34 +0100316 set(MBEDTLS_DEBUG OFF)
Marc Moreno Berengue6ffb22f2018-02-20 13:46:30 +0000317endif()
Mate Toth-Pal65c935e2018-01-17 18:42:13 +0100318
Tamas Bandb69d522018-03-01 10:04:41 +0000319##Set mbedTLS compiler flags for BL2 bootloader
Mate Toth-Pal76867262018-03-09 13:15:36 +0100320set(MBEDTLS_C_FLAGS_BL2 "-D__ARM_FEATURE_CMSE=3 -D__thumb2__ ${COMMON_COMPILE_FLAGS_STR} -DMBEDTLS_CONFIG_FILE=\\\\\\\"config-boot.h\\\\\\\" -I${CMAKE_CURRENT_LIST_DIR}/bl2/ext/mcuboot/include")
Tamas Ban7801ed42019-05-20 13:21:53 +0100321if (MCUBOOT_SIGNATURE_TYPE STREQUAL "RSA-3072")
322 string(APPEND MBEDTLS_C_FLAGS_BL2 " -DMCUBOOT_SIGN_RSA_LEN=3072")
Jamie Foxc78c62c2019-05-23 13:42:17 +0100323endif()