Debian Codegraph @

drivers/nxp/gpio/gpio.mk

raw
1 #
2 # Copyright 2021 NXP
3 #
4 # SPDX-License-Identifier: BSD-3-Clause
5 #
6 #-----------------------------------------------------------------------------
7
8 ifeq (${GPIO_ADDED},)
9
10 GPIO_ADDED := 1
11
12 PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/gpio
13
14 GPIO_SOURCES := $(PLAT_DRIVERS_PATH)/gpio/nxp_gpio.c
15
16 ifeq (${BL_COMM_GPIO_NEEDED},yes)
17 BL_COMMON_SOURCES += ${GPIO_SOURCES}
18 else
19 ifeq (${BL2_GPIO_NEEDED},yes)
20 BL2_SOURCES += ${GPIO_SOURCES}
21 endif
22 ifeq (${BL31_GPIO_NEEDED},yes)
23 BL31_SOURCES += ${GPIO_SOURCES}
24 endif
25 endif
26
27 endif
28 #------------------------------------------------