blob: 984e2977d2a7e00677aedf252a2931907d20cbe6 [file] [log] [blame]
Patrick Williams975a06f2022-10-21 14:42:47 -05001From 07ad7e1f7ba06045bf331d5b73a6adf38a098fb7 Mon Sep 17 00:00:00 2001
2From: Rui Miguel Silva <rui.silva@linaro.org>
3Date: Tue, 11 Oct 2022 10:46:10 +0100
4Subject: [PATCH 19/19] plat: corstone1000: change default smm values
5
6Smm gateway uses SE proxy to route the calls for any NV
7storage so set the NV_STORE_SN.
8Change the storage index uid because TF-M in the secure
9enclave reserves the default value (0x1) to some internal
10operation.
11Increase the maximum number of uefi variables to cope with all
12the needs for testing and certification
13
14Upstream-Status: Pending
15Signed-off-by: Vishnu Banavath <vishnu.banavath@arm.com>
16Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
17---
18 platform/providers/arm/corstone1000/platform.cmake | 6 ++++++
19 1 file changed, 6 insertions(+)
20
21diff --git a/platform/providers/arm/corstone1000/platform.cmake b/platform/providers/arm/corstone1000/platform.cmake
22index 51e5faa3e4d8..04b629a81906 100644
23--- a/platform/providers/arm/corstone1000/platform.cmake
24+++ b/platform/providers/arm/corstone1000/platform.cmake
25@@ -10,3 +10,9 @@
26 include(${TS_ROOT}/platform/drivers/arm/mhu_driver/component.cmake)
27
28 add_compile_definitions(MBEDTLS_ECP_DP_SECP521R1_ENABLED)
29+
30+target_compile_definitions(${TGT} PRIVATE
31+ SMM_GATEWAY_NV_STORE_SN="sn:ffa:46bb39d1-b4d9-45b5-88ff-040027dab249:1"
32+ SMM_VARIABLE_INDEX_STORAGE_UID=0x787
33+ SMM_GATEWAY_MAX_UEFI_VARIABLES=100
34+)
35--
362.38.0
37