feat(mte): build secure targets with MTE enabled
Enable Memory Tagging Extension for secure targets. The option results
in compile flag -march=armv8.5-a+mte and -fsanitize=memtag being added.
Signed-off-by: Maksims Svecovs <maksims.svecovs@arm.com>
Change-Id: Id4fcf6d04c8e85d138b874ba7de05028ddab8d84
diff --git a/BUILD.gn b/BUILD.gn
index 5d84d13..6b9b383 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -83,6 +83,7 @@
pl011_base_address = "0x1c090000"
smmu_base_address = "0x2b400000"
smmu_memory_size = "0x100000"
+ enable_mte = "1"
}
}
@@ -110,6 +111,7 @@
smmu_base_address = "0x2b400000"
smmu_memory_size = "0x100000"
enable_vhe = "1"
+ enable_mte = "1"
}
}
@@ -244,5 +246,6 @@
plat_prng = "//src/arch/aarch64/plat/prng:prng"
secure_world = "1"
pl011_base_address = "0x7ff80000"
+ enable_mte = "1"
}
}