summaryrefslogtreecommitdiff
path: root/bl1/bl1.mk
diff options
context:
space:
mode:
authorYatharth Kochar <yatharth.kochar@arm.com>2016-06-28 17:07:09 +0100
committerYatharth Kochar <yatharth.kochar@arm.com>2016-09-21 16:27:27 +0100
commitf3b4914be3b41eb2231184f7af80240296f668c5 (patch)
treed55c0effc0e98562e6c08640fcc2a5eb74ae2983 /bl1/bl1.mk
parent1a0a3f0622e4b569513304109d9a0d093b71228a (diff)
AArch32: Add generic changes in BL1
This patch adds generic changes in BL1 to support AArch32 state. New AArch32 specific assembly/C files are introduced and some files are moved to AArch32/64 specific folders. BL1 for AArch64 is refactored but functionally identical. BL1 executes in Secure Monitor mode in AArch32 state. NOTE: BL1 in AArch32 state ONLY handles BL1_RUN_IMAGE SMC. Change-Id: I6e2296374c7efbf3cf2aa1a0ce8de0732d8c98a5
Diffstat (limited to 'bl1/bl1.mk')
-rw-r--r--bl1/bl1.mk18
1 files changed, 11 insertions, 7 deletions
diff --git a/bl1/bl1.mk b/bl1/bl1.mk
index 591e047b..9ef5b401 100644
--- a/bl1/bl1.mk
+++ b/bl1/bl1.mk
@@ -29,15 +29,19 @@
#
BL1_SOURCES += bl1/bl1_main.c \
- bl1/aarch64/bl1_arch_setup.c \
- bl1/aarch64/bl1_entrypoint.S \
- bl1/aarch64/bl1_exceptions.S \
- bl1/bl1_context_mgmt.c \
- lib/cpus/aarch64/cpu_helpers.S \
- lib/el3_runtime/aarch64/context.S \
- lib/el3_runtime/aarch64/context_mgmt.c \
+ bl1/${ARCH}/bl1_arch_setup.c \
+ bl1/${ARCH}/bl1_context_mgmt.c \
+ bl1/${ARCH}/bl1_entrypoint.S \
+ bl1/${ARCH}/bl1_exceptions.S \
+ lib/cpus/${ARCH}/cpu_helpers.S \
+ lib/el3_runtime/${ARCH}/context_mgmt.c \
plat/common/plat_bl1_common.c
+
+ifeq (${ARCH},aarch64)
+BL1_SOURCES += lib/el3_runtime/aarch64/context.S
+endif
+
ifeq (${TRUSTED_BOARD_BOOT},1)
BL1_SOURCES += bl1/bl1_fwu.c
endif