Commit d36d8859846598f80c980f9bc916a342a0db4095

Authored by Christian Riesch
Committed by Albert ARIBAUD
1 parent d1be8f922e

arm, davinci: Add support for generating AIS images to the Makefile

Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Heiko Schocher <hs@denx.de>
Cc: Mike Frysinger <vapier@gentoo.org>

Showing 2 changed files with 14 additions and 0 deletions Side-by-side Diff

... ... @@ -35,6 +35,7 @@
35 35 /u-boot.dis
36 36 /u-boot.lds
37 37 /u-boot.ubl
  38 +/u-boot.ais
38 39 /u-boot.dtb
39 40 /u-boot.sb
40 41  
... ... @@ -429,6 +429,18 @@
429 429 rm $(obj)u-boot-ubl.bin
430 430 rm $(obj)spl/u-boot-spl-pad.bin
431 431  
  432 +$(obj)u-boot.ais: $(obj)spl/u-boot-spl.bin $(obj)u-boot.bin
  433 + $(obj)tools/mkimage -s -n /dev/null -T aisimage \
  434 + -e $(CONFIG_SPL_TEXT_BASE) \
  435 + -d $(obj)spl/u-boot-spl.bin \
  436 + $(obj)spl/u-boot-spl.ais
  437 + $(OBJCOPY) ${OBJCFLAGS} -I binary \
  438 + --pad-to=$(CONFIG_SPL_MAX_SIZE) -O binary \
  439 + $(obj)spl/u-boot-spl.ais $(obj)spl/u-boot-spl-pad.ais
  440 + cat $(obj)spl/u-boot-spl-pad.ais $(obj)u-boot.bin > \
  441 + $(obj)u-boot.ais
  442 + rm $(obj)spl/u-boot-spl{,-pad}.ais
  443 +
432 444 $(obj)u-boot.sb: $(obj)u-boot.bin $(obj)spl/u-boot-spl.bin
433 445 elftosb -zdf imx28 -c $(TOPDIR)/board/$(BOARDDIR)/u-boot.bd \
434 446 -o $(obj)u-boot.sb
... ... @@ -762,6 +774,7 @@
762 774 @rm -f $(obj)u-boot.kwb
763 775 @rm -f $(obj)u-boot.imx
764 776 @rm -f $(obj)u-boot.ubl
  777 + @rm -f $(obj)u-boot.ais
765 778 @rm -f $(obj)u-boot.dtb
766 779 @rm -f $(obj)u-boot.sb
767 780 @rm -f $(obj)tools/inca-swap-bytes