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>
audit2
Leah Rowe 2024-06-30 16:16:07 +01:00 committed by Leah Rowe
parent 51fe371931
commit be4c655008
1 changed files with 1 additions and 3 deletions

View File

@ -118,6 +118,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"
@ -139,9 +140,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"