diff options
author | Leah Rowe <leah@libreboot.org> | 2024-05-22 23:08:13 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2024-05-22 23:08:13 +0100 |
commit | 093c4a367dc82e0c0690d9fba775bbcf5e7f3701 (patch) | |
tree | bd28589460120e2dfe3975fe7f723b8c627be1c4 | |
parent | 73a2d99102afe63bb0fe26a3d7abfa33bd0fbc01 (diff) |
git.sh: move link_crossgcc to end of file
link_crossgcc is called after git_am_patches, so
put it after ward
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-x | include/git.sh | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/git.sh b/include/git.sh index 3b3aeb32..e7dfe591 100755 --- a/include/git.sh +++ b/include/git.sh @@ -122,15 +122,6 @@ prep_submodules() done < "$tmpdir/modules" } -link_crossgcc() -{ - ( - cd "$tmpgit/util" || $err "prep $1: !cd $tmpgit/util" - rm -Rf crossgcc || $err "prep $1: !rm xgcc" - ln -s "../../$xtree/util/crossgcc" crossgcc || $err "$1: !xgcc link" - ) || $err "$1: !xgcc link" -} - git_am_patches() { for _patch in "$2/"*; do @@ -142,3 +133,12 @@ git_am_patches() git_am_patches "$1" "$_patches"; continue done } + +link_crossgcc() +{ + ( + cd "$tmpgit/util" || $err "prep $1: !cd $tmpgit/util" + rm -Rf crossgcc || $err "prep $1: !rm xgcc" + ln -s "../../$xtree/util/crossgcc" crossgcc || $err "$1: !xgcc link" + ) || $err "$1: !xgcc link" +} |