summaryrefslogtreecommitdiff
path: root/bl2/bl2.mk
diff options
context:
space:
mode:
authorRyan Harkin <ryan.harkin@linaro.org>2014-01-13 12:37:03 +0000
committerDan Handley <dan.handley@arm.com>2014-01-20 18:45:04 +0000
commit25cff83ee4300f26d5b7661ad6359525aaa36b94 (patch)
tree99eb00fe80b041dbaaf54ed8403aab6744154c59 /bl2/bl2.mk
parent5443f2be407f23a19c31564121683ddc24b982e8 (diff)
Build system: Fixes #2: Add multi-platform support
Move all explicit platform or architecture specific references into a new platform.mk file that is defined for each platform. Change-Id: I9d6320d1ba957e0cc8d9b316b3578132331fa428 Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org>
Diffstat (limited to 'bl2/bl2.mk')
-rw-r--r--bl2/bl2.mk21
1 files changed, 11 insertions, 10 deletions
diff --git a/bl2/bl2.mk b/bl2/bl2.mk
index daa89304..9c43e88c 100644
--- a/bl2/bl2.mk
+++ b/bl2/bl2.mk
@@ -28,21 +28,22 @@
# POSSIBILITY OF SUCH DAMAGE.
#
-vpath %.c common/ drivers/arm/interconnect/cci-400/ \
- drivers/arm/peripherals/pl011 common/ lib/ \
- plat/fvp plat/fvp/${ARCH} lib/semihosting arch/aarch64/ \
- lib/stdlib
+vpath %.c common/ lib/ \
+ plat/${PLAT} plat/${PLAT}/${ARCH} arch/${ARCH} \
+ ${PLAT_BL2_C_VPATH}
-vpath %.S lib/arch/aarch64 \
- lib/semihosting/aarch64 \
- include lib/sync/locks/exclusive
+vpath %.S lib/arch/${ARCH} \
+ include lib/sync/locks/exclusive \
+ ${PLAT_BL2_S_VPATH}
-BL2_ASM_OBJS := bl2_entrypoint.o spinlock.o
-BL2_C_OBJS := bl2_main.o bl2_plat_setup.o bl2_arch_setup.o fvp_common.o \
+BL2_OBJS += bl2_entrypoint.o \
+ bl2_arch_setup.o \
+ bl2_main.o \
+ spinlock.o \
early_exceptions.o
+
BL2_ENTRY_POINT := bl2_entrypoint
BL2_MAPFILE := bl2.map
BL2_LINKERFILE := bl2.ld
-BL2_OBJS := $(BL2_C_OBJS) $(BL2_ASM_OBJS)
CFLAGS += $(DEFINES)