summaryrefslogtreecommitdiff
path: root/include/inject.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-09-02 06:08:57 +0100
committerLeah Rowe <leah@libreboot.org>2025-09-02 06:29:20 +0100
commit0d107ad872b1eb87dcd46e8dc66963696ad08d82 (patch)
tree3fada55824cb2b36781a9cb8f76ac9d86c634d31 /include/inject.sh
parent64b69907ababbafc13a0fdaabc3aaf439e02ec86 (diff)
xbmk: remove xbloc, re-use xbtmp instead
we no longer separate them. xbloc was the on-disk tmp directory, whereas xbtmp used to be in /tmp which we assumed to be tmpfs (it may not be, but often is on many workstation setups - and our documentation recommended doing this). as mentioned in the previous commit, benchmarking shows little speed difference using tmpfs /tmp versus on-disk /tmp, for our purposes at least. therefore, the handling of tmp files is being greatly simplified. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/inject.sh')
-rw-r--r--include/inject.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/inject.sh b/include/inject.sh
index fa46ee94..77d99874 100644
--- a/include/inject.sh
+++ b/include/inject.sh
@@ -117,21 +117,21 @@ scankconfig()
modify_mac()
{
- x_ cp "${CONFIG_GBE_BIN_PATH##*../}" "$xbloc/gbe"
+ x_ cp "${CONFIG_GBE_BIN_PATH##*../}" "$xbtmp/gbe"
[ -n "$new_mac" ] && [ "$new_mac" != "restore" ] && \
x_ make -C util/nvmutil clean && x_ make -C util/nvmutil && \
- x_ "$nvm" "$xbloc/gbe" setmac "$new_mac"
+ x_ "$nvm" "$xbtmp/gbe" setmac "$new_mac"
fx_ newmac x_ find "$tmpromdir" -maxdepth 1 -type f -name "*.rom"
printf "\nThe following GbE NVM data will be written:\n"
- x_ "$nvm" "$xbloc/gbe" dump | grep -v "bytes read from file" || :
+ x_ "$nvm" "$xbtmp/gbe" dump | grep -v "bytes read from file" || :
}
newmac()
{
e "$1" f && xchanged="y" && x_ \
- "$ifdtool" $ifdprefix -i GbE:"$xbloc/gbe" "$1" -O "$1"; :
+ "$ifdtool" $ifdprefix -i GbE:"$xbtmp/gbe" "$1" -O "$1"; :
}
remktar()