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