From a449afb287f34e23e98a74011dd655357dc4a085 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 11 May 2025 00:56:28 +0100 Subject: inject.sh: only compile nvmutil if needed Signed-off-by: Leah Rowe --- include/inject.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'include/inject.sh') 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" -- cgit v1.2.1