ro_xlat_tables.mk 1.5 KB

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