summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-07-09 03:09:49 +0100
committerLeah Rowe <leah@libreboot.org>2024-07-09 03:09:49 +0100
commit5a1d2401c2654e0cb24b36032d4347fdc6ef8a6f (patch)
treeac23e3cfb5bd4eef3c7ba07243bcf8c73f4a816c
parent9646172145e62ab39a050c0536f6d82bf84c844d (diff)
minor cleanup
Signed-off-by: Leah Rowe <leah@libreboot.org>
-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