summaryrefslogtreecommitdiff
path: root/config/data/pico-serprog
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-04-11 20:04:53 +0100
committerLeah Rowe <leah@libreboot.org>2025-04-11 20:04:53 +0100
commit5a0a24f555985c772b8414fe88a5862d23491956 (patch)
tree17a636d738385a1fc3a9adc6db8d0899901e6f23 /config/data/pico-serprog
parenta25a29cfbb7578ed44e862cc6a4ff019c340f499 (diff)
lbmk: unified PWD handling (work directory)
instead of running pwd all the time, run it once in lib.sh, and export PWD. for lbmk-specific use of PWD, use xbmkpwd, which contains the value of PWD as was set by the pwd utility in lib.sh. many parts of lbmk rely on pwd, and it *must* be correct. this change adds basic error handling, since pwd can in fact return errors in some cases. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'config/data/pico-serprog')
-rw-r--r--config/data/pico-serprog/mkhelper.cfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/data/pico-serprog/mkhelper.cfg b/config/data/pico-serprog/mkhelper.cfg
index 15f766b7..c913767c 100644
--- a/config/data/pico-serprog/mkhelper.cfg
+++ b/config/data/pico-serprog/mkhelper.cfg
@@ -7,4 +7,4 @@ serx="$sersrc/build/pico_serprog.uf2"
picosdk="src/pico-sdk"
serdir="$picosdk/src/boards/include/boards"
premake="mkserprog pico"
-picotool="`pwd`/src/picotool/xbmkbin"
+picotool="$xbmkpwd/src/picotool/xbmkbin"