blob: 61d1850458b761eb9faaa2832ebcbb441d108671 [file] [log] [blame]
Pankaj Gupta74f7b142020-12-09 14:02:38 +05301#
2# Copyright 2020 NXP
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7ifeq (${ADD_DCFG},)
8
9ADD_DCFG := 1
10
11DCFG_DRIVERS_PATH := ${PLAT_DRIVERS_PATH}/dcfg
12
13PLAT_INCLUDES += -I$(DCFG_DRIVERS_PATH)
14
15DCFG_SOURCES += $(DCFG_DRIVERS_PATH)/dcfg.c
16
17ifeq (${BL_COMM_DCFG_NEEDED},yes)
18BL_COMMON_SOURCES += ${DCFG_SOURCES}
19else
20ifeq (${BL2_DCFG_NEEDED},yes)
21BL2_SOURCES += ${DCFG_SOURCES}
22endif
23ifeq (${BL31_DCFG_NEEDED},yes)
24BL31_SOURCES += ${DCFG_SOURCES}
25endif
26endif
27
28endif