diff options
| author | Leah Rowe <leah@libreboot.org> | 2025-04-17 17:10:19 +0100 | 
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2025-04-17 17:10:19 +0100 | 
| commit | f5891fb69914cf3fbb33ead92e8709684d7fbdf8 (patch) | |
| tree | 229d49b5500c71107c65b2ce741bfb08620cb812 /include/git.sh | |
| parent | a685654b90f4d5a32740a89bdc7a363568478085 (diff) | |
git.sh: remove link_crossgcc()
merge it with git_prep
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/git.sh')
| -rw-r--r-- | include/git.sh | 16 | 
1 files changed, 6 insertions, 10 deletions
| diff --git a/include/git.sh b/include/git.sh index 5efde03f..7b0e9a4e 100644 --- a/include/git.sh +++ b/include/git.sh @@ -61,8 +61,12 @@ git_prep()  		done < "$mdir/module.list"; :  	fi -	[ "$project" = "coreboot" ] && [ -n "$xtree" ] && [ $# -gt 2 ] && \ -	    [ "$xtree" != "$tree" ] && link_crossgcc "$_loc" +	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" @@ -131,14 +135,6 @@ git_am_patches()  	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.  # called from script/trees when downloading sources.  nuke() | 
