Commit ee161b3e authored by Bernhard Reutner-Fischer's avatar Bernhard Reutner-Fischer
Browse files

- add optional splashimage support

parent 8d98a89f
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -4,3 +4,14 @@ config BR2_TARGET_GRUB
	depends on BR2_i386
	help
	  The GRand Unified Bootloader for x86 systems.

config BR2_TARGET_GRUB_SPLASH
	bool "  Splashimage support"
	default n
	depends on BR2_TARGET_GRUB
	help
	  Add support for splashimage.
	  
	  A splashimage is a 14-color indexed .xpm picture which
	  is displayed as background for the grub menu.
+1407 −0

File added.

Preview size limit exceeded, changes collapsed.

+11 −0
Original line number Diff line number Diff line
--- grub-0.97.oorig/stage2/disk_io.c	2004-05-23 18:35:24.000000000 +0200
+++ grub-0.97/stage2/disk_io.c	2006-03-12 14:11:51.000000000 +0100
@@ -365,7 +365,7 @@ rawwrite (int drive, int sector, char *b
 int
 devwrite (int sector, int sector_count, char *buf)
 {
-#if defined(GRUB_UTIL) && defined(__linux__)
+#if defined(GRUB_UTIL) && defined(__linux__) && !defined(SUPPORT_LOOPDEV)
   if (current_partition != 0xFFFFFF
       && is_disk_device (device_map, current_drive))
     {
+9 −1
Original line number Diff line number Diff line
@@ -12,6 +12,12 @@ GRUB_DIR:=$(BUILD_DIR)/grub-0.97
GRUB_BINARY:=grub/grub
GRUB_TARGET_BINARY:=bin/grub

ifeq ($(BR2_TARGET_GRUB_SPLASH),y)
GRUB_CONFIGURE_ARGS+=--enable-graphics
GRUB_SPLASHIMAGE=splash.xpm.gz
endif
GRUB_CFLAGS=-DSUPPORT_LOOPDEV

$(DL_DIR)/$(GRUB_SOURCE):
	 $(WGET) -P $(DL_DIR) $(GRUB_SITE)/$(GRUB_SOURCE)

@@ -23,9 +29,10 @@ grub-source: $(DL_DIR)/$(GRUB_SOURCE) $(DL_DIR)/$(GRUB_PATCH)
$(GRUB_DIR)/.unpacked: $(DL_DIR)/$(GRUB_SOURCE) $(DL_DIR)/$(GRUB_PATCH)
	$(GRUB_CAT) $(DL_DIR)/$(GRUB_SOURCE) | tar -C $(BUILD_DIR) -xvf -
	$(GRUB_CAT) $(DL_DIR)/$(GRUB_PATCH)  | patch -p1 -d $(GRUB_DIR)
	for i in `cat $(GRUB_DIR)/debian/patches/00list`; do \
	for i in `grep -v "^#" $(GRUB_DIR)/debian/patches/00list`; do \
		cat $(GRUB_DIR)/debian/patches/$$i | patch -p1 -d $(GRUB_DIR); \
	done
	toolchain/patch-kernel.sh $(GRUB_DIR) target/x86/grub/ grub\*.patch
	touch $(GRUB_DIR)/.unpacked

$(GRUB_DIR)/.configured: $(GRUB_DIR)/.unpacked
@@ -41,6 +48,7 @@ $(GRUB_DIR)/.configured: $(GRUB_DIR)/.unpacked
		--mandir=/usr/man \
		--infodir=/usr/info \
		--disable-auto-linux-mem-opt \
		$(GRUB_CONFIGURE_ARGS) \
	);
	touch  $(GRUB_DIR)/.configured

+44.1 KiB

File added.

No diff preview for this file type.