summaryrefslogtreecommitdiffstats
path: root/spl
diff options
context:
space:
mode:
authorIan Campbell <ijc@hellion.org.uk>2014-05-05 11:52:30 +0100
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2014-05-25 16:31:03 +0200
commit50827a5991bb345319bd0ce76f5e2402fac0c391 (patch)
tree541341b0565b8f27666a628f73c030bf3697c35d /spl
parente24ea55c04a8ee9c273dd879edda23bbde3d807a (diff)
downloadu-boot-50827a5991bb345319bd0ce76f5e2402fac0c391.tar.gz
u-boot-50827a5991bb345319bd0ce76f5e2402fac0c391.tar.xz
u-boot-50827a5991bb345319bd0ce76f5e2402fac0c391.zip
sunxi: non-FEL SPL boot support for sun7i
Add support for booting from an MMC card. Signed-off-by: Stefan Roese <sr@denx.de> Signed-off-by: Henrik Nordström <henrik@henriknordstrom.net> Signed-off-by: Ian Campbell <ijc@hellion.org.uk> Reviewed-by: Marek Vasut <marex@denx.de> Cc: Tom Cubie <Mr.hipboi@gmail.com> Reviewed-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'spl')
-rw-r--r--spl/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/spl/Makefile b/spl/Makefile
index 55500fd897..bfb7c8aec8 100644
--- a/spl/Makefile
+++ b/spl/Makefile
@@ -189,6 +189,12 @@ ifdef CONFIG_SAMSUNG
ALL-y += $(obj)/$(BOARD)-spl.bin
endif
+ifdef CONFIG_SUNXI
+ifndef CONFIG_SPL_FEL
+ALL-y += $(obj)/sunxi-spl.bin
+endif
+endif
+
all: $(ALL-y)
ifdef CONFIG_SAMSUNG
@@ -216,6 +222,13 @@ ifneq ($(CONFIG_SPL_TEXT_BASE),)
LDFLAGS_$(SPL_BIN) += -Ttext $(CONFIG_SPL_TEXT_BASE)
endif
+ifdef CONFIG_SUNXI
+quiet_cmd_mksunxiboot = MKSUNXI $@
+cmd_mksunxiboot = $(objtree)/tools/mksunxiboot $< $@
+$(obj)/sunxi-spl.bin: $(obj)/$(SPL_BIN).bin
+ $(call if_changed,mksunxiboot)
+endif
+
quiet_cmd_u-boot-spl = LD $@
cmd_u-boot-spl = cd $(obj) && $(LD) $(LDFLAGS) $(LDFLAGS_$(@F)) \
$(patsubst $(obj)/%,%,$(u-boot-spl-init)) --start-group \