mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-19 19:23:24 +02:00
inject.sh: only compile nvmutil if needed
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+1
-3
@@ -39,9 +39,6 @@ inject()
|
|||||||
esac
|
esac
|
||||||
[ "$new_mac" = "keep" ] && new_mac=""
|
[ "$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_release
|
||||||
check_target && patch_release
|
check_target && patch_release
|
||||||
|
|
||||||
@@ -124,6 +121,7 @@ modify_mac()
|
|||||||
{
|
{
|
||||||
x_ cp "${CONFIG_GBE_BIN_PATH##*../}" "$xbmklocal/gbe"
|
x_ cp "${CONFIG_GBE_BIN_PATH##*../}" "$xbmklocal/gbe"
|
||||||
[ -n "$new_mac" ] && [ "$new_mac" != "restore" ] && \
|
[ -n "$new_mac" ] && [ "$new_mac" != "restore" ] && \
|
||||||
|
x_ make -C util/nvmutil clean && x_ make -C util/nvmutil && \
|
||||||
x_ "$nvm" "$xbmklocal/gbe" setmac "$new_mac"
|
x_ "$nvm" "$xbmklocal/gbe" setmac "$new_mac"
|
||||||
|
|
||||||
fx_ newmac x_ find "$tmpromdir" -maxdepth 1 -type f -name "*.rom"
|
fx_ newmac x_ find "$tmpromdir" -maxdepth 1 -type f -name "*.rom"
|
||||||
|
|||||||
Reference in New Issue
Block a user