diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/lib.sh | 8 | ||||
-rw-r--r-- | include/vendor.sh | 4 |
2 files changed, 9 insertions, 3 deletions
diff --git a/include/lib.sh b/include/lib.sh index 586ecde1..2c9cd0d4 100644 --- a/include/lib.sh +++ b/include/lib.sh @@ -212,3 +212,11 @@ cbfs() lzma="-c lzma" && [ $# -gt 3 ] && lzma="-t raw" x_ "$cbfstool" "$1" $ccmd -f "$2" -n "$3" $lzma } + +mk() +{ + mk_flag="$1" || $err "No argument given" + shift 1 && for mk_arg in $@; do + ./mk $mk_flag $mk_arg || $err "./mk $mk_flag $mk_arg"; : + done; : +} diff --git a/include/vendor.sh b/include/vendor.sh index a6e82271..ea1d4f0a 100644 --- a/include/vendor.sh +++ b/include/vendor.sh @@ -48,9 +48,7 @@ readkconfig() bootstrap() { x_ ./mk -f coreboot ${cbdir##*/} - for d in uefitool biosutilities bios_extract; do - x_ ./mk -b "$d" - done + mk -b uefitool biosutilities bios_extract [ -d "${kbc1126_ec_dump%/*}" ] && x_ make -C "$cbdir/util/kbc1126" [ -n "$MRC_refcode_cbtree" ] && \ cbfstoolref="elf/cbfstool/$MRC_refcode_cbtree/cbfstool" && \ |