diff options
-rw-r--r-- | bl2/ext/mcuboot/CMakeLists.txt | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/bl2/ext/mcuboot/CMakeLists.txt b/bl2/ext/mcuboot/CMakeLists.txt index 99070f6e69..ababed199c 100644 --- a/bl2/ext/mcuboot/CMakeLists.txt +++ b/bl2/ext/mcuboot/CMakeLists.txt @@ -21,6 +21,14 @@ embedded_project_start(CONFIG "${TFM_ROOT_DIR}/configs/ConfigDefault.cmake") project(mcuboot LANGUAGES ASM C) embedded_project_fixup() +#Check input variables +if (NOT DEFINED BL2) + message(FATAL ERROR "Incomplete build configuration: BL2 is undefined.") +elseif(NOT BL2) + #If mcuboot is not need to be built then stop further processing. + return() +endif() + #Set the appropriate MCUBoot path if (MCUBOOT_REPO STREQUAL "TF-M") get_filename_component(MCUBOOT_DIR ${CMAKE_CURRENT_LIST_DIR} ABSOLUTE) @@ -31,14 +39,6 @@ else() endif() endif() -#Check input variables -if (NOT DEFINED BL2) - message(FATAL ERROR "Incomplete build configuration: BL2 is undefined.") -elseif(NOT BL2) - #If mcuboot is not need to be built then stop further processing. - return() -endif() - if (NOT DEFINED MBEDCRYPTO_C_FLAGS_BL2) message(FATAL_ERROR "Incomplete build configuration: MBEDCRYPTO_C_FLAGS_BL2 is undefined.") endif() |