summaryrefslogtreecommitdiff
path: root/include/inject.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-05-11 00:56:28 +0100
committerLeah Rowe <leah@libreboot.org>2025-05-11 00:56:28 +0100
commita449afb287f34e23e98a74011dd655357dc4a085 (patch)
tree72ea89ab3c5908c1fd9d760e1c27262adf66d364 /include/inject.sh
parent2bbf2ae80b79ec6c6376d4606b48b0e4100d772b (diff)
inject.sh: only compile nvmutil if needed
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/inject.sh')
-rw-r--r--include/inject.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/inject.sh b/include/inject.sh
index 9963150f..890ac275 100644
--- a/include/inject.sh
+++ b/include/inject.sh
@@ -39,9 +39,6 @@ inject()
esac
[ "$new_mac" = "keep" ] && new_mac=""
- [ -n "$new_mac" ] && [ "$new_mac" != "restore" ] && \
- x_ make -C util/nvmutil clean && x_ make -C util/nvmutil
-
check_release
check_target && patch_release
@@ -124,6 +121,7 @@ modify_mac()
{
x_ cp "${CONFIG_GBE_BIN_PATH##*../}" "$xbmklocal/gbe"
[ -n "$new_mac" ] && [ "$new_mac" != "restore" ] && \
+ x_ make -C util/nvmutil clean && x_ make -C util/nvmutil && \
x_ "$nvm" "$xbmklocal/gbe" setmac "$new_mac"
fx_ newmac x_ find "$tmpromdir" -maxdepth 1 -type f -name "*.rom"