1# 2# Copyright 2020 NXP 3# 4# SPDX-License-Identifier: BSD-3-Clause 5# 6#----------------------------------------------------------------------------- 7ifeq (${SFP_ADDED},) 8 9SFP_ADDED := 1 10$(eval $(call add_define, NXP_SFP_ENABLED)) 11 12SFP_DRIVERS_PATH := ${PLAT_DRIVERS_PATH}/sfp 13 14PLAT_INCLUDES += -I$(SFP_DRIVERS_PATH) 15 16SFP_SOURCES += $(SFP_DRIVERS_PATH)/sfp.c 17 18ifeq (${FUSE_PROG}, 1) 19SFP_BL2_SOURCES += $(SFP_DRIVERS_PATH)/fuse_prov.c 20endif 21 22ifeq (${BL_COMM_SFP_NEEDED},yes) 23BL_COMMON_SOURCES += ${SFP_SOURCES} 24BL2_SOURCES += ${SFP_BL2_SOURCES} 25else 26ifeq (${BL2_SFP_NEEDED},yes) 27BL2_SOURCES += ${SFP_SOURCES}\ 28 ${SFP_BL2_SOURCES} 29endif 30ifeq (${BL31_SFP_NEEDED},yes) 31BL31_SOURCES += ${SFP_SOURCES} 32endif 33endif 34endif 35#------------------------------------------------ 36