aboutsummaryrefslogtreecommitdiff
path: root/projects/grub
diff options
context:
space:
mode:
authorAndrew Robbins <contact@andrewrobbins.info>2017-08-06 02:37:43 -0400
committerAndrew Robbins <contact@andrewrobbins.info>2017-08-07 07:48:03 -0400
commit0fae54a1b2eb300d39161b43a423bcb72f95741c (patch)
treec927af9f8d4bc6a7120b194a7f8cb6995d8610dd /projects/grub
parentba4416a464ffa971d914082ed737061e4f7e4d98 (diff)
downloadlibrebootfr-0fae54a1b2eb300d39161b43a423bcb72f95741c.tar.gz
librebootfr-0fae54a1b2eb300d39161b43a423bcb72f95741c.zip
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).
Diffstat (limited to 'projects/grub')
-rwxr-xr-xprojects/grub/grub11
1 files changed, 1 insertions, 10 deletions
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}"