mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-20 05:36:23 +02:00
inject.sh: Only build nvmutil once
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+6
-2
@@ -341,6 +341,11 @@ inject()
|
|||||||
esac
|
esac
|
||||||
[ "$new_mac" = "keep" ] && new_mac=""
|
[ "$new_mac" = "keep" ] && new_mac=""
|
||||||
|
|
||||||
|
if [ -n "$new_mac" ] && [ "$new_mac" != "restore" ]; then
|
||||||
|
x_ make -C util/nvmutil clean
|
||||||
|
x_ make -C util/nvmutil
|
||||||
|
fi
|
||||||
|
|
||||||
check_release "$archive" || $err "'$archive' is not a release archive"
|
check_release "$archive" || $err "'$archive' is not a release archive"
|
||||||
|
|
||||||
readcfg && need_files="y"
|
readcfg && need_files="y"
|
||||||
@@ -562,8 +567,7 @@ modify_mac()
|
|||||||
[ -n "$CONFIG_GBE_BIN_PATH" ] || return 1
|
[ -n "$CONFIG_GBE_BIN_PATH" ] || return 1
|
||||||
|
|
||||||
x_ cp "${CONFIG_GBE_BIN_PATH##*../}" tmp/gbe
|
x_ cp "${CONFIG_GBE_BIN_PATH##*../}" tmp/gbe
|
||||||
[ "$new_mac" != "restore" ] && x_ make -C util/nvmutil clean && \
|
[ -n "$new_mac" ] && [ "$new_mac" != "restore" ] && \
|
||||||
x_ make -C util/nvmutil && \
|
|
||||||
x_ "$nvm" tmp/gbe setmac "$new_mac"
|
x_ "$nvm" tmp/gbe setmac "$new_mac"
|
||||||
|
|
||||||
fe_ newmac "$tmpromdir" -maxdepth 1 -type f -name "*.rom"
|
fe_ newmac "$tmpromdir" -maxdepth 1 -type f -name "*.rom"
|
||||||
|
|||||||
Reference in New Issue
Block a user