trees: try xgcc build twice if first attempt fails
sometimes buildgcc just fails for like no reason. we had this the other day and another fix was made to the trees script, to mitigate; the user ran it again and buildgcc worked just fine. run it twice, and then call err only if the second one fails. Signed-off-by: Leah Rowe <leah@libreboot.org>audit6
parent
6468bdb3aa
commit
19e7c1eabb
|
@ -170,8 +170,11 @@ check_cross_compiler()
|
|||
export CROSS_COMPILE="${xarch% *}-"
|
||||
[ -n "$xlang" ] && export BUILD_LANGUAGES="$xlang"
|
||||
|
||||
x_ make -C "$cbdir" crossgcc-${_xarch%-*} $cbmakeargs
|
||||
done
|
||||
# sometimes buildgcc fails for like no reason. try twice.
|
||||
make -C "$cbdir" crossgcc-${_xarch%-*} $cbmakeargs || \
|
||||
make -C "$cbdir" crossgcc-${_xarch%-*} $cbmakeargs || \
|
||||
$err "!mkxgcc $project/$xtree '${_xarch%-*}' '$cbmakeargs'"
|
||||
done; return 0
|
||||
}
|
||||
|
||||
check_coreboot_utils()
|
||||
|
|
Loading…
Reference in New Issue