summaryrefslogtreecommitdiff
path: root/script/trees
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-04-11 17:52:18 +0100
committerLeah Rowe <leah@libreboot.org>2025-04-11 17:52:18 +0100
commit0764c969a29b54166bb64e24e257f15a536a8be4 (patch)
tree7207da8611a2e6e0e81808b19e0a650ac64ce4ea /script/trees
parentf98b9b0110770f5381055fbaa20610130131df62 (diff)
lbmk: use pwd util, not PWD environmental variable
PWD could be anything, if the user manually exported it before running lbmk. always run pwd instead, to get the real string. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/trees')
-rwxr-xr-xscript/trees4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/trees b/script/trees
index 3eb9d054..8e53949b 100755
--- a/script/trees
+++ b/script/trees
@@ -176,7 +176,7 @@ configure_project()
[ -z "$btype" ] || [ "${mode%config}" = "$mode" ] || return 1
[ -z "$mode" ] && build_dependencies
- mdir="$PWD/config/submodule/$project"
+ mdir="`pwd`/config/submodule/$project"
[ -n "$tree" ] && mdir="$mdir/$tree"
[ -f "CHANGELOG" ] || check_project_hashes
@@ -247,7 +247,7 @@ check_cross_compiler()
x_ ./mk -f coreboot "${cbdir#src/coreboot/}"
- export PATH="$PWD/$cbdir/util/crossgcc/xgcc/bin:$PATH"
+ export PATH="`pwd`/$cbdir/util/crossgcc/xgcc/bin:$PATH"
export CROSS_COMPILE="${xarch% *}-"
[ -n "$xlang" ] && export BUILD_LANGUAGES="$xlang"