Debian Codegraph @

drivers/nxp/gic/gic.mk

raw
1 # Copyright 2021 NXP
2 #
3 # SPDX-License-Identifier: BSD-3-Clause
4 #
5 #
6 #------------------------------------------------------------------------------
7 #
8 # Select the GIC files
9 #
10 # -----------------------------------------------------------------------------
11
12 ifeq (${ADD_GIC},)
13 ADD_GIC := 1
14 ifeq ($(GIC), GIC400)
15 include drivers/arm/gic/v2/gicv2.mk
16 GIC_SOURCES += ${GICV2_SOURCES}
17 GIC_SOURCES += ${PLAT_DRIVERS_PATH}/gic/ls_gicv2.c \
18 plat/common/plat_gicv2.c
19
20 PLAT_INCLUDES += -I${PLAT_DRIVERS_INCLUDE_PATH}/gic/gicv2
21 else
22 ifeq ($(GIC), GIC500)
23 include drivers/arm/gic/v3/gicv3.mk
24 GIC_SOURCES += ${GICV3_SOURCES}
25 GIC_SOURCES += ${PLAT_DRIVERS_PATH}/gic/ls_gicv3.c \
26 plat/common/plat_gicv3.c
27
28 PLAT_INCLUDES += -I${PLAT_DRIVERS_INCLUDE_PATH}/gic/gicv3
29 else
30 $(error -> GIC type not set!)
31 endif
32 endif
33
34 ifeq (${BL_COMM_GIC_NEEDED},yes)
35 BL_COMMON_SOURCES += ${GIC_SOURCES}
36 else
37 ifeq (${BL2_GIC_NEEDED},yes)
38 BL2_SOURCES += ${GIC_SOURCES}
39 endif
40 ifeq (${BL31_GIC_NEEDED},yes)
41 BL31_SOURCES += ${GIC_SOURCES}
42 endif
43 endif
44 endif
45
46 # -----------------------------------------------------------------------------