mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-19 19:23:24 +02:00
grub: make backgrounds configurable in target.cfg
now under coreboot mainboards, target.cfg can specify a background. if not specified, the 1280x800 one is assumed, and used by default. it can be overridden. the path should be relative to: config/grub/background/ Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -8,3 +8,4 @@ payload_memtest="y"
|
|||||||
grub_scan_disk="ahci"
|
grub_scan_disk="ahci"
|
||||||
microcode_required="n"
|
microcode_required="n"
|
||||||
blobs_required="n"
|
blobs_required="n"
|
||||||
|
grub_background="background1024x768.png"
|
||||||
|
|||||||
@@ -8,3 +8,4 @@ payload_memtest="y"
|
|||||||
grub_scan_disk="ahci"
|
grub_scan_disk="ahci"
|
||||||
microcode_required="n"
|
microcode_required="n"
|
||||||
blobs_required="n"
|
blobs_required="n"
|
||||||
|
grub_background="background1024x768.png"
|
||||||
|
|||||||
@@ -8,3 +8,4 @@ payload_memtest="y"
|
|||||||
grub_scan_disk="ahci"
|
grub_scan_disk="ahci"
|
||||||
microcode_required="n"
|
microcode_required="n"
|
||||||
blobs_required="n"
|
blobs_required="n"
|
||||||
|
grub_background="background1024x768.png"
|
||||||
|
|||||||
@@ -8,3 +8,4 @@ payload_memtest="y"
|
|||||||
grub_scan_disk="ahci"
|
grub_scan_disk="ahci"
|
||||||
microcode_required="n"
|
microcode_required="n"
|
||||||
blobs_required="n"
|
blobs_required="n"
|
||||||
|
grub_background="background1024x768.png"
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ cbdir=""
|
|||||||
cbfstool=""
|
cbfstool=""
|
||||||
corebootrom=""
|
corebootrom=""
|
||||||
seavgabiosrom="elf/seabios/default/libgfxinit/vgabios.bin"
|
seavgabiosrom="elf/seabios/default/libgfxinit/vgabios.bin"
|
||||||
|
grub_background="background1280x800.png"
|
||||||
|
|
||||||
initmode=""
|
initmode=""
|
||||||
displaymode=""
|
displaymode=""
|
||||||
@@ -362,13 +363,7 @@ build_grub_roms() {
|
|||||||
# we only need insert background.png once, for each coreboot config:
|
# we only need insert background.png once, for each coreboot config:
|
||||||
if [ "${displaymode}" = "vesafb" ] || \
|
if [ "${displaymode}" = "vesafb" ] || \
|
||||||
[ "${displaymode}" = "corebootfb" ]; then
|
[ "${displaymode}" = "corebootfb" ]; then
|
||||||
backgroundfile="background1280x800.png"
|
backgroundfile="config/grub/background/${grub_background}"
|
||||||
if [ "${board}" = "x60" ] \
|
|
||||||
|| [ "${board}" = "t60_intelgpu" ]; then
|
|
||||||
# TODO: don't hardcode this. do it in target.cfg
|
|
||||||
backgroundfile="background1024x768.png"
|
|
||||||
fi
|
|
||||||
backgroundfile="config/grub/background/${backgroundfile}"
|
|
||||||
"${cbfstool}" "${tmprompath}" add -f ${backgroundfile} \
|
"${cbfstool}" "${tmprompath}" add -f ${backgroundfile} \
|
||||||
-n background.png -t raw || \
|
-n background.png -t raw || \
|
||||||
err "build_grub_roms: cannot add background.png to tmprom"
|
err "build_grub_roms: cannot add background.png to tmprom"
|
||||||
|
|||||||
Reference in New Issue
Block a user