trees and git.sh: tidy up global variables

some of the variables only initialised in git.sh are
also used in the trees script, which is technically ok
because git.sh is included from the trees script, but
it makes more sense to declare them in the latter.

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit6
Leah Rowe 2024-06-30 18:10:22 +01:00
parent 55dbd72aaf
commit 67421a21fd
2 changed files with 3 additions and 3 deletions

View File

@ -2,8 +2,8 @@
# Copyright (c) 2020-2021,2023-2024 Leah Rowe <leah@libreboot.org>
# Copyright (c) 2022 Caleb La Grange <thonkpeasant@protonmail.com>
eval `setvars "" rev loc url bkup_url depend tree_depend mdir subhash subrepo \
subrepo_bkup subfile subfile_bkup`
eval `setvars "" loc url bkup_url subfile mdir subhash subrepo subrepo_bkup \
depend subfile_bkup`
fetch_targets()
{

View File

@ -12,7 +12,7 @@ set -u -e
cbmakeargs="UPDATED_SUBMODULES=1 CPUS=$XBMK_THREADS"
eval `setvars "" xarch cdir defconfig cmakedir xlang mode makeargs elfdir cmd \
project target target_dir targets xtree _f target1 bootstrapargs mkhelper \
autoconfargs listfile autogenargs btype tree`
autoconfargs listfile autogenargs btype tree rev tree_depend`
main()
{