1*91f16700Schasinglulu# 2*91f16700Schasinglulu# Copyright (c) 2020-2022, Arm Limited. All rights reserved. 3*91f16700Schasinglulu# 4*91f16700Schasinglulu# SPDX-License-Identifier: BSD-3-Clause 5*91f16700Schasinglulu# 6*91f16700Schasinglulu 7*91f16700Schasingluluifeq (${USE_DEBUGFS}, 1) 8*91f16700Schasinglulu $(error "Debugfs requires functionality from the dynamic translation \ 9*91f16700Schasinglulu library and is incompatible with ALLOW_RO_XLAT_TABLES.") 10*91f16700Schasingluluendif 11*91f16700Schasinglulu 12*91f16700Schasingluluifeq (${ARCH},aarch32) 13*91f16700Schasinglulu ifeq (${RESET_TO_SP_MIN},1) 14*91f16700Schasinglulu $(error "RESET_TO_SP_MIN requires functionality from the dynamic \ 15*91f16700Schasinglulu translation library and is incompatible with \ 16*91f16700Schasinglulu ALLOW_RO_XLAT_TABLES.") 17*91f16700Schasinglulu endif 18*91f16700Schasingluluelse # if AArch64 19*91f16700Schasinglulu ifeq (${PLAT},tegra) 20*91f16700Schasinglulu $(error "Tegra requires functionality from the dynamic translation \ 21*91f16700Schasinglulu library and is incompatible with ALLOW_RO_XLAT_TABLES.") 22*91f16700Schasinglulu endif 23*91f16700Schasinglulu ifeq (${RESET_TO_BL31},1) 24*91f16700Schasinglulu $(error "RESET_TO_BL31 requires functionality from the dynamic \ 25*91f16700Schasinglulu translation library and is incompatible with \ 26*91f16700Schasinglulu ALLOW_RO_XLAT_TABLES.") 27*91f16700Schasinglulu endif 28*91f16700Schasinglulu ifeq (${SPD},trusty) 29*91f16700Schasinglulu $(error "Trusty requires functionality from the dynamic translation \ 30*91f16700Schasinglulu library and is incompatible with ALLOW_RO_XLAT_TABLES.") 31*91f16700Schasinglulu endif 32*91f16700Schasinglulu ifeq (${SPM_MM},1) 33*91f16700Schasinglulu $(error "SPM_MM requires functionality to change memory region \ 34*91f16700Schasinglulu attributes, which is not possible once the translation tables \ 35*91f16700Schasinglulu have been made read-only.") 36*91f16700Schasinglulu endif 37*91f16700Schasinglulu ifeq (${SPMC_AT_EL3},1) 38*91f16700Schasinglulu $(error "EL3 SPMC requires functionality from the dynamic translation \ 39*91f16700Schasinglulu library and is incompatible with ALLOW_RO_XLAT_TABLES.") 40*91f16700Schasinglulu endif 41*91f16700Schasingluluendif 42