mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 18:14:24 +00:00

So far we have the ENABLE_AMU build option to include AMU register handling code for enabling and context switch. There is also an ENABLE_FEAT_AMUv1 option, solely to protect the HAFGRTR_EL2 system register handling. The latter needs some alignment with the new feature scheme, but it conceptually overlaps with the ENABLE_AMU option. Since there is no real need for two separate options, unify both into a new ENABLE_FEAT_AMU name in a first step. This is mostly just renaming at this point, a subsequent patch will make use of the new feature handling scheme. Change-Id: I97d8a55bdee2ed1e1509fa9f2b09fd0bdd82736e Signed-off-by: Andre Przywara <andre.przywara@arm.com>
24 lines
759 B
Makefile
24 lines
759 B
Makefile
#
|
|
# Copyright (c) 2021, Arm Limited. All rights reserved.
|
|
#
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
#
|
|
|
|
include lib/fconf/fconf.mk
|
|
|
|
AMU_SOURCES := lib/extensions/amu/${ARCH}/amu.c \
|
|
lib/extensions/amu/${ARCH}/amu_helpers.S
|
|
|
|
ifneq (${ENABLE_AMU_AUXILIARY_COUNTERS},0)
|
|
ifeq (${ENABLE_FEAT_AMU},0)
|
|
$(error AMU auxiliary counter support (`ENABLE_AMU_AUXILIARY_COUNTERS`) requires AMU support (`ENABLE_FEAT_AMU`))
|
|
endif
|
|
endif
|
|
|
|
ifneq (${ENABLE_AMU_FCONF},0)
|
|
ifeq (${ENABLE_AMU_AUXILIARY_COUNTERS},0)
|
|
$(error AMU FCONF support (`ENABLE_AMU_FCONF`) is not necessary when auxiliary counter support (`ENABLE_AMU_AUXILIARY_COUNTERS`) is disabled)
|
|
endif
|
|
|
|
AMU_SOURCES += ${FCONF_AMU_SOURCES}
|
|
endif
|