Patchwork [U-Boot,RFC,8/8] OMAP3: Add ift target to top level Makefile

login
register
mail settings
Submitter John Rigby
Date Dec. 28, 2010, 12:47 a.m.
Message ID <1293497228-15911-9-git-send-email-john.rigby@linaro.org>
Download mbox | patch
Permalink /patch/76811/
State RFC
Delegated to: Tom Rini
Headers show

Comments

John Rigby - Dec. 28, 2010, 12:47 a.m.
Signed-off-by: John Rigby <john.rigby@linaro.org>
---
 Makefile |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
Dirk Behme - Dec. 28, 2010, 9:37 a.m.
On 28.12.2010 01:47, John Rigby wrote:
> Signed-off-by: John Rigby<john.rigby@linaro.org>
> ---
>   Makefile |    9 +++++++++
>   1 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index 9055028..baf11b3 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -289,8 +289,13 @@ LDPPFLAGS += \
>
>   ifeq ($(CONFIG_NAND_U_BOOT),y)
>   NAND_SPL = nand_spl
> +ifeq ($(CONFIG_OMAP3430),y)
> +U_BOOT_SPL_IFT=u-boot-spl.ift
> +ALL+=$(U_BOOT_SPL_IFT)
> +else
>   U_BOOT_NAND = $(obj)u-boot-nand.bin
>   endif
> +endif
>
>   ifeq ($(CONFIG_ONENAND_U_BOOT),y)
>   ONENAND_IPL = onenand_ipl
> @@ -407,6 +412,10 @@ $(NAND_SPL):	$(TIMESTAMP_FILE) $(VERSION_FILE) depend
>   $(U_BOOT_NAND):	$(NAND_SPL) $(obj)u-boot.bin
>   		cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin>  $(obj)u-boot-nand.bin
>
> +$(U_BOOT_SPL_IFT):	$(NAND_SPL) $(obj)u-boot.bin
> +		$(obj)tools/mkimage -T omapimage \
> +		-a $(CONFIG_SYS_NAND_SPL_TEXT_BASE) -d $(obj)nand_spl/u-boot-spl.bin $@
> +
>   $(ONENAND_IPL):	$(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
>   		$(MAKE) -C onenand_ipl/board/$(BOARDDIR) all

While I just saw

http://lists.denx.de/pipermail/u-boot/2010-December/084347.html

what's about adding u-boot-spl.ift to .gitignore, too?

Thanks

Dirk

Patch

diff --git a/Makefile b/Makefile
index 9055028..baf11b3 100644
--- a/Makefile
+++ b/Makefile
@@ -289,8 +289,13 @@  LDPPFLAGS += \
 
 ifeq ($(CONFIG_NAND_U_BOOT),y)
 NAND_SPL = nand_spl
+ifeq ($(CONFIG_OMAP3430),y)
+U_BOOT_SPL_IFT=u-boot-spl.ift
+ALL+=$(U_BOOT_SPL_IFT)
+else
 U_BOOT_NAND = $(obj)u-boot-nand.bin
 endif
+endif
 
 ifeq ($(CONFIG_ONENAND_U_BOOT),y)
 ONENAND_IPL = onenand_ipl
@@ -407,6 +412,10 @@  $(NAND_SPL):	$(TIMESTAMP_FILE) $(VERSION_FILE) depend
 $(U_BOOT_NAND):	$(NAND_SPL) $(obj)u-boot.bin
 		cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
 
+$(U_BOOT_SPL_IFT):	$(NAND_SPL) $(obj)u-boot.bin
+		$(obj)tools/mkimage -T omapimage \
+		-a $(CONFIG_SYS_NAND_SPL_TEXT_BASE) -d $(obj)nand_spl/u-boot-spl.bin $@
+
 $(ONENAND_IPL):	$(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
 		$(MAKE) -C onenand_ipl/board/$(BOARDDIR) all