]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Makefile: delete a make rule of $(LDSCRIPT)
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Thu, 28 Nov 2013 02:06:03 +0000 (11:06 +0900)
committerTom Rini <trini@ti.com>
Fri, 13 Dec 2013 14:17:33 +0000 (09:17 -0500)
$(LDSCRIPT) is a source file, not a generated file.
We do not need a make rule of $(LDSCRIPT).

And one more trivial fix:
$(obj)/u-boot should not dierectly depend on $(LDSCRIPTS).

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Makefile

index a728176c6800227fa6b030a56311c02de42e5cab..b20a77a31f370ef78a030a863315d43b6b0d6e83 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -528,7 +528,7 @@ GEN_UBOOT = \
 endif
 
 $(obj)u-boot:  depend \
-               $(SUBDIR_TOOLS) $(OBJS) $(LIBS) $(LDSCRIPT) $(obj)u-boot.lds
+               $(SUBDIR_TOOLS) $(OBJS) $(LIBS) $(obj)u-boot.lds
                $(GEN_UBOOT)
 ifeq ($(CONFIG_KALLSYMS),y)
                smap=`$(call SYSTEM_MAP,$(obj)u-boot) | \
@@ -549,10 +549,7 @@ $(SUBDIRS):        depend
 
 $(SUBDIR_EXAMPLES-y): $(obj)u-boot
 
-$(LDSCRIPT):   depend
-               $(MAKE) -C $(dir $@) $(notdir $@)
-
-$(obj)u-boot.lds: $(LDSCRIPT)
+$(obj)u-boot.lds: $(LDSCRIPT) depend
                $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$< >$@
 
 nand_spl:      $(TIMESTAMP_FILE) $(VERSION_FILE) depend