- add optional splashimage support

This commit is contained in:
Bernhard Reutner-Fischer 2006-03-18 13:07:29 +00:00
parent 8d98a89f89
commit ee161b3eb9
5 changed files with 1438 additions and 1 deletions

View File

@ -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.

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,11 @@
--- 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))
{

View File

@ -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

Binary file not shown.