From 9b8179c0e5d15bf6fb7729cd069d176ba9a8dabe Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 26 Apr 2025 11:55:51 +0100 Subject: 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 --- include/git.sh | 6 ------ 1 file changed, 6 deletions(-) (limited to 'include/git.sh') diff --git a/include/git.sh b/include/git.sh index cac0ceac..9712ed37 100644 --- a/include/git.sh +++ b/include/git.sh @@ -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" -- cgit v1.2.1