summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoby Mathew <soby.mathew@arm.com>2017-05-10 11:48:04 +0100
committerSoby Mathew <soby.mathew@arm.com>2017-06-28 15:58:05 +0100
commit048531d7ed818bab32f5ffa0f4f518310e602539 (patch)
tree4d694bad1f047b0a0b83873e323162d88fdebf48
parent1979ee13a5806f8f203dd056b4124949ab58df17 (diff)
Add support to link an external lib with ARM TF
This patch defines the variable `LDLIBS` which allows external libraries to be specified to 'ld' to enable it to link the libraries. Change-Id: I02a490eca1074063d00153ccb0ee974ef8859a0e Signed-off-by: Soby Mathew <soby.mathew@arm.com>
-rw-r--r--make_helpers/build_macros.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/make_helpers/build_macros.mk b/make_helpers/build_macros.mk
index aee045de..e59a64b4 100644
--- a/make_helpers/build_macros.mk
+++ b/make_helpers/build_macros.mk
@@ -314,7 +314,7 @@ else
$$(CC) $$(TF_CFLAGS) $$(CFLAGS) -xc -c - -o $(BUILD_DIR)/build_message.o
endif
$$(Q)$$(LD) -o $$@ $$(TF_LDFLAGS) $$(LDFLAGS) -Map=$(MAPFILE) \
- --script $(LINKERFILE) $(BUILD_DIR)/build_message.o $(OBJS)
+ --script $(LINKERFILE) $(BUILD_DIR)/build_message.o $(OBJS) $(LDLIBS)
$(DUMP): $(ELF)
@echo " OD $$@"