summaryrefslogtreecommitdiffstats
path: root/fs/iso9660
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-12-29 18:33:46 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-12-31 00:05:17 +0100
commit13d7c78394eed40c5c336fa6cfe4dbe2c94719dd (patch)
treec3daf61ac530dfee5a6b98aa8cf543ee19713ca8 /fs/iso9660
parented23c92b6267ac1ae4c118ecc6196fe019541141 (diff)
downloadbuildroot-13d7c78394eed40c5c336fa6cfe4dbe2c94719dd.tar.gz
buildroot-13d7c78394eed40c5c336fa6cfe4dbe2c94719dd.zip
fs/iso9660: add Grub splashscreen support
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>
Diffstat (limited to 'fs/iso9660')
-rw-r--r--fs/iso9660/iso9660.mk5
-rw-r--r--fs/iso9660/menu.lst11
2 files changed, 15 insertions, 1 deletions
diff --git a/fs/iso9660/iso9660.mk b/fs/iso9660/iso9660.mk
index 56e87bbb49..aa17904050 100644
--- a/fs/iso9660/iso9660.mk
+++ b/fs/iso9660/iso9660.mk
@@ -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
diff --git a/fs/iso9660/menu.lst b/fs/iso9660/menu.lst
index ed7836a434..c0bbff6928 100644
--- a/fs/iso9660/menu.lst
+++ b/fs/iso9660/menu.lst
@@ -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
OpenPOWER on IntegriCloud