Patchwork [U-Boot,12/20] iMX28: Add u-boot.sb target to Makefile

login
register
mail settings
Submitter Marek Vasut
Date Nov. 9, 2011, 9:18 a.m.
Message ID <1320830307-4762-13-git-send-email-marek.vasut@gmail.com>
Download mbox | patch
Permalink /patch/124503/
State Accepted
Commit 30b9b932a5393da45e3b1cf3a151a93dcf130a9b
Delegated to: Stefano Babic
Headers show

Comments

Marek Vasut - Nov. 9, 2011, 9:18 a.m.
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
---
 .gitignore |    1 +
 Makefile   |    5 +++++
 2 files changed, 6 insertions(+), 0 deletions(-)
Stefano Babic - Nov. 10, 2011, 1:13 p.m.
On 11/09/2011 10:18 AM, Marek Vasut wrote:
> Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
> Cc: Stefano Babic <sbabic@denx.de>
> Cc: Wolfgang Denk <wd@denx.de>
> Cc: Detlev Zundel <dzu@denx.de>
> ---
>  .gitignore |    1 +
>  Makefile   |    5 +++++
>  2 files changed, 6 insertions(+), 0 deletions(-)
> 
> diff --git a/.gitignore b/.gitignore
> index 70a11f7..ff4bae0 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -36,6 +36,7 @@
>  /u-boot.lds
>  /u-boot.ubl
>  /u-boot.dtb
> +/u-boot.sb
>  
>  #
>  # Generated files
> diff --git a/Makefile b/Makefile
> index 294c762..c9e2624 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -424,6 +424,10 @@ $(obj)u-boot.ubl:       $(obj)spl/u-boot-spl.bin $(obj)u-boot.bin
>  		rm $(obj)u-boot-ubl.bin
>  		rm $(obj)spl/u-boot-spl-pad.bin
>  
> +$(obj)u-boot.sb:       $(obj)u-boot.bin $(obj)spl/u-boot-spl.bin
> +		elftosb -zdf imx28 -c $(TOPDIR)/board/$(BOARDDIR)/u-boot.bd \
> +			-o $(obj)u-boot.sb
> +
>  ifeq ($(CONFIG_SANDBOX),y)
>  GEN_UBOOT = \
>  		cd $(LNDIR) && $(CC) $(SYMS) -T $(obj)u-boot.lds \
> @@ -791,6 +795,7 @@ clobber:	clean
>  	@rm -f $(obj)u-boot.imx
>  	@rm -f $(obj)u-boot.ubl
>  	@rm -f $(obj)u-boot.dtb
> +	@rm -f $(obj)u-boot.sb
>  	@rm -f $(obj)tools/{env/crc32.c,inca-swap-bytes}
>  	@rm -f $(obj)arch/powerpc/cpu/mpc824x/bedbug_603e.c
>  	@rm -fr $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm

Applied to u-boot-imx, thanks.

Best regards,
Stefano Babic

Patch

diff --git a/.gitignore b/.gitignore
index 70a11f7..ff4bae0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -36,6 +36,7 @@ 
 /u-boot.lds
 /u-boot.ubl
 /u-boot.dtb
+/u-boot.sb
 
 #
 # Generated files
diff --git a/Makefile b/Makefile
index 294c762..c9e2624 100644
--- a/Makefile
+++ b/Makefile
@@ -424,6 +424,10 @@  $(obj)u-boot.ubl:       $(obj)spl/u-boot-spl.bin $(obj)u-boot.bin
 		rm $(obj)u-boot-ubl.bin
 		rm $(obj)spl/u-boot-spl-pad.bin
 
+$(obj)u-boot.sb:       $(obj)u-boot.bin $(obj)spl/u-boot-spl.bin
+		elftosb -zdf imx28 -c $(TOPDIR)/board/$(BOARDDIR)/u-boot.bd \
+			-o $(obj)u-boot.sb
+
 ifeq ($(CONFIG_SANDBOX),y)
 GEN_UBOOT = \
 		cd $(LNDIR) && $(CC) $(SYMS) -T $(obj)u-boot.lds \
@@ -791,6 +795,7 @@  clobber:	clean
 	@rm -f $(obj)u-boot.imx
 	@rm -f $(obj)u-boot.ubl
 	@rm -f $(obj)u-boot.dtb
+	@rm -f $(obj)u-boot.sb
 	@rm -f $(obj)tools/{env/crc32.c,inca-swap-bytes}
 	@rm -f $(obj)arch/powerpc/cpu/mpc824x/bedbug_603e.c
 	@rm -fr $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm