Debian Codegraph @

drivers/nxp/sfp/sfp.mk

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