1# 2# Copyright 2021 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 12PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/sfp 13 14SFP_SOURCES += $(PLAT_DRIVERS_PATH)/sfp/sfp.c 15 16ifeq (${FUSE_PROG}, 1) 17SFP_BL2_SOURCES += $(PLAT_DRIVERS_PATH)/sfp/fuse_prov.c 18endif 19 20ifeq (${BL_COMM_SFP_NEEDED},yes) 21BL_COMMON_SOURCES += ${SFP_SOURCES} 22BL2_SOURCES += ${SFP_BL2_SOURCES} 23else 24ifeq (${BL2_SFP_NEEDED},yes) 25BL2_SOURCES += ${SFP_SOURCES}\ 26 ${SFP_BL2_SOURCES} 27endif 28ifeq (${BL31_SFP_NEEDED},yes) 29BL31_SOURCES += ${SFP_SOURCES} 30endif 31endif 32endif 33#------------------------------------------------ 34