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>audit2-merge1
parent
4621a784e6
commit
3056a38eaf
|
@ -1,3 +1,4 @@
|
||||||
tree="dell"
|
tree="dell"
|
||||||
|
tree_depend="default"
|
||||||
xtree="default"
|
xtree="default"
|
||||||
rev="d862695f5f432b5c78dada5f16c293a4c3f9fce6"
|
rev="d862695f5f432b5c78dada5f16c293a4c3f9fce6"
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
tree="fam15h_udimm"
|
tree="fam15h_udimm"
|
||||||
|
tree_depend="fam15h_rdimm"
|
||||||
xtree="fam15h_rdimm"
|
xtree="fam15h_rdimm"
|
||||||
rev="1c13f8d85c7306213cd525308ee8973e5663a3f8"
|
rev="1c13f8d85c7306213cd525308ee8973e5663a3f8"
|
||||||
payload_grub="n"
|
payload_grub="n"
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
# This file is only used by update/project/trees
|
# 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()
|
fetch_project_trees()
|
||||||
{
|
{
|
||||||
|
@ -37,6 +37,8 @@ fetch_config()
|
||||||
[ "${_target}" = "${tree}" ] && break
|
[ "${_target}" = "${tree}" ] && break
|
||||||
_target="${tree}"
|
_target="${tree}"
|
||||||
done
|
done
|
||||||
|
[ -n "$tree_depend" ] && [ "$tree_depend" != "$tree" ] && \
|
||||||
|
x_ update trees -f "$project" "$tree_depend"; return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
load_target_config()
|
load_target_config()
|
||||||
|
|
Loading…
Reference in New Issue