summaryrefslogtreecommitdiff
path: root/board/integratorcp/config.mk
diff options
context:
space:
mode:
Diffstat (limited to 'board/integratorcp/config.mk')
-rw-r--r--board/integratorcp/config.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/board/integratorcp/config.mk b/board/integratorcp/config.mk
index 25b79b3e79..e4c5c3b57a 100644
--- a/board/integratorcp/config.mk
+++ b/board/integratorcp/config.mk
@@ -3,3 +3,9 @@
#
TEXT_BASE = 0x01000000
+
+ifneq ($(OBJTREE),$(SRCTREE))
+# We are building u-boot in a separate directory, use generated
+# .lds script from OBJTREE directory.
+LDSCRIPT := $(OBJTREE)/board/$(BOARDDIR)/u-boot.lds
+endif