aboutsummaryrefslogtreecommitdiff
path: root/environments/opteesp/ExportSp.cmake
diff options
context:
space:
mode:
authorBalint Dobszay <balint.dobszay@arm.com>2021-03-29 18:47:50 +0200
committerBalint Dobszay <balint.dobszay@arm.com>2021-04-13 18:52:10 +0200
commit35c6d643b5f0c0387702e22bf742dd4878ca5ddd (patch)
tree8bcebacc781994ce792595ce51a422b43c7963dc /environments/opteesp/ExportSp.cmake
parent0fdceeabdc4d29317dbcd2607ea2b5e78179e1f5 (diff)
downloadtrusted-services-35c6d643b5f0c0387702e22bf742dd4878ca5ddd.tar.gz
Create and export SP layout JSON
Configure a JSON file for each SP and export it to the install dir. The individual files should be merged by the integrator to form the SP_LAYOUT_FILE JSON used by TF-A to create the SP packages. Signed-off-by: Balint Dobszay <balint.dobszay@arm.com> Change-Id: I63674e8e584dd3285490f3be51c228718f39a998
Diffstat (limited to 'environments/opteesp/ExportSp.cmake')
-rw-r--r--environments/opteesp/ExportSp.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/environments/opteesp/ExportSp.cmake b/environments/opteesp/ExportSp.cmake
index 23e03ac..c8d74fa 100644
--- a/environments/opteesp/ExportSp.cmake
+++ b/environments/opteesp/ExportSp.cmake
@@ -34,6 +34,10 @@ configure_file(${PARENT_LIST_DIR}/default_${EXPORT_SP_NAME}.dts.in
${CMAKE_CURRENT_BINARY_DIR}/${EXPORT_SP_UUID}.dts @ONLY NEWLINE_STYLE UNIX)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${EXPORT_SP_UUID}.dts DESTINATION ${TS_ENV}/manifest)
+configure_file(${CMAKE_CURRENT_LIST_DIR}/sp_pkg.json.in
+ ${CMAKE_CURRENT_BINARY_DIR}/${EXPORT_SP_NAME}.json @ONLY NEWLINE_STYLE UNIX)
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${EXPORT_SP_NAME}.json DESTINATION ${TS_ENV}/json)
+
unset(DTS_TAG)
unset(DTS_NODE)
unset(PARENT_LIST_DIR)