mpmm.mk 862 B

1234567891011121314151617181920212223242526272829
  1. #
  2. # Copyright (c) 2021, Arm Limited. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. include lib/extensions/amu/amu.mk
  7. include lib/fconf/fconf.mk
  8. ifneq (${ENABLE_MPMM},0)
  9. ifneq ($(ARCH),aarch64)
  10. $(error MPMM support (`ENABLE_MPMM`) can only be enabled in AArch64 images (`ARCH`))
  11. endif
  12. ifeq (${ENABLE_AMU_AUXILIARY_COUNTERS},0) # For MPMM gear AMU counters
  13. $(error MPMM support (`ENABLE_MPM`) requires auxiliary AMU counter support (`ENABLE_AMU_AUXILIARY_COUNTERS`))
  14. endif
  15. endif
  16. MPMM_SOURCES := lib/mpmm/mpmm.c
  17. MPMM_SOURCES += ${AMU_SOURCES}
  18. ifneq (${ENABLE_MPMM_FCONF},0)
  19. ifeq (${ENABLE_MPMM},0)
  20. $(error MPMM FCONF support (`ENABLE_MPMM_FCONF`) requires MPMM support (`ENABLE_MPMM`))
  21. endif
  22. MPMM_SOURCES += ${FCONF_MPMM_SOURCES}
  23. endif