summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-01-17 23:22:22 +0000
committerLeah Rowe <leah@libreboot.org>2024-01-17 23:22:22 +0000
commitdf007d22ec801679b5e8f43ee861b78515518ce2 (patch)
tree0eadcece5c267ba2b814faeae64c45bfff4161e1
parentd44c9551c5e7456c2caa4a2815d33ff978dc55ef (diff)
build/roms: err if -k layout doesn't exist
if the user defines a layout that doesn't exist, throw an error in lbmk. Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xscript/build/roms2
1 files changed, 2 insertions, 0 deletions
diff --git a/script/build/roms b/script/build/roms
index 8278a9ab..d1d4e71a 100755
--- a/script/build/roms
+++ b/script/build/roms
@@ -152,6 +152,8 @@ build_grub_payload()
[ -f "elf/grub/keymap_$keymap.cfg" ] || printf "keymap %s\n" \
"$keymap" > "elf/grub/keymap_$keymap.cfg" || err "!key"; :
done
+ [ -z "$_keyboard" ] || [ -f "$grubcfgsdir/keymap/$_keyboard.gkb" ] && \
+ err "build_grub_payload: $_keyboard layout not defined"
[ -n "$_keyboard" ] && keymaps="${grubcfgsdir}/keymap/${_keyboard}.gkb"
[ -f "$grubelf" ] && return 0
[ -f "src/grub/grub-mkstandalone" ] || x_ ./update trees -b grub