summaryrefslogtreecommitdiff
path: root/include/git.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-01-21 12:59:02 +0000
committerLeah Rowe <leah@libreboot.org>2024-01-21 12:59:02 +0000
commit3e7e0c7d4881a187f82404beb34a2cd014a409f8 (patch)
tree91f9d70d9a8347b6c32de07a2d649ca0827ba604 /include/git.sh
parent8f3d3eada9afd9ecc19d180aa2899062435501b6 (diff)
git.sh: support downloading dependency trees
a tree can specify: tree_depend="treename" this will make the other tree be downloaded. this is used for coreboot trees, to ensure that dependency trees are downloaded, because trees can now re-use crossgcc from other trees. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/git.sh')
-rwxr-xr-xinclude/git.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/git.sh b/include/git.sh
index 7840671f..164d7891 100755
--- a/include/git.sh
+++ b/include/git.sh
@@ -4,7 +4,7 @@
# This file is only used by update/project/trees
-eval "$(setvars "" _target rev _xm loc url bkup_url depend xtree)"
+eval "$(setvars "" _target rev _xm loc url bkup_url depend tree_depend xtree)"
fetch_project_trees()
{
@@ -37,6 +37,8 @@ fetch_config()
[ "${_target}" = "${tree}" ] && break
_target="${tree}"
done
+ [ -n "$tree_depend" ] && [ "$tree_depend" != "$tree" ] && \
+ x_ update trees -f "$project" "$tree_depend"; return 0
}
load_target_config()