diff options
author | Leah Rowe <leah@libreboot.org> | 2025-09-07 15:24:02 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-09-07 15:24:02 +0100 |
commit | 4475b4db4b3552866889ea025656bdbf3683032c (patch) | |
tree | ef20663d2f324e5ab8a05a83884630d8d760b3b3 /include/init.sh | |
parent | f5e8483f417db6b36a2ad660faf40475edd5ed1b (diff) |
init.sh/tree.sh: put PATH dirs in xbtmp
e.g. gnupath, xbmkpath
these currently go in XBMK_CACHE/, which is bad
because they're meant to be temporary.
XBMK_CACHE is for permanent files.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/init.sh')
-rw-r--r-- | include/init.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/init.sh b/include/init.sh index e8f107cd..9b39919d 100644 --- a/include/init.sh +++ b/include/init.sh @@ -87,7 +87,7 @@ xbmk_set_env() xbmk_parent_set_export xbmk_set_version - remkdir "$xbtmp" "$XBMK_CACHE/gnupath" "$XBMK_CACHE/xbmkpath" + remkdir "$xbtmp" "$xbtmp/gnupath" "$xbtmp/xbmkpath" xbmk_set_pyver } @@ -157,7 +157,7 @@ xbmk_parent_set_export() [ ! -e "$XBMK_CACHE" ] || \ [ -d "$XBMK_CACHE" ] || err "cachedir '$XBMK_CACHE' is a file"; : - export PATH="$XBMK_CACHE/xbmkpath:$XBMK_CACHE/gnupath:$PATH" + export PATH="$xbtmp/xbmkpath:$xbtmp/gnupath:$PATH" xbmkpath="$PATH" # if "y": a coreboot target won't be built if target.cfg says release="n" @@ -207,9 +207,9 @@ xbmk_set_pyver() ( # set up python v3.x in PATH, in case it's not set up correctly. # see code above that detected the correct python3 command. - x_ cd "$XBMK_CACHE/xbmkpath" + x_ cd "$xbtmp/xbmkpath" x_ ln -s "`pybin "$python"`" python - ) || err "Can't set up python symlink in $XBMK_CACHE/xbmkpath"; : + ) || err "Can't set up python symlink in $xbtmp/xbmkpath"; : } # Use direct path, to prevent a hang if Python is using a virtual environment, |