fs/iso9660: add Grub splashscreen support
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 29 Dec 2013 17:33:46 +0000 (18:33 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 30 Dec 2013 23:05:17 +0000 (00:05 +0100)
When Grub is built with splashscreen support, copy the splashscreen
image to the ISO9660 filesystem. Otherwise, disable the splashscreen
in the grub menu.lst file.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
fs/iso9660/iso9660.mk
fs/iso9660/menu.lst

index 56e87bbb49133df41fe76ee99d78fe5082875866..aa179040503fd116e1b642ac467ccbe5aa84bd59 100644 (file)
@@ -16,6 +16,11 @@ $(BINARIES_DIR)/rootfs.iso9660: host-cdrkit host-fakeroot linux rootfs-cpio grub
        mkdir -p $(ISO9660_TARGET_DIR)/boot/grub
        cp $(GRUB_DIR)/stage2/stage2_eltorito $(ISO9660_TARGET_DIR)/boot/grub/
        cp $(ISO9660_BOOT_MENU) $(ISO9660_TARGET_DIR)/boot/grub/menu.lst
+ifeq ($(BR2_TARGET_GRUB_SPLASH),)
+       $(SED) '/^splashimage/d' $(ISO9660_TARGET_DIR)/boot/grub/menu.lst
+else
+       cp boot/grub/splash.xpm.gz $(ISO9660_TARGET_DIR)/
+endif
        cp $(LINUX_IMAGE_PATH) $(ISO9660_TARGET_DIR)/kernel
 ifeq ($(BR2_TARGET_ROOTFS_INITRAMFS),y)
        $(SED) '/initrd/d'  $(ISO9660_TARGET_DIR)/boot/grub/menu.lst
index ed7836a43431d75c08c080ff46f141b1adf0cbc4..c0bbff6928d237d0c55a709234b5012ead3c10a2 100644 (file)
@@ -1,6 +1,15 @@
 default                0
 timeout                10
-color cyan/blue white/blue
+
+# Used when no splashimage is used
+color          cyan/blue white/blue
+
+# Gets enabled/disabled depending on Grub support for splashimage
+splashimage    /splash.xpm.gz
+
+# Used when a splashimage is enabled
+foreground     000000
+background     cccccc
 
 title          Buildroot ISO9660 image
 kernel         /kernel