xref: /rk3399_ARM-atf/lib/xlat_tables_v2/ro_xlat_tables.mk (revision 4c700c1563aff7b51df95f17e952e050b9b4e37f)
160e8f3cfSPetre-Ionut Tudor#
2*4c700c15SGovindraj Raja# Copyright (c) 2020-2022, Arm Limited. All rights reserved.
360e8f3cfSPetre-Ionut Tudor#
460e8f3cfSPetre-Ionut Tudor# SPDX-License-Identifier: BSD-3-Clause
560e8f3cfSPetre-Ionut Tudor#
660e8f3cfSPetre-Ionut Tudor
760e8f3cfSPetre-Ionut Tudorifeq (${USE_DEBUGFS}, 1)
860e8f3cfSPetre-Ionut Tudor    $(error "Debugfs requires functionality from the dynamic translation \
960e8f3cfSPetre-Ionut Tudor             library and is incompatible with ALLOW_RO_XLAT_TABLES.")
1060e8f3cfSPetre-Ionut Tudorendif
1160e8f3cfSPetre-Ionut Tudor
1260e8f3cfSPetre-Ionut Tudorifeq (${ARCH},aarch32)
1360e8f3cfSPetre-Ionut Tudor    ifeq (${RESET_TO_SP_MIN},1)
1460e8f3cfSPetre-Ionut Tudor       $(error "RESET_TO_SP_MIN requires functionality from the dynamic \
1560e8f3cfSPetre-Ionut Tudor                translation library and is incompatible with \
1660e8f3cfSPetre-Ionut Tudor                ALLOW_RO_XLAT_TABLES.")
1760e8f3cfSPetre-Ionut Tudor    endif
1860e8f3cfSPetre-Ionut Tudorelse # if AArch64
1960e8f3cfSPetre-Ionut Tudor    ifeq (${PLAT},tegra)
2060e8f3cfSPetre-Ionut Tudor        $(error "Tegra requires functionality from the dynamic translation \
2160e8f3cfSPetre-Ionut Tudor                 library and is incompatible with ALLOW_RO_XLAT_TABLES.")
2260e8f3cfSPetre-Ionut Tudor    endif
2360e8f3cfSPetre-Ionut Tudor    ifeq (${RESET_TO_BL31},1)
2460e8f3cfSPetre-Ionut Tudor        $(error "RESET_TO_BL31 requires functionality from the dynamic \
2560e8f3cfSPetre-Ionut Tudor                 translation library and is incompatible with \
2660e8f3cfSPetre-Ionut Tudor                 ALLOW_RO_XLAT_TABLES.")
2760e8f3cfSPetre-Ionut Tudor    endif
2860e8f3cfSPetre-Ionut Tudor    ifeq (${SPD},trusty)
2960e8f3cfSPetre-Ionut Tudor        $(error "Trusty requires functionality from the dynamic translation \
3060e8f3cfSPetre-Ionut Tudor                 library and is incompatible with ALLOW_RO_XLAT_TABLES.")
3160e8f3cfSPetre-Ionut Tudor    endif
3260e8f3cfSPetre-Ionut Tudor    ifeq (${SPM_MM},1)
3360e8f3cfSPetre-Ionut Tudor        $(error "SPM_MM requires functionality to change memory region \
3460e8f3cfSPetre-Ionut Tudor                 attributes, which is not possible once the translation tables \
3560e8f3cfSPetre-Ionut Tudor                 have been made read-only.")
3660e8f3cfSPetre-Ionut Tudor    endif
3770d986ddSSayanta Pattanayak    ifeq (${SPMC_AT_EL3},1)
3870d986ddSSayanta Pattanayak        $(error "EL3 SPMC requires functionality from the dynamic translation \
3970d986ddSSayanta Pattanayak                 library and is incompatible with ALLOW_RO_XLAT_TABLES.")
4070d986ddSSayanta Pattanayak    endif
4160e8f3cfSPetre-Ionut Tudorendif
42