aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Marinho <jose.marinho@arm.com>2019-10-17 15:41:03 +0100
committerOlivier Deprez <olivier.deprez@arm.com>2020-07-22 15:38:20 +0000
commit815fd951e644bd7fa81454156644521422ecb7e0 (patch)
tree451e917448c943c3d3088dc7cc2a5c72637d16b0
parente4efcc3ffb47ed4d6104b264a11165db42cafcc9 (diff)
downloadhafnium-815fd951e644bd7fa81454156644521422ecb7e0.tar.gz
Enable Secure Hf build
Change-Id: I1785505cab393b35a5d4e583851b4e4f5bd1d58c Signed-off-by: Jose Marinho <jose.marinho@arm.com>
m---------project/reference0
-rw-r--r--src/arch/aarch64/BUILD.gn6
-rw-r--r--src/arch/aarch64/args.gni2
3 files changed, 8 insertions, 0 deletions
diff --git a/project/reference b/project/reference
-Subproject 23417d8a645efd2b8c79fb1d2c3ffb250a415a9
+Subproject 69cd27d37861b048885be9df9c6bcdf234687e9
diff --git a/src/arch/aarch64/BUILD.gn b/src/arch/aarch64/BUILD.gn
index 6e6223f..728e35b 100644
--- a/src/arch/aarch64/BUILD.gn
+++ b/src/arch/aarch64/BUILD.gn
@@ -4,8 +4,14 @@
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/BSD-3-Clause.
+import("args.gni")
+
config("config") {
include_dirs = [ "." ]
+
+ assert(secure_world == "0" || secure_world == "1",
+ "secure world set to <${secure_world}>")
+ defines = [ "SECURE_WORLD=${secure_world}" ]
}
# Implementation of the arch interface for aarch64.
diff --git a/src/arch/aarch64/args.gni b/src/arch/aarch64/args.gni
index 662e904..1430f85 100644
--- a/src/arch/aarch64/args.gni
+++ b/src/arch/aarch64/args.gni
@@ -10,4 +10,6 @@ declare_args() {
# SMC hooks to be used for the platform, specified as build target.
plat_smc = "//src/arch/aarch64/plat/smc:absent"
+
+ secure_world = "0"
}