1# !/bin/bash 2set -e 3 4COMPRESS="lzma" 5ADDR=`sed -n "/CONFIG_SYS_TEXT_BASE=/s/CONFIG_SYS_TEXT_BASE=//p" include/autoconf.mk|tr -d '\r'` 6 7./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 8cp -f spl/u-boot-spl-nodtb.bin u-boot.bin.decomp 9if ! grep -q '^CONFIG_SPL_SEPARATE_BSS=y' .config ; then 10 cat spl/u-boot-spl-pad.bin >> u-boot.bin.decomp 11fi 12cat u-boot.bin.${COMPRESS}.uImage >> u-boot.bin.decomp 13cp -f u-boot.bin.decomp spl/u-boot-spl.bin 14./make.sh spl 15 16 17