mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
mk: tidy up xgccargs handling
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -310,9 +310,8 @@ check_cross_compiler()
|
|||||||
check_gnu_path gcc gnat || x_ check_gnu_path gnat gcc
|
check_gnu_path gcc gnat || x_ check_gnu_path gnat gcc
|
||||||
|
|
||||||
xfix="${1%-*}" && [ "$xfix" = "x86_64" ] && xfix="x64"
|
xfix="${1%-*}" && [ "$xfix" = "x86_64" ] && xfix="x64"
|
||||||
xgccargs="UPDATED_SUBMODULES=1 CPUS=$XBMK_THREADS"
|
xgccargs="crossgcc-$xfix UPDATED_SUBMODULES=1 CPUS=$XBMK_THREADS"
|
||||||
make -C "$cbdir" crossgcc-$xfix $xgccargs || \
|
make -C "$cbdir" $xgccargs || x_ make -C "$cbdir" $xgccargs
|
||||||
x_ make -C "$cbdir" crossgcc-$xfix $xgccargs
|
|
||||||
|
|
||||||
# we only want to mess with hostcc to build xgcc
|
# we only want to mess with hostcc to build xgcc
|
||||||
remkdir "$XBMK_CACHE/gnupath"
|
remkdir "$XBMK_CACHE/gnupath"
|
||||||
|
|||||||
Reference in New Issue
Block a user