summaryrefslogtreecommitdiff
path: root/board/samsung/origen/Makefile
diff options
context:
space:
mode:
authorChander Kashyap <chander.kashyap@linaro.org>2011-08-18 22:37:20 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-09-04 11:36:16 +0200
commit98a48c5de545e5a5eedba0a868024ef0d4ae5347 (patch)
treeaa90ed0dd8651582fd46a0aae248e48f8418140a /board/samsung/origen/Makefile
parentb9a1ef219e12c08b2af695dd5355d6352b8ffc08 (diff)
downloadu-boot-imx-98a48c5de545e5a5eedba0a868024ef0d4ae5347.zip
u-boot-imx-98a48c5de545e5a5eedba0a868024ef0d4ae5347.tar.gz
u-boot-imx-98a48c5de545e5a5eedba0a868024ef0d4ae5347.tar.bz2
ORIGEN: Add MMC SPL support
Adds mmc boot support. Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'board/samsung/origen/Makefile')
-rw-r--r--board/samsung/origen/Makefile20
1 files changed, 19 insertions, 1 deletions
diff --git a/board/samsung/origen/Makefile b/board/samsung/origen/Makefile
index 65eff91..f5c6507 100644
--- a/board/samsung/origen/Makefile
+++ b/board/samsung/origen/Makefile
@@ -26,16 +26,34 @@ LIB = $(obj)lib$(BOARD).o
SOBJS := mem_setup.o
SOBJS += lowlevel_init.o
+
+ifndef CONFIG_SPL_BUILD
COBJS += origen.o
+endif
+
+ifdef CONFIG_SPL_BUILD
+COBJS += mmc_boot.o
+endif
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS))
-all: $(obj).depend $(LIB)
+ALL +=$(obj).depend $(LIB)
+
+ifdef CONFIG_SPL_BUILD
+ALL += tools/mk$(BOARD)spl.exe
+endif
+
+all: $(ALL)
$(LIB): $(OBJS)
$(AR) $(ARFLAGS) $@ $(OBJS)
+ifdef CONFIG_SPL_BUILD
+tools/mk$(BOARD)spl.exe: tools/mkv310_image.c
+ $(HOSTCC) tools/mkv310_image.c -o tools/mk$(BOARD)spl.exe
+endif
+
#########################################################################
# defines $(obj).depend target