summaryrefslogtreecommitdiff
path: root/bl2/bl2.mk
diff options
context:
space:
mode:
authorDan Handley <dan.handley@arm.com>2014-04-15 18:20:09 +0100
committerDan Handley <dan.handley@arm.com>2014-05-06 12:35:02 +0100
commitbee824171189fad399047b7d649f541747c88c2b (patch)
treeb84f060fa6965a96c5cae58a08df5bc10763eae6 /bl2/bl2.mk
parent35e98e5588d09145f7d0d4d98624f6b75321a187 (diff)
Remove vpath usage in makefiles
Remove all usage of the vpath keyword in makefiles as it was prone to mistakes. Specify the relative paths to source files instead. Also reorder source files in makefiles alphabetically. Fixes ARM-software/tf-issues#121 Change-Id: Id15f60655444bae60e0e2165259efac71a50928b
Diffstat (limited to 'bl2/bl2.mk')
-rw-r--r--bl2/bl2.mk25
1 files changed, 6 insertions, 19 deletions
diff --git a/bl2/bl2.mk b/bl2/bl2.mk
index 3ecaff9..1e82078 100644
--- a/bl2/bl2.mk
+++ b/bl2/bl2.mk
@@ -28,23 +28,10 @@
# POSSIBILITY OF SUCH DAMAGE.
#
-vpath %.c common \
- lib \
- plat/${PLAT} \
- plat/${PLAT}/${ARCH} \
- ${PLAT_BL2_C_VPATH}
+BL2_SOURCES += bl2/bl2_main.c \
+ bl2/aarch64/bl2_entrypoint.S \
+ bl2/aarch64/bl2_arch_setup.c \
+ common/aarch64/early_exceptions.S \
+ lib/locks/exclusive/spinlock.S
-vpath %.S lib/${ARCH} \
- lib/locks/exclusive \
- common/${ARCH} \
- ${PLAT_BL2_S_VPATH}
-
-BL2_SOURCES += bl2_entrypoint.S \
- bl2_arch_setup.c \
- bl2_main.c \
- spinlock.S \
- early_exceptions.S
-
-BL2_LINKERFILE := bl2.ld.S
-
-CFLAGS += $(DEFINES)
+BL2_LINKERFILE := bl2/bl2.ld.S