diff options
author | Leah Rowe <leah@libreboot.org> | 2023-05-20 20:10:19 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-05-20 20:16:10 +0100 |
commit | c973b959092626e90ed8929d15c5b20e50ab5e9e (patch) | |
tree | 1b0e01083cc3a431839b2665afae727cf6c976e0 /resources/scripts/build/payload/grub | |
parent | 51e0e40123bd7b1f5faab921dd0af5a476438059 (diff) |
build/payload/grub: rename functions for clarity
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'resources/scripts/build/payload/grub')
-rwxr-xr-x | resources/scripts/build/payload/grub | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/resources/scripts/build/payload/grub b/resources/scripts/build/payload/grub index d170f501..23765f47 100755 --- a/resources/scripts/build/payload/grub +++ b/resources/scripts/build/payload/grub @@ -44,13 +44,13 @@ main() # Separate GRUB payload per keymap to save space in ROM. for keylayoutfile in ${grubcfgsdir}/keymap/*.gkb; do - build_grub_payload "${keylayoutfile}" + build_grub_payloads "${keylayoutfile}" done printf "Done! Check payload/grub/ to see the files.\n\n" } -build_grub_payload() +build_grub_payloads() { keylayoutfile=${1} @@ -61,7 +61,7 @@ build_grub_payload() keymap="${keymap%.gkb}" build_grub_elf "${keylayoutfile}" - create_grub_configs + create_grub_config printf "Created 'payload/grub/grub_%s.elf' and configs.'\n" \ "${keymap}" @@ -85,7 +85,7 @@ build_grub_elf() ${gcfg} ${grubk} } -create_grub_configs() +create_grub_config() { sed "s/usqwerty/${keymap}/" \ < ${grubcfgsdir}/config/grub.cfg \ |