diff options
author | John Tsichritzis <john.tsichritzis@arm.com> | 2019-05-07 14:09:09 +0100 |
---|---|---|
committer | John Tsichritzis <john.tsichritzis@arm.com> | 2019-05-09 11:31:14 +0100 |
commit | dfc66a178bf45beb18f5f572123a6b1e51b4059f (patch) | |
tree | 8d75d06c234f9ebc5a56a81335168666477dd46e /Makefile | |
parent | f2f0846598909cb905de5d4380bac5b1d4c89d09 (diff) |
Add Makefile check for PAuth and AArch64
Pointer authentication is supported only in AArch64. A relevant check is
added for that in the Makefile.
Change-Id: I021ba65a9bd5764fd33292bee42617015e04a870
Signed-off-by: John Tsichritzis <john.tsichritzis@arm.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -454,14 +454,20 @@ endif # registers associated to it are also saved and restored. Not doing it would # leak the value of the key used by EL3 to EL1 and S-EL1. ifeq ($(ENABLE_PAUTH),1) - ifeq ($(CTX_INCLUDE_PAUTH_REGS),0) + ifneq ($(ARCH),aarch64) + $(error ENABLE_PAUTH=1 requires AArch64) + else ifeq ($(CTX_INCLUDE_PAUTH_REGS),0) $(error ENABLE_PAUTH=1 requires CTX_INCLUDE_PAUTH_REGS=1) else $(info ENABLE_PAUTH and CTX_INCLUDE_PAUTH_REGS are experimental features) endif else ifeq ($(CTX_INCLUDE_PAUTH_REGS),1) - $(info CTX_INCLUDE_PAUTH_REGS is an experimental feature) + ifneq ($(ARCH),aarch64) + $(error CTX_INCLUDE_PAUTH_REGS=1 requires AArch64) + else + $(info CTX_INCLUDE_PAUTH_REGS is an experimental feature) + endif endif endif |