amu.mk 759 B

123456789101112131415161718192021222324
  1. #
  2. # Copyright (c) 2021, Arm Limited. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. include lib/fconf/fconf.mk
  7. AMU_SOURCES := lib/extensions/amu/${ARCH}/amu.c \
  8. lib/extensions/amu/${ARCH}/amu_helpers.S
  9. ifneq (${ENABLE_AMU_AUXILIARY_COUNTERS},0)
  10. ifeq (${ENABLE_FEAT_AMU},0)
  11. $(error AMU auxiliary counter support (`ENABLE_AMU_AUXILIARY_COUNTERS`) requires AMU support (`ENABLE_FEAT_AMU`))
  12. endif
  13. endif
  14. ifneq (${ENABLE_AMU_FCONF},0)
  15. ifeq (${ENABLE_AMU_AUXILIARY_COUNTERS},0)
  16. $(error AMU FCONF support (`ENABLE_AMU_FCONF`) is not necessary when auxiliary counter support (`ENABLE_AMU_AUXILIARY_COUNTERS`) is disabled)
  17. endif
  18. AMU_SOURCES += ${FCONF_AMU_SOURCES}
  19. endif