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