aboutsummaryrefslogtreecommitdiff
path: root/projects/grub/grub-helper
diff options
context:
space:
mode:
authorLeah Rowe <info@minifree.org>2017-09-03 14:43:19 +0000
committerGogs <gogitservice@gmail.com>2017-09-03 14:43:19 +0000
commit5e7b1de1df92d1db32f9e28516a99c1096ff90d5 (patch)
tree6d4f36034be29b0bfab020081b8a73ad83469a1c /projects/grub/grub-helper
parent422f5de5c83b25d2835a5baa1bd5ed876d60bd5e (diff)
parenta9fe65d0a0218352420b289a6535d8c668d64c5d (diff)
downloadlibrebootfr-5e7b1de1df92d1db32f9e28516a99c1096ff90d5.tar.gz
librebootfr-5e7b1de1df92d1db32f9e28516a99c1096ff90d5.zip
Merge branch 'grub-integration' of kragle/libreboot into master
Diffstat (limited to 'projects/grub/grub-helper')
-rwxr-xr-xprojects/grub/grub-helper11
1 files changed, 8 insertions, 3 deletions
diff --git a/projects/grub/grub-helper b/projects/grub/grub-helper
index 342b03eb..3e1420ac 100755
--- a/projects/grub/grub-helper
+++ b/projects/grub/grub-helper
@@ -82,10 +82,15 @@ grub_build_utils() {
grub_build_layout() {
local raw_layout="${1##*/}"
local raw_layout_path="$1"
- local grub_kbdcomp="${sources_path}/grub-kbdcomp"
- local grub_kbd_layout="${build_path}/${raw_layout}.gkb"
+ local keymap_out_path="${build_path}/keymaps"
+ local grub_mklayout="${sources_path}/grub-mklayout"
+ local grub_kbd_layout="${keymap_out_path}/${raw_layout}.gkb"
- "${grub_kbdcomp}" --output="${grub_kbd_layout}" "${raw_layout_path}"
+ if ! [[ -e "${keymap_out_path}" ]]; then
+ mkdir -p "${keymap_out_path}"
+ fi
+
+ "${grub_mklayout}" --output="${grub_kbd_layout}" --input="${raw_layout_path}"
}
grub_build_bootable_image() {