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>
audit6
Leah Rowe 2024-06-30 16:16:07 +01:00
parent 017fd8259e
commit 89a81a2910
1 changed files with 1 additions and 3 deletions

View File

@ -120,6 +120,7 @@ handle_src_tree()
{ {
target_dir="$cfgsdir/$target" target_dir="$cfgsdir/$target"
fetch_project "$project"
load_target_config "$target_dir" || return 1 load_target_config "$target_dir" || return 1
x_ mkdir -p "$elfdir/$target" x_ mkdir -p "$elfdir/$target"
@ -141,9 +142,6 @@ handle_src_tree()
load_target_config() 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 \ eval `setvars "" xarch xlang bootstrapargs autoconfargs xtree \
tree_depend makeargs btype mkhelper` tree_depend makeargs btype mkhelper`
[ -f "$1/target.cfg" ] || btype="auto" [ -f "$1/target.cfg" ] || btype="auto"