1b9fb3edaSJoseph Chen# !/bin/bash 2b9fb3edaSJoseph Chenset -e 3b9fb3edaSJoseph Chen 4*3b51da7cSJoseph ChenCOMPRESS="lzma" 5*3b51da7cSJoseph ChenADDR=`sed -n "/CONFIG_SYS_TEXT_BASE=/s/CONFIG_SYS_TEXT_BASE=//p" include/autoconf.mk|tr -d '\r'` 6*3b51da7cSJoseph Chen 7*3b51da7cSJoseph Chen./tools/mkimage -A arm -O u-boot -T standalone -C ${COMPRESS} -a ${ADDR} -e ${ADDR} -d u-boot.bin.${COMPRESS} u-boot.bin.${COMPRESS}.uImage 8*3b51da7cSJoseph Chencp -f spl/u-boot-spl-nodtb.bin u-boot.bin.decomp 9*3b51da7cSJoseph Chenif ! grep -q '^CONFIG_SPL_SEPARATE_BSS=y' .config ; then 10*3b51da7cSJoseph Chen cat spl/u-boot-spl-pad.bin >> u-boot.bin.decomp 11*3b51da7cSJoseph Chenfi 12*3b51da7cSJoseph Chencat u-boot.bin.${COMPRESS}.uImage >> u-boot.bin.decomp 13*3b51da7cSJoseph Chencp -f u-boot.bin.decomp spl/u-boot-spl.bin 14b9fb3edaSJoseph Chen./make.sh spl 15b9fb3edaSJoseph Chen 16b9fb3edaSJoseph Chen 17