summaryrefslogtreecommitdiff
path: root/bl2/bl2.mk
diff options
context:
space:
mode:
Diffstat (limited to 'bl2/bl2.mk')
-rw-r--r--bl2/bl2.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/bl2/bl2.mk b/bl2/bl2.mk
index d7907389..6cb478d1 100644
--- a/bl2/bl2.mk
+++ b/bl2/bl2.mk
@@ -34,4 +34,10 @@ BL2_SOURCES += bl2/bl2_main.c \
common/aarch64/early_exceptions.S \
lib/locks/exclusive/aarch64/spinlock.S
+ifeq (${LOAD_IMAGE_V2},1)
+BL2_SOURCES += bl2/bl2_image_load_v2.c
+else
+BL2_SOURCES += bl2/bl2_image_load.c
+endif
+
BL2_LINKERFILE := bl2/bl2.ld.S