mk: add forx function for shorthand loops

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-09-17 01:35:30 +01:00
parent 7c025e1036
commit 856551a36d
5 changed files with 30 additions and 29 deletions
+2 -5
View File
@@ -24,8 +24,7 @@ inject()
archive="$1";
new_mac="xx:xx:xx:xx:xx:xx"
nuke=""
xchanged=""
eval "`newvar nuke xchanged`"
[ $# -gt 1 ] && case "$2" in
nuke)
@@ -169,9 +168,7 @@ modify_mac()
x_ cp "${CONFIG_GBE_BIN_PATH##*../}" "$xbtmp/gbe"
if [ -n "$new_mac" ] && [ "$new_mac" != "restore" ]; then
x_ make -C util/nvmutil clean
x_ make -C util/nvmutil
forx 'x_ make -C util/nvmutil %s' clean nvmutil
x_ "$nvmutil" "$xbtmp/gbe" setmac "$new_mac"
fi