Skip to content

Commit

Permalink
blinky: Remove TF-M update partition
Browse files Browse the repository at this point in the history
Since blinky example doesn't suppport firmware update, disable the
firmware update partition and other relevant config options.

Signed-off-by: Devaraj Ranganna <[email protected]>
  • Loading branch information
urutva committed Aug 22, 2023
1 parent 5f807f3 commit 7d935c4
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions Projects/blinky/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,10 @@ set(ARM_CORSTONE_BSP_TARGET_PLATFORM "corstone300" CACHE STRING "Featured Refere
# Configure target
if (${ARM_CORSTONE_BSP_TARGET_PLATFORM} STREQUAL "corstone300")
set(TFM_PLATFORM_LOCAL_PATH "arm/mps3/an552")
set(TFM_PLATFORM_UPGRADE_STRATEGY "SWAP_USING_SCRATCH")
set(TFM_PLATFORM_CONFIRM_IMAGE ON)
else()
message(FATAL_ERROR "Invalid ARM_CORSTONE_BSP_TARGET_PLATFORM (${ARM_CORSTONE_BSP_TARGET_PLATFORM}) set. It should be corstone300")
endif()

set(MCUBOOT_IMAGE_VERSION_NS "0.0.0" )

# Extra arguments for TF-M and ML
set(TFM_CMAKE_ARGS
-DPROJECT_CONFIG_HEADER_FILE=${PRJ_DIR}/Config/tfm-config/project_config.h
Expand All @@ -32,17 +28,11 @@ set(TFM_CMAKE_ARGS
-DMCUBOOT_LOG_LEVEL=INFO
-DTFM_SPM_LOG_LEVEL=TFM_SPM_LOG_LEVEL_INFO
-DTFM_PARTITION_CRYPTO=ON
-DTFM_PARTITION_FIRMWARE_UPDATE=ON
-DTFM_PARTITION_INITIAL_ATTESTATION=ON
-DTFM_PARTITION_INTERNAL_TRUSTED_STORAGE=ON
-DTFM_PARTITION_PLATFORM=ON
-DTFM_PARTITION_PROTECTED_STORAGE=ON
-DTFM_PLATFORM=${TFM_PLATFORM_LOCAL_PATH}
-DPLATFORM_HAS_FIRMWARE_UPDATE_SUPPORT=ON
-DMCUBOOT_DATA_SHARING=ON
-DMCUBOOT_CONFIRM_IMAGE=${TFM_PLATFORM_CONFIRM_IMAGE}
-DMCUBOOT_UPGRADE_STRATEGY=${TFM_PLATFORM_UPGRADE_STRATEGY}
-DMCUBOOT_IMAGE_VERSION_NS=${MCUBOOT_IMAGE_VERSION_NS}
)

# Configuration of executable
Expand Down

0 comments on commit 7d935c4

Please sign in to comment.