sfp.mk 749 B

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