- also allow grub for x86_64
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 17 Nov 2006 11:47:04 +0000 (11:47 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 17 Nov 2006 11:47:04 +0000 (11:47 -0000)
- bump version

target/x86/grub/Config.in
target/x86/grub/grub.mk

index f84c0d48cbbfe06a7cc548a23b5f185c13215272..72326055a5c855035b1d25879f65b22a2c69cec8 100644 (file)
@@ -1,7 +1,7 @@
 config BR2_TARGET_GRUB
        bool "grub"
        default n
-       depends on BR2_i386
+       depends on BR2_i386 || BR2_x86_64
        help
          The GRand Unified Bootloader for x86 systems.
 
index 62fc99c9709e1874555d2794bad7f494081b934e..4e887200065ef2527e6e7cfc953ab9bdd83568d0 100644 (file)
@@ -1,20 +1,38 @@
+GRUB_SUPPORTED_ARCH=n
 ifeq ($(ARCH),i386)
+GRUB_SUPPORTED_ARCH=y
+endif
+ifeq ($(ARCH),i486)
+GRUB_SUPPORTED_ARCH=y
+endif
+ifeq ($(ARCH),i586)
+GRUB_SUPPORTED_ARCH=y
+endif
+ifeq ($(ARCH),i686)
+GRUB_SUPPORTED_ARCH=y
+endif
+ifeq ($(ARCH),x86_64)
+GRUB_SUPPORTED_ARCH=y
+endif
+ifeq ($(GRUB_SUPPORTED_ARCH),y)
 #############################################################
 #
 # grub
 #
 #############################################################
 GRUB_SOURCE:=grub_0.97.orig.tar.gz
-GRUB_PATCH=grub_0.97-5.diff.gz
+GRUB_PATCH=grub_0.97-18.diff.gz
 GRUB_SITE=http://ftp.debian.org/debian/pool/main/g/grub
 GRUB_CAT:=$(ZCAT)
 GRUB_DIR:=$(BUILD_DIR)/grub-0.97
 GRUB_BINARY:=grub/grub
 GRUB_TARGET_BINARY:=bin/grub
 
+GRUB_TARGET_FILES:=
 ifeq ($(BR2_TARGET_GRUB_SPLASH),y)
 GRUB_CONFIGURE_ARGS+=--enable-graphics
-GRUB_SPLASHIMAGE=splash.xpm.gz
+GRUB_SPLASHIMAGE=$(TOPDIR)/target/x86/grub/splash.xpm.gz
+GRUB_TARGET_FILES+=$(GRUB_SPLASHIMAGE)
 endif
 GRUB_CFLAGS=-DSUPPORT_LOOPDEV
 
@@ -56,6 +74,10 @@ $(GRUB_DIR)/$(GRUB_BINARY): $(GRUB_DIR)/.configured
        $(MAKE) CC=$(TARGET_CC) -C $(GRUB_DIR)
 
 grub-target_binary: $(GRUB_DIR)/$(GRUB_BINARY)
+       cp $(GRUB_DIR)/$(GRUB_BINARY) $(TARGET_DIR)/sbin/
+       test -d $(TARGET_DIR)/boot/grub || mkdir -p $(TARGET_DIR)/boot/grub
+       cp $(GRUB_DIR)/stage1/stage1 $(GRUB_DIR)/stage2/*1_5 $(GRUB_DIR)/stage2/stage2 $(TARGET_DIR)/boot/grub/
+
 
 grub: grub-target_binary