aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorSherry Zhang <sherry.zhang2@arm.com>2021-01-07 14:19:41 +0800
committerDavid Hu <david.hu@arm.com>2021-03-19 08:03:00 +0100
commit07b42416f64dab413579ee5a63cbd22f5117cb8e (patch)
treef01fd5fc27dc060f6072f2dcabdf43e65f466ad1 /cmake
parent973c4f4c51a7998e70a4b92adc20d7a3091a048f (diff)
downloadtrusted-firmware-m-07b42416f64dab413579ee5a63cbd22f5117cb8e.tar.gz
FWU: Add Firmware Update partition
Firmware Update(FWU) partition provides the functionality of updating firmware images. This patch implemented the partition in Library mode. Change-Id: I736477549b055c64cd8106ad57c3ad7b1b2007ee Signed-off-by: Sherry Zhang <sherry.zhang2@arm.com>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/install.cmake14
1 files changed, 14 insertions, 0 deletions
diff --git a/cmake/install.cmake b/cmake/install.cmake
index ab6292a19..f13d3bf52 100644
--- a/cmake/install.cmake
+++ b/cmake/install.cmake
@@ -111,6 +111,13 @@ if(TFM_PARTITION_PLATFORM OR FORWARD_PROT_MSG)
DESTINATION ${INSTALL_INTERFACE_INC_DIR})
endif()
+if(TFM_PARTITION_FIRMWARE_UPDATE)
+ install(FILES ${INTERFACE_INC_DIR}/psa/update.h
+ DESTINATION ${INSTALL_INTERFACE_INC_DIR}/psa)
+ install(FILES ${INTERFACE_INC_DIR}/tfm_fwu_defs.h
+ DESTINATION ${INSTALL_INTERFACE_INC_DIR})
+endif()
+
####################### export sources #########################################
if (TFM_MULTI_CORE_TOPOLOGY)
@@ -220,3 +227,10 @@ if(BL2)
DESTINATION ${INSTALL_IMAGE_SIGNING_DIR}/keys)
endif()
endif()
+
+if(TFM_PARTITION_FIRMWARE_UPDATE)
+ if(NOT TFM_PSA_API)
+ install(FILES ${INTERFACE_SRC_DIR}/tfm_firmware_update_func_api.c
+ DESTINATION ${INSTALL_INTERFACE_SRC_DIR})
+ endif()
+endif()