From 5a1d2401c2654e0cb24b36032d4347fdc6ef8a6f Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 9 Jul 2024 03:09:49 +0100 Subject: minor cleanup Signed-off-by: Leah Rowe --- include/rom.sh | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'include') diff --git a/include/rom.sh b/include/rom.sh index 9b0943b9..10871935 100644 --- a/include/rom.sh +++ b/include/rom.sh @@ -42,6 +42,18 @@ mkpayload_grub() $err "$tree: cannot build grub.elf"; return 0 } +mkvendorfiles() +{ + if [ "$_f" = "-d" ]; then + check_coreboot_utils "$tree" + elif [ "$_f" = "-b" ]; then + printf "%s\n" "${version%%-*}" > "$cdir/.coreboot-version" || \ + $err "!mk $cdir .coreboot-version" + fi + [ -z "$mode" ] && [ "$target" != "$tree" ] && \ + x_ ./vendor download $target; return 0 +} + check_coreboot_utils() { for util in cbfstool ifdtool; do @@ -57,17 +69,6 @@ check_coreboot_utils() done; return 0 } -mkvendorfiles() -{ - if [ "$_f" = "-d" ]; then - check_coreboot_utils "$tree" - elif [ "$_f" = "-b" ]; then - printf "%s\n" "${version%%-*}" > "$cdir/.coreboot-version" - fi - [ -z "$mode" ] && [ "$target" != "$tree" ] && \ - x_ ./vendor download $target; return 0 -} - mkcorebootbin() { [ "$_f" = "-d" ] && return 0 # dry run -- cgit v1.2.1