img_loadr.mk 482 B

123456789101112131415161718192021
  1. #
  2. # Copyright 2020 NXP
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. IMG_LOADR_DRIVERS_PATH := ${PLAT_COMMON_PATH}/img_loadr
  7. IMG_LOADR_SOURCES := $(IMG_LOADR_DRIVERS_PATH)/load_img.c
  8. PLAT_INCLUDES += -I$(IMG_LOADR_DRIVERS_PATH)
  9. ifeq (${BL_COMM_IMG_LOADR_NEEDED},yes)
  10. BL_COMMON_SOURCES += ${IMG_LOADR_SOURCES}
  11. else
  12. ifeq (${BL2_IMG_LOADR_NEEDED},yes)
  13. BL2_SOURCES += ${IMG_LOADR_SOURCES}
  14. endif
  15. ifeq (${BL31_IMG_LOADR_NEEDED},yes)
  16. BL31_SOURCES += ${IMG_LOADR_SOURCES}
  17. endif
  18. endif