summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/rom.sh23
1 files changed, 12 insertions, 11 deletions
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