build/payload/grub: rename functions for clarity

Signed-off-by: Leah Rowe <leah@libreboot.org>
fsdg20230625
Leah Rowe 2023-05-20 20:10:19 +01:00
parent 51e0e40123
commit c973b95909
1 changed files with 4 additions and 4 deletions

View File

@ -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 \