download/coreboot: split main()

fsdg20230625
Leah Rowe 2023-05-15 00:40:54 +01:00
parent 4c2cff5e7c
commit 31d8fcd3fd
1 changed files with 9 additions and 5 deletions

View File

@ -39,9 +39,17 @@ main()
list_supported_boards
exit 0
fi
[ -f build_error ] && rm -f build_error
fetch_coreboot_trees
rm -f "build_error"
printf "\n\n"
exit 0
}
fetch_coreboot_trees()
{
rm -f resources/coreboot/*/seen
printf "Downloading coreboot and (if available) applying patches\n"
@ -62,10 +70,6 @@ main()
done
rm -f resources/coreboot/*/seen
rm -f "build_error"
printf "\n\n"
exit 0
}
downloadfor() {