Pankaj Gupta | 44392ea | 2020-12-09 14:02:38 +0530 | [diff] [blame] | 1 | # |
Pankaj Gupta | 7834b46 | 2021-03-25 15:15:52 +0530 | [diff] [blame] | 2 | # Copyright 2021 NXP |
Pankaj Gupta | 44392ea | 2020-12-09 14:02:38 +0530 | [diff] [blame] | 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 | |
Pankaj Gupta | 7834b46 | 2021-03-25 15:15:52 +0530 | [diff] [blame] | 12 | PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/sfp |
Pankaj Gupta | 44392ea | 2020-12-09 14:02:38 +0530 | [diff] [blame] | 13 | |
Pankaj Gupta | 7834b46 | 2021-03-25 15:15:52 +0530 | [diff] [blame] | 14 | SFP_SOURCES += $(PLAT_DRIVERS_PATH)/sfp/sfp.c |
Pankaj Gupta | 44392ea | 2020-12-09 14:02:38 +0530 | [diff] [blame] | 15 | |
| 16 | ifeq (${FUSE_PROG}, 1) |
Pankaj Gupta | 7834b46 | 2021-03-25 15:15:52 +0530 | [diff] [blame] | 17 | SFP_BL2_SOURCES += $(PLAT_DRIVERS_PATH)/sfp/fuse_prov.c |
Pankaj Gupta | 44392ea | 2020-12-09 14:02:38 +0530 | [diff] [blame] | 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 | #------------------------------------------------ |