aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlexei Fedorov <Alexei.Fedorov@arm.com>2020-06-19 14:33:49 +0100
committerAlexei Fedorov <Alexei.Fedorov@arm.com>2020-06-19 14:33:49 +0100
commit3768fecf8f70443a8d3a8b6e3b3a7aedfad84f57 (patch)
tree6ce345ebee14eaabb26ddbe589e280e38d926efc /Makefile
parent9935047b2086faa3bf3ccf0b95a76510eb5a160b (diff)
downloadarm-trusted-firmware-3768fecf8f70443a8d3a8b6e3b3a7aedfad84f57.tar.gz
TF-A: Add ARMv8.5 'bti' build option
This patch adds BRANCH_PROTECTION = 4 'bti' build option which turns on branch target identification mechanism. Change-Id: I32464a6b51726a100519f449a95aea5331f0e82d Signed-off-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index bc5604be2..160cd44cc 100644
--- a/Makefile
+++ b/Makefile
@@ -121,6 +121,10 @@ else ifeq (${BRANCH_PROTECTION},3)
# Extend the signing to include leaf functions
BP_OPTION := pac-ret+leaf
ENABLE_PAUTH := 1
+else ifeq (${BRANCH_PROTECTION},4)
+ # Turn on branch target identification mechanism
+ BP_OPTION := bti
+ ENABLE_BTI := 1
else
$(error Unknown BRANCH_PROTECTION value ${BRANCH_PROTECTION})
endif