xref: /rk3399_ARM-atf/lib/xlat_tables_v2/ro_xlat_tables.mk (revision 60e8f3cfd5910c59c9a573ce05bd61091336b09a)
1*60e8f3cfSPetre-Ionut Tudor#
2*60e8f3cfSPetre-Ionut Tudor# Copyright (c) 2020, ARM Limited. All rights reserved.
3*60e8f3cfSPetre-Ionut Tudor#
4*60e8f3cfSPetre-Ionut Tudor# SPDX-License-Identifier: BSD-3-Clause
5*60e8f3cfSPetre-Ionut Tudor#
6*60e8f3cfSPetre-Ionut Tudor
7*60e8f3cfSPetre-Ionut Tudorifeq (${USE_DEBUGFS}, 1)
8*60e8f3cfSPetre-Ionut Tudor    $(error "Debugfs requires functionality from the dynamic translation \
9*60e8f3cfSPetre-Ionut Tudor             library and is incompatible with ALLOW_RO_XLAT_TABLES.")
10*60e8f3cfSPetre-Ionut Tudorendif
11*60e8f3cfSPetre-Ionut Tudor
12*60e8f3cfSPetre-Ionut Tudorifeq (${ARCH},aarch32)
13*60e8f3cfSPetre-Ionut Tudor    ifeq (${RESET_TO_SP_MIN},1)
14*60e8f3cfSPetre-Ionut Tudor       $(error "RESET_TO_SP_MIN requires functionality from the dynamic \
15*60e8f3cfSPetre-Ionut Tudor                translation library and is incompatible with \
16*60e8f3cfSPetre-Ionut Tudor                ALLOW_RO_XLAT_TABLES.")
17*60e8f3cfSPetre-Ionut Tudor    endif
18*60e8f3cfSPetre-Ionut Tudorelse # if AArch64
19*60e8f3cfSPetre-Ionut Tudor    ifeq (${PLAT},tegra)
20*60e8f3cfSPetre-Ionut Tudor        $(error "Tegra requires functionality from the dynamic translation \
21*60e8f3cfSPetre-Ionut Tudor                 library and is incompatible with ALLOW_RO_XLAT_TABLES.")
22*60e8f3cfSPetre-Ionut Tudor    endif
23*60e8f3cfSPetre-Ionut Tudor    ifeq (${RESET_TO_BL31},1)
24*60e8f3cfSPetre-Ionut Tudor        $(error "RESET_TO_BL31 requires functionality from the dynamic \
25*60e8f3cfSPetre-Ionut Tudor                 translation library and is incompatible with \
26*60e8f3cfSPetre-Ionut Tudor                 ALLOW_RO_XLAT_TABLES.")
27*60e8f3cfSPetre-Ionut Tudor    endif
28*60e8f3cfSPetre-Ionut Tudor    ifeq (${SPD},trusty)
29*60e8f3cfSPetre-Ionut Tudor        $(error "Trusty requires functionality from the dynamic translation \
30*60e8f3cfSPetre-Ionut Tudor                 library and is incompatible with ALLOW_RO_XLAT_TABLES.")
31*60e8f3cfSPetre-Ionut Tudor    endif
32*60e8f3cfSPetre-Ionut Tudor    ifeq (${SPM_MM},1)
33*60e8f3cfSPetre-Ionut Tudor        $(error "SPM_MM requires functionality to change memory region \
34*60e8f3cfSPetre-Ionut Tudor                 attributes, which is not possible once the translation tables \
35*60e8f3cfSPetre-Ionut Tudor                 have been made read-only.")
36*60e8f3cfSPetre-Ionut Tudor    endif
37*60e8f3cfSPetre-Ionut Tudorendif
38