summaryrefslogtreecommitdiff
path: root/lib/xlat_tables_v2/ro_xlat_tables.mk
blob: fb8a426bf30dcda7d3bf290552ecf5f7c3d075f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#
# Copyright (c) 2020-2022, ARM Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#

ifeq (${USE_DEBUGFS}, 1)
    $(error "Debugfs requires functionality from the dynamic translation \
             library and is incompatible with ALLOW_RO_XLAT_TABLES.")
endif

ifeq (${ARCH},aarch32)
    ifeq (${RESET_TO_SP_MIN},1)
       $(error "RESET_TO_SP_MIN requires functionality from the dynamic \
                translation library and is incompatible with \
                ALLOW_RO_XLAT_TABLES.")
    endif
else # if AArch64
    ifeq (${PLAT},tegra)
        $(error "Tegra requires functionality from the dynamic translation \
                 library and is incompatible with ALLOW_RO_XLAT_TABLES.")
    endif
    ifeq (${RESET_TO_BL31},1)
        $(error "RESET_TO_BL31 requires functionality from the dynamic \
                 translation library and is incompatible with \
                 ALLOW_RO_XLAT_TABLES.")
    endif
    ifeq (${SPD},trusty)
        $(error "Trusty requires functionality from the dynamic translation \
                 library and is incompatible with ALLOW_RO_XLAT_TABLES.")
    endif
    ifeq (${SPM_MM},1)
        $(error "SPM_MM requires functionality to change memory region \
                 attributes, which is not possible once the translation tables \
                 have been made read-only.")
    endif
    ifeq (${SPMC_AT_EL3},1)
        $(error "EL3 SPMC requires functionality from the dynamic translation \
                 library and is incompatible with ALLOW_RO_XLAT_TABLES.")
    endif
endif