summaryrefslogtreecommitdiff
path: root/spl/Makefile
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2011-09-11 17:56:19 +0000
committerWolfgang Denk <wd@denx.de>2011-10-05 22:22:41 +0200
commit08e4f700ac450ddc5d4819e23df5bc46eb767464 (patch)
treea9a24d24d1c29ee49e705dc6eb17db2e604e6a25 /spl/Makefile
parent8e8a4bc22fc475244dd7c794f2271dd55399e859 (diff)
downloadu-boot-imx-08e4f700ac450ddc5d4819e23df5bc46eb767464.zip
u-boot-imx-08e4f700ac450ddc5d4819e23df5bc46eb767464.tar.gz
u-boot-imx-08e4f700ac450ddc5d4819e23df5bc46eb767464.tar.bz2
SPL: Make path to start.S configurable
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>
Diffstat (limited to 'spl/Makefile')
-rw-r--r--spl/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/spl/Makefile b/spl/Makefile
index b44e84d..91dd11a 100644
--- a/spl/Makefile
+++ b/spl/Makefile
@@ -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),,$@))