build.sh: rm loader.bin before uboot build

fix multi loader.bin exist lead mkfirmware.sh execute error

Change-Id: I3d297a891b781fdb9ffbb18698bf9b6f0969b437
Signed-off-by: Hans Yang <yhx@rock-chips.com>
This commit is contained in:
Hans Yang
2018-07-16 20:02:04 +08:00
parent d26a368a0c
commit 000a11812b

View File

@ -45,6 +45,9 @@ function build_uboot(){
echo "============Start build uboot============"
echo "TARGET_UBOOT_CONFIG=$UBOOT_DEFCONFIG"
echo "========================================="
if [ -f u-boot/*_loader_*.bin ]; then
rm u-boot/*_loader_*.bin
fi
cd u-boot && ./make.sh $UBOOT_DEFCONFIG && cd -
if [ $? -eq 0 ]; then
echo "====Build uboot ok!===="