Merge "build.sh: rm loader.bin before uboot build"

This commit is contained in:
Hans Yang
2018-07-16 20:03:41 +08:00
committed by Gerrit Code Review

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!===="