Pankaj Gupta | 44392ea | 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 (${SFP_ADDED},) |
| 8 | |
| 9 | SFP_ADDED := 1 |
| 10 | $(eval $(call add_define, NXP_SFP_ENABLED)) |
| 11 | |
| 12 | SFP_DRIVERS_PATH := ${PLAT_DRIVERS_PATH}/sfp |
| 13 | |
| 14 | PLAT_INCLUDES += -I$(SFP_DRIVERS_PATH) |
| 15 | |
| 16 | SFP_SOURCES += $(SFP_DRIVERS_PATH)/sfp.c |
| 17 | |
| 18 | ifeq (${FUSE_PROG}, 1) |
| 19 | SFP_BL2_SOURCES += $(SFP_DRIVERS_PATH)/fuse_prov.c |
| 20 | endif |
| 21 | |
| 22 | ifeq (${BL_COMM_SFP_NEEDED},yes) |
| 23 | BL_COMMON_SOURCES += ${SFP_SOURCES} |
| 24 | BL2_SOURCES += ${SFP_BL2_SOURCES} |
| 25 | else |
| 26 | ifeq (${BL2_SFP_NEEDED},yes) |
| 27 | BL2_SOURCES += ${SFP_SOURCES}\ |
| 28 | ${SFP_BL2_SOURCES} |
| 29 | endif |
| 30 | ifeq (${BL31_SFP_NEEDED},yes) |
| 31 | BL31_SOURCES += ${SFP_SOURCES} |
| 32 | endif |
| 33 | endif |
| 34 | endif |
| 35 | #------------------------------------------------ |