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
diff --git a/environments/opteesp/sp.mk.in b/environments/opteesp/sp.mk.in
index c0439f8..c44ad59 100644
--- a/environments/opteesp/sp.mk.in
+++ b/environments/opteesp/sp.mk.in
@@ -13,5 +13,9 @@
@EXPORT_SP_UUID@-included=y
endif
+ifeq (embedded,${SP_PACKAGING_METHOD})
OPTEE_OS_COMMON_EXTRA_FLAGS+=EARLY_TA_PATHS+=${TS_INSTALL_PREFIX}/opteesp/bin/@EXPORT_SP_UUID@.stripped.elf
TS_SP_DTSI_LIST+="\\n\#include \"${TS_INSTALL_PREFIX}/opteesp/manifest/@EXPORT_SP_UUID@.dtsi\""
+else ifeq (fip,${SP_PACKAGING_METHOD})
+TS_SP_JSON_LIST+=${TS_INSTALL_PREFIX}/opteesp/json/@EXPORT_SP_NAME@.json
+endif