aboutsummaryrefslogtreecommitdiff
path: root/bl2
diff options
context:
space:
mode:
authorJon Medhurst <tixy@linaro.org>2014-02-12 15:54:48 +0000
committerJon Medhurst <tixy@linaro.org>2014-02-27 15:48:46 +0000
commita9380b72eae98bdda98dc0ce793dd1e7050195f4 (patch)
treeaa515908086a2588909e15c4467aa0222ce798d5 /bl2
parente3fff153803bcf256d95e5b4d31a0c04d50ed5e4 (diff)
Update Makefiles to get proper dependency checking working.tixy-issue-11
This change requires all platforms to now specify a list of source files rather than object files. New source files should preferably be specified by using the path as well and we should add this in the future for all files so we can remove use of vpath. This is desirable because vpath hides issues like the fact that BL2 currently pulls in a BL1 file bl1/aarch64/early_exceptions.S and if in the future we added bl2/aarch64/early_exceptions.S then it's likely only one of the two version would be used for both bootloaders. This change also removes the 'dump' build target and simply gets bootloaders to always generate a dump file. At the same time the -x option is added so the section headers and symbols table are listed. Fixes ARM-software/tf-issues#11 Signed-off-by: Jon Medhurst <tixy@linaro.org>
Diffstat (limited to 'bl2')
-rw-r--r--bl2/bl2.mk13
1 files changed, 6 insertions, 7 deletions
diff --git a/bl2/bl2.mk b/bl2/bl2.mk
index fb47669..f6787ee 100644
--- a/bl2/bl2.mk
+++ b/bl2/bl2.mk
@@ -40,14 +40,13 @@ vpath %.S lib/arch/${ARCH} \
lib/sync/locks/exclusive \
${PLAT_BL2_S_VPATH}
-BL2_OBJS += bl2_entrypoint.o \
- bl2_arch_setup.o \
- bl2_main.o \
- spinlock.o \
- early_exceptions.o
+BL2_SOURCES += bl2_entrypoint.S \
+ bl2_arch_setup.c \
+ bl2_main.c \
+ spinlock.S \
+ early_exceptions.S
BL2_ENTRY_POINT := bl2_entrypoint
-BL2_MAPFILE := bl2.map
-BL2_LINKERFILE := bl2.ld
+BL2_LINKERFILE := bl2.ld.S
CFLAGS += $(DEFINES)