From bee824171189fad399047b7d649f541747c88c2b Mon Sep 17 00:00:00 2001 From: Dan Handley Date: Tue, 15 Apr 2014 18:20:09 +0100 Subject: 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 --- bl2/bl2.mk | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) (limited to 'bl2') diff --git a/bl2/bl2.mk b/bl2/bl2.mk index 3ecaff9e..1e820787 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 -- cgit v1.2.3