Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 1 | From 2f8b0cc6be3787717247d1c02a45181a5ac6f125 Mon Sep 17 00:00:00 2001 |
| 2 | From: Arunachalam Ganapathy <arunachalam.ganapathy@arm.com> |
| 3 | Date: Mon, 11 Apr 2022 14:36:54 +0100 |
| 4 | Subject: [PATCH 2/7] Makefile: add trusty_sp_fw_config build option |
| 5 | |
| 6 | Signed-off-by: Arunachalam Ganapathy <arunachalam.ganapathy@arm.com> |
| 7 | Change-Id: Ief90ae9113d32265ee2200f35f3e517b7b9a4bea |
| 8 | Upstream-Status: Pending [Not submitted to upstream yet] |
| 9 | --- |
| 10 | Makefile | 4 ++++ |
| 11 | docs/plat/arm/arm-build-options.rst | 4 ++++ |
| 12 | 2 files changed, 8 insertions(+) |
| 13 | |
| 14 | diff --git a/Makefile b/Makefile |
| 15 | index 3941f8698..a20d647a2 100644 |
| 16 | --- a/Makefile |
| 17 | +++ b/Makefile |
| 18 | @@ -531,6 +531,10 @@ ifneq (${SPD},none) |
| 19 | DTC_CPPFLAGS += -DOPTEE_SP_FW_CONFIG |
| 20 | endif |
| 21 | |
| 22 | + ifeq ($(findstring trusty_sp,$(ARM_SPMC_MANIFEST_DTS)),trusty_sp) |
| 23 | + DTC_CPPFLAGS += -DTRUSTY_SP_FW_CONFIG |
| 24 | + endif |
| 25 | + |
| 26 | ifeq ($(TS_SP_FW_CONFIG),1) |
| 27 | DTC_CPPFLAGS += -DTS_SP_FW_CONFIG |
| 28 | endif |
| 29 | diff --git a/docs/plat/arm/arm-build-options.rst b/docs/plat/arm/arm-build-options.rst |
| 30 | index 339ebbe33..3c9a41fb8 100644 |
| 31 | --- a/docs/plat/arm/arm-build-options.rst |
| 32 | +++ b/docs/plat/arm/arm-build-options.rst |
| 33 | @@ -107,6 +107,10 @@ Arm Platform Build Options |
| 34 | device tree. This flag is defined only when ``ARM_SPMC_MANIFEST_DTS`` manifest |
| 35 | file name contains pattern optee_sp. |
| 36 | |
| 37 | +- ``TRUSTY_SP_FW_CONFIG``: DTC build flag to include Trusty as SP in |
| 38 | + tb_fw_config device tree. This flag is defined only when |
| 39 | + ``ARM_SPMC_MANIFEST_DTS`` manifest file name contains pattern trusty_sp. |
| 40 | + |
| 41 | - ``TS_SP_FW_CONFIG``: DTC build flag to include Trusted Services (Crypto and |
| 42 | internal-trusted-storage) as SP in tb_fw_config device tree. |
| 43 | |
| 44 | -- |
| 45 | 2.30.2 |
| 46 | |