git.sh: remove link_crossgcc()
merge it with git_prep Signed-off-by: Leah Rowe <leah@libreboot.org>25.04_branch
parent
1915c84376
commit
991a98caec
|
@ -61,8 +61,12 @@ git_prep()
|
||||||
done < "$mdir/module.list"; :
|
done < "$mdir/module.list"; :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ "$project" = "coreboot" ] && [ -n "$xtree" ] && [ $# -gt 2 ] && \
|
if [ "$project" = "coreboot" ] && [ -n "$xtree" ] && [ $# -gt 2 ] && \
|
||||||
[ "$xtree" != "$tree" ] && link_crossgcc "$_loc"
|
[ "$xtree" != "$tree" ]; then (
|
||||||
|
x_ cd "$tmpgit/util" && x_ rm -Rf crossgcc
|
||||||
|
x_ ln -s "../../$xtree/util/crossgcc" crossgcc
|
||||||
|
) || $err "$_loc: !xgcc link"; fi
|
||||||
|
|
||||||
[ "$_loc" != "$XBMK_CACHE/repo/$project" ] && \
|
[ "$_loc" != "$XBMK_CACHE/repo/$project" ] && \
|
||||||
[ "$XBMK_RELEASE" = "y" ] && rmgit "$tmpgit"
|
[ "$XBMK_RELEASE" = "y" ] && rmgit "$tmpgit"
|
||||||
|
|
||||||
|
@ -131,14 +135,6 @@ git_am_patches()
|
||||||
done; :
|
done; :
|
||||||
}
|
}
|
||||||
|
|
||||||
link_crossgcc()
|
|
||||||
{
|
|
||||||
(
|
|
||||||
x_ cd "$tmpgit/util" && x_ rm -Rf crossgcc
|
|
||||||
ln -s "../../$xtree/util/crossgcc" crossgcc || $err "$1: !xgcc link"
|
|
||||||
) || $err "$1: !xgcc link"; :
|
|
||||||
}
|
|
||||||
|
|
||||||
# can delete from multi- and single-tree projects.
|
# can delete from multi- and single-tree projects.
|
||||||
# called from script/trees when downloading sources.
|
# called from script/trees when downloading sources.
|
||||||
nuke()
|
nuke()
|
||||||
|
|
Loading…
Reference in New Issue