]> git.sur5r.net Git - u-boot/commitdiff
SPL: Make path to start.S configurable
authorMarek Vasut <marek.vasut@gmail.com>
Sun, 11 Sep 2011 17:56:19 +0000 (17:56 +0000)
committerWolfgang Denk <wd@denx.de>
Wed, 5 Oct 2011 20:22:41 +0000 (22:22 +0200)
Introduce CONFIG_SPL_START_S_PATH to configure path to start.S file. It's not
always fitting to use CPU's start.S .

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
spl/Makefile

index b44e84d2f37a5b848c4d8fa207ef838c9f9eef42..91dd11a45e1a82b932bf15825989c64fce7e252d 100644 (file)
@@ -26,7 +26,13 @@ obj := $(OBJTREE)/spl/
 HAVE_VENDOR_COMMON_LIB := $(shell [ -f $(SRCTREE)/board/$(VENDOR)/common/Makefile ] \
                        && echo y || echo n)
 
-START := $(CPUDIR)/start.o
+ifdef  CONFIG_SPL_START_S_PATH
+START_PATH := $(subst ",,$(CONFIG_SPL_START_S_PATH))
+else
+START_PATH := $(CPUDIR)
+endif
+
+START := $(START_PATH)/start.o
 
 LIBS-y += arch/$(ARCH)/lib/lib$(ARCH).o
 LIBS-y += $(CPUDIR)/lib$(CPU).o
@@ -121,7 +127,7 @@ $(obj)u-boot-spl:   depend $(START) $(LIBS) $(obj)u-boot-spl.lds
        $(GEN_UBOOT)
 
 $(START):      depend
-       $(MAKE) -C $(SRCTREE)/$(CPUDIR) $@
+       $(MAKE) -C $(SRCTREE)/$(START_PATH) $@
 
 $(LIBS):       depend
        $(MAKE) -C $(SRCTREE)$(dir $(subst $(SPLTREE),,$@))