make.sh: rm bl31.elf and tee.bin before packing itb

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Iafc924a8d559f0ed12a8fbf2a127ff23898803ec
This commit is contained in:
Joseph Chen 2020-10-23 15:57:16 +08:00
parent d2a405ffec
commit 407bd0fb9b
1 changed files with 1 additions and 0 deletions

View File

@ -595,6 +595,7 @@ function pack_uboot_itb_image()
if [ "${ARM64_TRUSTZONE}" == "y" ]; then
BL31_ELF=`sed -n '/_bl31_/s/PATH=//p' ${INI} | tr -d '\r'`
BL32_BIN=`sed -n '/_bl32_/s/PATH=//p' ${INI} | tr -d '\r'`
rm bl31.elf tee.bin -rf
cp ${RKBIN}/${BL31_ELF} bl31.elf
if grep BL32_OPTION -A 1 ${INI} | grep SEC=1 ; then
cp ${RKBIN}/${BL32_BIN} tee.bin