mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-09-20 05:30:25 +02:00
mk: add forx function for shorthand loops
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
+1
-4
@@ -131,10 +131,7 @@ mkcorebootbin()
|
||||
return 0
|
||||
|
||||
$if_not_dry_build \
|
||||
check_coreboot_util cbfstool
|
||||
|
||||
$if_not_dry_build \
|
||||
check_coreboot_util ifdtool
|
||||
forx 'check_coreboot_util %s' cbfstool ifdtool
|
||||
|
||||
for y in "$target_dir/config"/*; do
|
||||
defconfig="$y"
|
||||
|
||||
@@ -443,10 +443,7 @@ bootstrap()
|
||||
x_ "$mk" -f coreboot "${cbdir##*/}"
|
||||
x_ "$mk" -f me_cleaner
|
||||
|
||||
x_ "$mk" -b bios_extract
|
||||
x_ "$mk" -b biosutilities
|
||||
x_ "$mk" -b uefitool
|
||||
x_ "$mk" -b libarchive # for bsdtar and bsdunzip
|
||||
forx 'x_ \"$mk\" -b %s' bios_extract biosutilities uefitool libarchive
|
||||
|
||||
[ -d "${kbc1126_ec_dump%/*}" ] && \
|
||||
x_ make -C "$cbdir/util/kbc1126"
|
||||
|
||||
Reference in New Issue
Block a user