summaryrefslogtreecommitdiff
path: root/script/build/roms
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-01-01 21:57:27 +0000
committerLeah Rowe <leah@libreboot.org>2024-01-01 22:36:43 +0000
commit4870e84e711fe152c4d86c8e8d566d6d4059cf43 (patch)
tree1fd2dcf878860a4c58086b8340ef9272b236e10f /script/build/roms
parent0e955f1e709baa88705853ab6097fccc726e2d79 (diff)
build/roms: don't needlessly re-build grub.elf
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/build/roms')
-rwxr-xr-xscript/build/roms3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/build/roms b/script/build/roms
index 825e43e3..f69ff134 100755
--- a/script/build/roms
+++ b/script/build/roms
@@ -156,6 +156,7 @@ build_grub_payload()
"$keymap" > "elf/grub/keymap_$keymap.cfg" || err "!key"; :
done
[ -n "${_keyboard}" ] && keymaps="${kmapdir}/${_keyboard}.gkb"
+ [ -f "$grubelf" ] && return 0
[ -f "src/grub/grub-mkstandalone" ] || x_ ./update trees -b grub
./src/grub/grub-mkstandalone \
@@ -180,7 +181,7 @@ build_grub_payload()
"${layoutdir}/usqwerty.gkb=${grubcfgsdir}/keymap/usqwerty.gkb" \
"/boot/grub/grub.cfg=${grubcfgsdir}/config/grub_memdisk.cfg" \
"/boot/grub/grub_default.cfg=${grubcfgsdir}/config/grub.cfg" || \
- err "build_grub_elf: cannot build grub payload (grub-mkstandalone)"
+ err "could not generate grub.elf"
}
build_uboot_payload()