diff options
author | Francis Rowe <info@gluglug.org.uk> | 2015-02-07 10:45:46 (EST) |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2015-02-07 10:45:46 (EST) |
commit | 1f99c6988968cfa930a0dde5e90a24bd56578f18 (patch) | |
tree | 6cb8dafdbcaa63646880b955ef62c302f4f078dc /buildrom-withgrub | |
parent | 981f5044d9f0c7f68b71ed5866a3fb76354fe1ce (diff) | |
download | libreboot-1f99c6988968cfa930a0dde5e90a24bd56578f18.zip libreboot-1f99c6988968cfa930a0dde5e90a24bd56578f18.tar.gz libreboot-1f99c6988968cfa930a0dde5e90a24bd56578f18.tar.bz2 |
buildrom-withgrub: Put background.jpg in CBFS, not GRUB memdisk
The background.jpg was put in CBFS originally to save space inside
CBFS because the GRUB payload is LZMA compressed by coreboot. The
actual measured saving in space for background.jpg being in the
memdisk was about 4KiB.
Putting it in CBFS means that the user can easily change their
background image if they want to.
Diffstat (limited to 'buildrom-withgrub')
-rwxr-xr-x | buildrom-withgrub | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/buildrom-withgrub b/buildrom-withgrub index 7baafa3..d904241 100755 --- a/buildrom-withgrub +++ b/buildrom-withgrub @@ -68,6 +68,12 @@ do mv build/coreboot.rom "$1"_"$romtype".rom # .config no longer needed rm -f .config + + # Add the background image + if [ "$romtype" = "vesafb" ] + then + ./util/cbfstool/cbfstool "$1"_"$romtype".rom add -f ../resources/grub/background/background.jpg -n background.jpg -t raw + fi # Add the correct GRUB configuration file for this image. for keymap in $(ls ../resources/utilities/grub-assemble/keymap/original) |