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