Add support to link an external lib with ARM TF
authorSoby Mathew <soby.mathew@arm.com>
Wed, 10 May 2017 10:48:04 +0000 (11:48 +0100)
committerSoby Mathew <soby.mathew@arm.com>
Wed, 28 Jun 2017 14:58:05 +0000 (15:58 +0100)
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>
make_helpers/build_macros.mk

index aee045dee8d2bbee396202c83e6c178c75048999..e59a64b42bdcd0ecfe2639ddfae632a475872d23 100644 (file)
@@ -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      $$@"