SPL: Added SPL target for mx35 SOC to SPL Makefile
authorStefano Babic <sbabic@denx.de>
Wed, 10 Oct 2012 21:11:44 +0000 (21:11 +0000)
committerStefano Babic <sbabic@denx.de>
Fri, 26 Oct 2012 14:27:59 +0000 (16:27 +0200)
Signed-off-by: Stefano Babic <sbabic@denx.de>
spl/Makefile

index 92267d6..58ef40a 100644 (file)
@@ -123,6 +123,12 @@ $(OBJTREE)/MLO:    $(obj)u-boot-spl.bin
                -a $(CONFIG_SPL_TEXT_BASE) -d $< $@
 endif
 
+ifneq ($(CONFIG_IMX_CONFIG),)
+$(OBJTREE)/SPL:        $(obj)u-boot-spl.bin
+       $(OBJTREE)/tools/mkimage -n  $(SRCTREE)/$(CONFIG_IMX_CONFIG) -T imximage \
+               -e $(CONFIG_SPL_TEXT_BASE) -d $< $@
+endif
+
 ALL-y  += $(obj)u-boot-spl.bin
 
 ifdef CONFIG_SAMSUNG