+ echo "building u-boot ..."
+ echo " argv: $@"
+ nopatch=0
+ noget=0
+ update=0
+ nocheckout=0
+ noclean=0
+ no2all=0
+ while [ "$1" ]; do
+ case "$1" in
+ -nopatch) nopatch=1; shift;;
+ -noget) noget=1; shift;;
+ -update) update=1; shift;;
+ -nocheckout) nocheckout=1; shift;;
+ -noclean) noclean=1; shift;;
+ -no2all) no2all=1; shift;;
+ *) shift;;
+ esac
+ done
+ if [ "$no2all" = "1" ]; then
+ nopatch=1
+ noget=1
+ nocheckout=1
+ noclean=1
+ fi
+ [ -f ./build.config ] && . ./build.config
+ if [ "$noget" = "0" ]; then
+ rm -rf u-boot
+ git clone $UBSRC
+ fi
+ if [ "$update" = "1" ]; then
+ cd u-boot
+ git pull
+ cd ..
+ fi