diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-03-18 13:07:29 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-03-18 13:07:29 +0000 |
commit | ee161b3eb9c133d0a08c6017379f0668471c0a81 (patch) | |
tree | 5e0274295160b1cb435c6b2120b8fdbe3d52af3e /target/x86/grub/grub.mk | |
parent | 8d98a89f89f8508ba233b4838b0357b6f70d1cd1 (diff) |
- add optional splashimage support
Diffstat (limited to 'target/x86/grub/grub.mk')
-rw-r--r-- | target/x86/grub/grub.mk | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/target/x86/grub/grub.mk b/target/x86/grub/grub.mk index 4882fd12b..092aa7e77 100644 --- a/target/x86/grub/grub.mk +++ b/target/x86/grub/grub.mk @@ -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 |