summaryrefslogtreecommitdiff
path: root/script/trees
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-30 16:16:07 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-30 16:16:07 +0100
commit89a81a2910f34eb3c131c8cbfa14dc17356cd665 (patch)
tree97dde338abc5920d9aa2a416a56bb20671b62295 /script/trees
parent017fd8259eddcfd758cce0a1a4bb1667ba1020ed (diff)
trees: simplified multi-tree bare repo clone
the git_prep function already creates the given directory where source code goes, so we don't need to do it from the trees script. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/trees')
-rwxr-xr-xscript/trees4
1 files changed, 1 insertions, 3 deletions
diff --git a/script/trees b/script/trees
index dfe1eb01..cce30980 100755
--- a/script/trees
+++ b/script/trees
@@ -120,6 +120,7 @@ handle_src_tree()
{
target_dir="$cfgsdir/$target"
+ fetch_project "$project"
load_target_config "$target_dir" || return 1
x_ mkdir -p "$elfdir/$target"
@@ -141,9 +142,6 @@ handle_src_tree()
load_target_config()
{
- [ "$cmd" = "build_targets" ] && [ ! -d "src/$project/$project" ] && \
- x_ mkdir -p "src/$project" && fetch_project "$project"
-
eval `setvars "" xarch xlang bootstrapargs autoconfargs xtree \
tree_depend makeargs btype mkhelper`
[ -f "$1/target.cfg" ] || btype="auto"