From 0fae54a1b2eb300d39161b43a423bcb72f95741c Mon Sep 17 00:00:00 2001 From: Andrew Robbins Date: Sun, 6 Aug 2017 02:37:43 -0400 Subject: Undo the bundling of keymaps into grub.elf Having the keymaps compiled into the GRUB executable is convenient but may end up taking up too much room for systems with constrained flash space (e.g. those limited to 2048kB). --- projects/grub/grub | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'projects') diff --git a/projects/grub/grub b/projects/grub/grub index e357cae8..4a7ba1ec 100755 --- a/projects/grub/grub +++ b/projects/grub/grub @@ -69,17 +69,9 @@ build() { local sources_path="$(project_sources_path "${project}" "${repository}" "$@")" local build_path="$(project_build_path "${project}" "$@")" - local -a grub_keymaps - mapfile -t grub_install_modules < "${project_path}/${CONFIGS}/grub-install-modules" mapfile -t grub_load_modules < "${project_path}/${CONFIGS}/grub-load-modules" - for keymap in "${project_path}/${CONFIGS}/keymap"/*; do - if [[ -f "${keymap}" ]]; then - grub_keymaps+=("/boot/grub/layouts/${keymap##*/}=${keymap}") - fi - done - mkdir -p "${build_path}" ( @@ -101,8 +93,7 @@ build() { --directory=grub-core \ -O i386-coreboot \ -o grub.elf \ - /boot/grub/grub.cfg="${project_path}/${CONFIGS}/grub.cfg" \ - "${grub_keymaps[@]}" + /boot/grub/grub.cfg="${project_path}/${CONFIGS}/grub.cfg" # Copy the ELF to its build directory cp grub.elf "${build_path}" -- cgit v1.2.3-70-g09d2