Commit f65c9812 authored by Mike Frysinger's avatar Mike Frysinger Committed by Wolfgang Denk
Browse files

Makefile: add target for $(LDSCRIPT)

If the $(LDSCRIPT) does not exist (normally it's board/$(BOARD)/,
then change into the board directory and try and create it.  This allows you
to generate the linker script on the fly based upon board defines (like the
Blackfin boards do).

There should be no regressions due to this change as the normal case is to
already have a file.  If that's the case, then there's nothing to
generate, and so make will always exit.  The fix here is that if the linker
script does not exist, the implicit rules take over and attempt to guess how
to generate the file.
Signed-off-by: default avatarMike Frysinger <>
parent 928d1d77
......@@ -326,6 +326,9 @@ $(LIBS): depend $(obj)include/
$(SUBDIRS): depend $(obj)include/
$(MAKE) -C $@ all
$(LDSCRIPT): depend $(obj)include/
$(MAKE) -C $(dir $@) $(notdir $@)
$(NAND_SPL): $(VERSION_FILE) $(obj)include/
$(MAKE) -C nand_spl/board/$(BOARDDIR) all
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment