summaryrefslogtreecommitdiff
path: root/script/build/boot
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-09-05 00:50:08 +0100
committerLeah Rowe <leah@libreboot.org>2023-09-05 00:53:28 +0100
commit15081ed9efc54c69d5600dd0379ee16eb271df89 (patch)
tree0bf3de02690ef01810b91beb4b0a57765cbdcde1 /script/build/boot
parent0d315c3a4eb75474b8753d3a51fb1ddd7382a3ea (diff)
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>
Diffstat (limited to 'script/build/boot')
-rwxr-xr-xscript/build/boot/roms_helper9
1 files changed, 2 insertions, 7 deletions
diff --git a/script/build/boot/roms_helper b/script/build/boot/roms_helper
index 76487877..4cfe4bf1 100755
--- a/script/build/boot/roms_helper
+++ b/script/build/boot/roms_helper
@@ -60,6 +60,7 @@ cbdir=""
cbfstool=""
corebootrom=""
seavgabiosrom="elf/seabios/default/libgfxinit/vgabios.bin"
+grub_background="background1280x800.png"
initmode=""
displaymode=""
@@ -362,13 +363,7 @@ build_grub_roms() {
# we only need insert background.png once, for each coreboot config:
if [ "${displaymode}" = "vesafb" ] || \
[ "${displaymode}" = "corebootfb" ]; then
- backgroundfile="background1280x800.png"
- 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}"
+ backgroundfile="config/grub/background/${grub_background}"
"${cbfstool}" "${tmprompath}" add -f ${backgroundfile} \
-n background.png -t raw || \
err "build_grub_roms: cannot add background.png to tmprom"