git.sh: remove unused xgcc linking feature

the "xtree" variable is used by projects such as u-boot,
to export a CROSS_COMPILE variable specifying prefix for
gnu compilers, and for building the named coreboot tree.
for example, xtree can be "default", which is then the
coreboot tree downloaded, for use of crossgcc.

however, it is also used to symlink identical versions
of crossgcc between coreboot trees. this latter feature
was only needed for fam15h boards which were previously
split between two mostly identical coreboot trees, that
were later merged into a single tree, and this feature
is therefore no longer used.

remove this dead code, to reduce bloat in the build system.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-04-26 11:55:51 +01:00
parent 4624c6e536
commit 9b8179c0e5
-6
View File
@@ -61,12 +61,6 @@ git_prep()
done < "$mdir/module.list"; :
fi
if [ "$project" = "coreboot" ] && [ -n "$xtree" ] && [ $# -gt 2 ] && \
[ "$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" ] && \
[ "$XBMK_RELEASE" = "y" ] && rmgit "$tmpgit"