mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-20 15:03:44 +02:00
build/payload/grub: rename functions for clarity
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -44,13 +44,13 @@ main()
|
|||||||
# Separate GRUB payload per keymap to save space in ROM.
|
# Separate GRUB payload per keymap to save space in ROM.
|
||||||
|
|
||||||
for keylayoutfile in ${grubcfgsdir}/keymap/*.gkb; do
|
for keylayoutfile in ${grubcfgsdir}/keymap/*.gkb; do
|
||||||
build_grub_payload "${keylayoutfile}"
|
build_grub_payloads "${keylayoutfile}"
|
||||||
done
|
done
|
||||||
|
|
||||||
printf "Done! Check payload/grub/ to see the files.\n\n"
|
printf "Done! Check payload/grub/ to see the files.\n\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
build_grub_payload()
|
build_grub_payloads()
|
||||||
{
|
{
|
||||||
keylayoutfile=${1}
|
keylayoutfile=${1}
|
||||||
|
|
||||||
@@ -61,7 +61,7 @@ build_grub_payload()
|
|||||||
keymap="${keymap%.gkb}"
|
keymap="${keymap%.gkb}"
|
||||||
|
|
||||||
build_grub_elf "${keylayoutfile}"
|
build_grub_elf "${keylayoutfile}"
|
||||||
create_grub_configs
|
create_grub_config
|
||||||
|
|
||||||
printf "Created 'payload/grub/grub_%s.elf' and configs.'\n" \
|
printf "Created 'payload/grub/grub_%s.elf' and configs.'\n" \
|
||||||
"${keymap}"
|
"${keymap}"
|
||||||
@@ -85,7 +85,7 @@ build_grub_elf()
|
|||||||
${gcfg} ${grubk}
|
${gcfg} ${grubk}
|
||||||
}
|
}
|
||||||
|
|
||||||
create_grub_configs()
|
create_grub_config()
|
||||||
{
|
{
|
||||||
sed "s/usqwerty/${keymap}/" \
|
sed "s/usqwerty/${keymap}/" \
|
||||||
< ${grubcfgsdir}/config/grub.cfg \
|
< ${grubcfgsdir}/config/grub.cfg \
|
||||||
|
|||||||
Reference in New Issue
Block a user