blob: 206595f10cd01c82303e3837557f9074ea7bee78 [file] [log] [blame]
Pankaj Gupta74f7b142020-12-09 14:02:38 +05301#
Pankaj Gupta7834b462021-03-25 15:15:52 +05302# Copyright 2021 NXP
Pankaj Gupta74f7b142020-12-09 14:02:38 +05303#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7ifeq (${ADD_DCFG},)
8
9ADD_DCFG := 1
10
Pankaj Gupta7834b462021-03-25 15:15:52 +053011PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/dcfg
Pankaj Gupta74f7b142020-12-09 14:02:38 +053012
Pankaj Gupta7834b462021-03-25 15:15:52 +053013DCFG_SOURCES += $(PLAT_DRIVERS_PATH)/dcfg/dcfg.c
Pankaj Gupta74f7b142020-12-09 14:02:38 +053014
15ifeq (${BL_COMM_DCFG_NEEDED},yes)
16BL_COMMON_SOURCES += ${DCFG_SOURCES}
17else
18ifeq (${BL2_DCFG_NEEDED},yes)
19BL2_SOURCES += ${DCFG_SOURCES}
20endif
21ifeq (${BL31_DCFG_NEEDED},yes)
22BL31_SOURCES += ${DCFG_SOURCES}
23endif
24endif
25
26endif