summaryrefslogtreecommitdiff
path: root/bl2/bl2.mk
diff options
context:
space:
mode:
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)