blob: de708c5df3022413ad2fa2c2f09b22b61ec9a4ab [file] [log] [blame]
Pankaj Gupta44392ea2020-12-09 14:02:38 +05301#
Pankaj Gupta7834b462021-03-25 15:15:52 +05302# Copyright 2021 NXP
Pankaj Gupta44392ea2020-12-09 14:02:38 +05303#
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
Pankaj Gupta7834b462021-03-25 15:15:52 +053012PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/sfp
Pankaj Gupta44392ea2020-12-09 14:02:38 +053013
Pankaj Gupta7834b462021-03-25 15:15:52 +053014SFP_SOURCES += $(PLAT_DRIVERS_PATH)/sfp/sfp.c
Pankaj Gupta44392ea2020-12-09 14:02:38 +053015
16ifeq (${FUSE_PROG}, 1)
Pankaj Gupta7834b462021-03-25 15:15:52 +053017SFP_BL2_SOURCES += $(PLAT_DRIVERS_PATH)/sfp/fuse_prov.c
Pankaj Gupta44392ea2020-12-09 14:02:38 +053018endif
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#------------------------------------------------