From 4870e84e711fe152c4d86c8e8d566d6d4059cf43 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Mon, 1 Jan 2024 21:57:27 +0000 Subject: build/roms: don't needlessly re-build grub.elf Signed-off-by: Leah Rowe --- script/build/roms | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'script') 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() -- cgit v1.2.1