summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-04-11 19:22:23 +0100
committerLeah Rowe <leah@libreboot.org>2025-04-11 19:22:23 +0100
commit1022abf69914f77dbcb360d885cae4c22ea3a223 (patch)
treec695474e51f7aae4ca409f4fac48eb0250bd1c12
parent0764c969a29b54166bb64e24e257f15a536a8be4 (diff)
move XBMKPATH to include/lib.sh
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--include/lib.sh2
-rwxr-xr-xscript/trees4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/lib.sh b/include/lib.sh
index 4e527845..47fc7d7f 100644
--- a/include/lib.sh
+++ b/include/lib.sh
@@ -6,6 +6,8 @@
export LC_COLLATE=C
export LC_ALL=C
+xbmkpath="$PATH"
+
_ua="Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0"
ifdtool="elf/ifdtool/default/ifdtool"
diff --git a/script/trees b/script/trees
index 8e53949b..48d1603a 100755
--- a/script/trees
+++ b/script/trees
@@ -9,8 +9,6 @@ set -u -e
. "include/lib.sh"
. "include/git.sh"
-XBMKPATH="$PATH"
-
eval "`setvars "" xarch srcdir premake gnatdir xlang mode makeargs elfdir cmd \
project target target_dir targets xtree _f release bootstrapargs mkhelper \
autoconfargs listfile autogenargs btype tree rev tree_depend build_depend \
@@ -111,7 +109,7 @@ build_targets()
for x in $targets; do
unset CROSS_COMPILE
- export PATH="$XBMKPATH"
+ export PATH="$xbmkpath"
[ "$x" = "list" ] && x_ ls -1 "config/$project" && \
listfile="" && break
target="$x"