From 3b258e2e58d7b5f45e03681b00df64fc8a61e9c1 Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Thu, 31 Mar 2011 16:26:29 -0500 Subject: Fix build issues cause by LDFLAGS_FINAL changes Commit 6dc1ece "Introduce a new linker flag LDFLAGS_FINAL" modified a number of Makefiles in a way that broke out-of-tree builds. The problem was that $(nandobj) was used before it got defined. Fix this. Signed-off-by: Wolfgang Denk Signed-off-by: Scott Wood --- nand_spl/board/davinci/da8xxevm/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nand_spl/board/davinci/da8xxevm/Makefile') diff --git a/nand_spl/board/davinci/da8xxevm/Makefile b/nand_spl/board/davinci/da8xxevm/Makefile index 2876e73..c3cb1bb 100644 --- a/nand_spl/board/davinci/da8xxevm/Makefile +++ b/nand_spl/board/davinci/da8xxevm/Makefile @@ -28,6 +28,8 @@ CONFIG_NAND_SPL = y include $(TOPDIR)/config.mk +nandobj := $(OBJTREE)/nand_spl/ + LDSCRIPT= $(TOPDIR)/nand_spl/board/$(BOARDDIR)/u-boot.lds LDFLAGS := -T $(nandobj)u-boot.lds -Ttext $(CONFIG_SYS_TEXT_BASE) $(LDFLAGS) \ $(LDFLAGS_FINAL) @@ -41,9 +43,7 @@ COBJS = cpu.o davinci_nand.o ns16550.o div0.o davinci_pinmux.o psc.o \ SRCS := $(addprefix $(obj),$(SOBJS:.o=.S) $(COBJS:.o=.c)) OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) __OBJS := $(SOBJS) $(COBJS) -LNDIR := $(OBJTREE)/nand_spl/board/$(BOARDDIR) - -nandobj := $(OBJTREE)/nand_spl/ +LNDIR := $(nandobj)board/$(BOARDDIR) ALL = $(nandobj)u-boot-spl $(nandobj)u-boot-spl.bin \ $(nandobj)u-boot-spl-16k.bin -- cgit v1.1