move cfgsdir/datadir variables to lib.sh

it's also used from script/roms, in addition to trees

move these variables to a common file used everywhere

Signed-off-by: Leah Rowe <leah@libreboot.org>
20240612_branch
Leah Rowe 2024-06-06 02:43:27 +01:00
parent ba36f26d62
commit 810ad480da
2 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ setvars()
}
eval "$(setvars "" xbmk_release tmpdir _nogit version board boarddir relname \
versiondate threads projectname projectsite aur_notice)"
versiondate threads projectname projectsite aur_notice cfgsdir datadir)"
read -r projectname < projectname || :
read -r projectsite < projectsite || :

View File

@ -9,9 +9,9 @@ set -u -e
. "include/lib.sh"
. "include/git.sh"
eval "$(setvars "" xarch cfgsdir cdir config config_name xlang mode makeargs \
eval "$(setvars "" xarch cdir config config_name xlang mode makeargs \
listfile project target target_dir targets tree _f target1 bootstrapargs \
autoconfargs cmakedir elfdir autogenargs xtree datadir)"
autoconfargs cmakedir elfdir autogenargs xtree)"
main()
{