summaryrefslogtreecommitdiff
path: root/recipes/grub
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/grub
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
rename packages/ to recipes/ per earlier agreement
See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/grub')
-rw-r--r--recipes/grub/grub-0.93/autohell.patch166
-rw-r--r--recipes/grub/grub-0.93/memcpy.patch13
-rw-r--r--recipes/grub/grub-0.93/reiserfs.patch11
-rw-r--r--recipes/grub/grub-0.97/automake-1.10.patch16
-rw-r--r--recipes/grub/grub-0.97/menu.lst6
-rw-r--r--recipes/grub/grub_0.93.bb15
-rw-r--r--recipes/grub/grub_0.97.bb30
7 files changed, 257 insertions, 0 deletions
diff --git a/recipes/grub/grub-0.93/autohell.patch b/recipes/grub/grub-0.93/autohell.patch
new file mode 100644
index 0000000000..ca1f2d1cb5
--- /dev/null
+++ b/recipes/grub/grub-0.93/autohell.patch
@@ -0,0 +1,166 @@
+--- grub-0.93/configure.in~ 2002-11-29 20:12:08.000000000 +0000
++++ grub-0.93/configure.in 2004-01-04 12:03:05.000000000 +0000
+@@ -54,7 +54,7 @@
+ _AM_DEPENDENCIES(CC)
+
+ dnl Because recent automake complains about AS, set it here.
+-AS="$CC"
++AM_PROG_AS
+ AC_SUBST(AS)
+
+ AC_ARG_WITH(binutils,
+--- grub-0.93/stage1/Makefile.am~ 2002-09-08 02:58:08.000000000 +0100
++++ grub-0.93/stage1/Makefile.am 2004-01-04 12:31:38.000000000 +0000
+@@ -4,7 +4,7 @@
+ CLEANFILES = $(nodist_pkgdata_DATA)
+
+ # We can't use builtins or standard includes.
+-AM_ASFLAGS = $(STAGE1_CFLAGS) -fno-builtin -nostdinc
++AM_CCASFLAGS = $(STAGE1_CFLAGS) -fno-builtin -nostdinc $(DEFAULT_INCLUDES)
+ LDFLAGS = -nostdlib -Wl,-N,-Ttext,7C00
+
+ noinst_PROGRAMS = stage1.exec
+--- grub-0.93/stage2/Makefile.am~ 2002-11-29 18:00:53.000000000 +0000
++++ grub-0.93/stage2/Makefile.am 2004-01-04 12:30:29.000000000 +0000
+@@ -12,6 +12,7 @@
+
+ # For <stage1.h>.
+ INCLUDES = -I$(top_srcdir)/stage1
++AM_CCASFLAGS = $(DEFAULT_INCLUDES) $(INCLUDES)
+
+ # The library for /sbin/grub.
+ noinst_LIBRARIES = libgrub.a
+@@ -88,7 +89,7 @@
+ fsys_vstafs.c fsys_xfs.c gunzip.c hercules.c md5.c serial.c \
+ smp-imps.c stage2.c terminfo.c tparm.c
+ pre_stage2_exec_CFLAGS = $(STAGE2_COMPILE) $(FSYS_CFLAGS)
+-pre_stage2_exec_ASFLAGS = $(STAGE2_COMPILE) $(FSYS_CFLAGS)
++pre_stage2_exec_CCASFLAGS = $(STAGE2_COMPILE) $(FSYS_CFLAGS) $(AM_CCASFLAGS)
+ pre_stage2_exec_LDFLAGS = $(PRE_STAGE2_LINK)
+
+ if NETBOOT_SUPPORT
+@@ -109,7 +110,7 @@
+ echo "#define STAGE2_SIZE $$6" > stage2_size.h
+
+ start_exec_SOURCES = start.S
+-start_exec_ASFLAGS = $(STAGE2_COMPILE)
++start_exec_CCASFLAGS = $(STAGE2_COMPILE) $(AM_CCASFLAGS)
+ start_exec_LDFLAGS = $(START_LINK)
+
+ # XXX: automake doesn't provide a way to specify dependencies for object
+@@ -127,8 +128,8 @@
+ stage1_5.c fsys_ext2fs.c bios.c
+ e2fs_stage1_5_exec_CFLAGS = $(STAGE1_5_COMPILE) -DFSYS_EXT2FS=1 \
+ -DNO_BLOCK_FILES=1
+-e2fs_stage1_5_exec_ASFLAGS = $(STAGE1_5_COMPILE) -DFSYS_EXT2FS=1 \
+- -DNO_BLOCK_FILES=1
++e2fs_stage1_5_exec_CCASFLAGS = $(STAGE1_5_COMPILE) -DFSYS_EXT2FS=1 \
++ -DNO_BLOCK_FILES=1 $(AM_CCASFLAGS)
+ e2fs_stage1_5_exec_LDFLAGS = $(STAGE1_5_LINK)
+
+ # For fat_stage1_5 target.
+@@ -136,8 +137,8 @@
+ stage1_5.c fsys_fat.c bios.c
+ fat_stage1_5_exec_CFLAGS = $(STAGE1_5_COMPILE) -DFSYS_FAT=1 \
+ -DNO_BLOCK_FILES=1
+-fat_stage1_5_exec_ASFLAGS = $(STAGE1_5_COMPILE) -DFSYS_FAT=1 \
+- -DNO_BLOCK_FILES=1
++fat_stage1_5_exec_CCASFLAGS = $(STAGE1_5_COMPILE) -DFSYS_FAT=1 \
++ -DNO_BLOCK_FILES=1 $(AM_CCASFLAGS)
+ fat_stage1_5_exec_LDFLAGS = $(STAGE1_5_LINK)
+
+ # For ffs_stage1_5 target.
+@@ -145,8 +146,8 @@
+ stage1_5.c fsys_ffs.c bios.c
+ ffs_stage1_5_exec_CFLAGS = $(STAGE1_5_COMPILE) -DFSYS_FFS=1 \
+ -DNO_BLOCK_FILES=1
+-ffs_stage1_5_exec_ASFLAGS = $(STAGE1_5_COMPILE) -DFSYS_FFS=1 \
+- -DNO_BLOCK_FILES=1
++ffs_stage1_5_exec_CCASFLAGS = $(STAGE1_5_COMPILE) -DFSYS_FFS=1 \
++ -DNO_BLOCK_FILES=1 $(AM_CCASFLAGS)
+ ffs_stage1_5_exec_LDFLAGS = $(STAGE1_5_LINK)
+
+ # For minix_stage1_5 target.
+@@ -154,8 +155,8 @@
+ stage1_5.c fsys_minix.c bios.c
+ minix_stage1_5_exec_CFLAGS = $(STAGE1_5_COMPILE) -DFSYS_MINIX=1 \
+ -DNO_BLOCK_FILES=1
+-minix_stage1_5_exec_ASFLAGS = $(STAGE1_5_COMPILE) -DFSYS_MINIX=1 \
+- -DNO_BLOCK_FILES=1
++minix_stage1_5_exec_CCASFLAGS = $(STAGE1_5_COMPILE) -DFSYS_MINIX=1 \
++ -DNO_BLOCK_FILES=1 $(AM_CCASFLAGS)
+ minix_stage1_5_exec_LDFLAGS = $(STAGE1_5_LINK)
+
+ # For reiserfs_stage1_5 target.
+@@ -163,8 +164,8 @@
+ disk_io.c stage1_5.c fsys_reiserfs.c bios.c
+ reiserfs_stage1_5_exec_CFLAGS = $(STAGE1_5_COMPILE) -DFSYS_REISERFS=1 \
+ -DNO_BLOCK_FILES=1
+-reiserfs_stage1_5_exec_ASFLAGS = $(STAGE1_5_COMPILE) -DFSYS_REISERFS=1 \
+- -DNO_BLOCK_FILES=1
++reiserfs_stage1_5_exec_CCASFLAGS = $(STAGE1_5_COMPILE) -DFSYS_REISERFS=1 \
++ -DNO_BLOCK_FILES=1 $(AM_CCASFLAGS)
+ reiserfs_stage1_5_exec_LDFLAGS = $(STAGE1_5_LINK)
+
+ # For vstafs_stage1_5 target.
+@@ -172,8 +173,8 @@
+ disk_io.c stage1_5.c fsys_vstafs.c bios.c
+ vstafs_stage1_5_exec_CFLAGS = $(STAGE1_5_COMPILE) -DFSYS_VSTAFS=1 \
+ -DNO_BLOCK_FILES=1
+-vstafs_stage1_5_exec_ASFLAGS = $(STAGE1_5_COMPILE) -DFSYS_VSTAFS=1 \
+- -DNO_BLOCK_FILES=1
++vstafs_stage1_5_exec_CCASFLAGS = $(STAGE1_5_COMPILE) -DFSYS_VSTAFS=1 \
++ -DNO_BLOCK_FILES=1 $(AM_CCASFLAGS)
+ vstafs_stage1_5_exec_LDFLAGS = $(STAGE1_5_LINK)
+
+ # For jfs_stage1_5 target.
+@@ -181,8 +182,8 @@
+ disk_io.c stage1_5.c fsys_jfs.c bios.c
+ jfs_stage1_5_exec_CFLAGS = $(STAGE1_5_COMPILE) -DFSYS_JFS=1 \
+ -DNO_BLOCK_FILES=1
+-jfs_stage1_5_exec_ASFLAGS = $(STAGE1_5_COMPILE) -DFSYS_JFS=1 \
+- -DNO_BLOCK_FILES=1
++jfs_stage1_5_exec_CCASFLAGS = $(STAGE1_5_COMPILE) -DFSYS_JFS=1 \
++ -DNO_BLOCK_FILES=1 $(AM_CCASFLAGS)
+ jfs_stage1_5_exec_LDFLAGS = $(STAGE1_5_LINK)
+
+ # For xfs_stage1_5 target.
+@@ -190,16 +191,16 @@
+ disk_io.c stage1_5.c fsys_xfs.c bios.c
+ xfs_stage1_5_exec_CFLAGS = $(STAGE1_5_COMPILE) -DFSYS_XFS=1 \
+ -DNO_BLOCK_FILES=1
+-xfs_stage1_5_exec_ASFLAGS = $(STAGE1_5_COMPILE) -DFSYS_XFS=1 \
+- -DNO_BLOCK_FILES=1
++xfs_stage1_5_exec_CCASFLAGS = $(STAGE1_5_COMPILE) -DFSYS_XFS=1 \
++ -DNO_BLOCK_FILES=1 $(AM_CCASFLAGS)
+ xfs_stage1_5_exec_LDFLAGS = $(STAGE1_5_LINK)
+
+ # For diskless target.
+ diskless_exec_SOURCES = $(pre_stage2_exec_SOURCES)
+ diskless_exec_CFLAGS = $(STAGE2_COMPILE) $(FSYS_CFLAGS) \
+ -DSUPPORT_DISKLESS=1
+-diskless_exec_ASFLAGS = $(STAGE2_COMPILE) $(FSYS_CFLAGS) \
+- -DSUPPORT_DISKLESS=1
++diskless_exec_CCASFLAGS = $(STAGE2_COMPILE) $(FSYS_CFLAGS) \
++ -DSUPPORT_DISKLESS=1 $(AM_CCASFLAGS)
+ diskless_exec_LDFLAGS = $(PRE_STAGE2_LINK)
+ diskless_exec_LDADD = ../netboot/libdrivers.a
+
+@@ -210,7 +211,7 @@
+
+ # For nbloader target.
+ nbloader_exec_SOURCES = nbloader.S
+-nbloader_exec_ASFLAGS = $(STAGE2_COMPILE)
++nbloader_exec_CCASFLAGS = $(STAGE2_COMPILE) $(AM_CCASFLAGS)
+ nbloader_exec_LDFLAGS = $(NBLOADER_LINK)
+
+ # XXX: See the comment for start_exec-start.o.
+@@ -223,7 +224,7 @@
+
+ # For pxeloader target.
+ pxeloader_exec_SOURCES = pxeloader.S
+-pxeloader_exec_ASFLAGS = $(STAGE2_COMPILE)
++pxeloader_exec_CCASFLAGS = $(STAGE2_COMPILE) $(AM_CCASFLAGS)
+ pxeloader_exec_LDFLAGS = $(PXELOADER_LINK)
+
+ # XXX: See the comment for start_exec-start.o.
diff --git a/recipes/grub/grub-0.93/memcpy.patch b/recipes/grub/grub-0.93/memcpy.patch
new file mode 100644
index 0000000000..dd5da33a8b
--- /dev/null
+++ b/recipes/grub/grub-0.93/memcpy.patch
@@ -0,0 +1,13 @@
+--- grub-0.93/stage2/asm.S~ 2002-12-02 23:18:56.000000000 +0000
++++ grub-0.93/stage2/asm.S 2004-01-04 12:50:11.000000000 +0000
+@@ -62,6 +62,10 @@
+ start:
+ _start:
+ #endif /* ! STAGE1_5 */
++
++#undef memcpy
++ENTRY(memcpy)
++ jmp EXT_C(grub_memmove)
+
+ ENTRY(main)
+ /*
diff --git a/recipes/grub/grub-0.93/reiserfs.patch b/recipes/grub/grub-0.93/reiserfs.patch
new file mode 100644
index 0000000000..5b4fb5bfa4
--- /dev/null
+++ b/recipes/grub/grub-0.93/reiserfs.patch
@@ -0,0 +1,11 @@
+--- grub-0.93/stage2/fsys_reiserfs.c~ 2002-11-29 17:46:01.000000000 +0000
++++ grub-0.93/stage2/fsys_reiserfs.c 2004-01-04 12:16:34.000000000 +0000
+@@ -112,7 +112,7 @@
+ /* offset in the log of where to start replay after a crash */
+ __u32 j_first_unflushed_offset;
+ /* mount id to detect very old transactions */
+- __u32 long j_mount_id;
++ __u32 j_mount_id;
+ };
+
+ /* magic string to find desc blocks in the journal */
diff --git a/recipes/grub/grub-0.97/automake-1.10.patch b/recipes/grub/grub-0.97/automake-1.10.patch
new file mode 100644
index 0000000000..e7c6ec061f
--- /dev/null
+++ b/recipes/grub/grub-0.97/automake-1.10.patch
@@ -0,0 +1,16 @@
+--- grub-0.97/configure.ac.orig
++++ grub-0.97/configure.ac
+@@ -56,12 +56,7 @@
+
+ AC_CHECK_TOOL(CC, gcc)
+ AC_PROG_CC
+-# We need this for older versions of Autoconf.
+-_AM_DEPENDENCIES(CC)
+-
+-dnl Because recent automake complains about AS, set it here.
+-CCAS="$CC"
+-AC_SUBST(CCAS)
++AM_PROG_AS
+
+ AC_ARG_WITH(binutils,
+ [ --with-binutils=DIR search the directory DIR to find binutils])
diff --git a/recipes/grub/grub-0.97/menu.lst b/recipes/grub/grub-0.97/menu.lst
new file mode 100644
index 0000000000..510e8f82b6
--- /dev/null
+++ b/recipes/grub/grub-0.97/menu.lst
@@ -0,0 +1,6 @@
+# menu.lst
+default 0
+timeout 5
+title OpenEmbedded Linux (hda1)
+root (hd0,0)
+kernel /boot/bzImage root=/dev/hda1 ro
diff --git a/recipes/grub/grub_0.93.bb b/recipes/grub/grub_0.93.bb
new file mode 100644
index 0000000000..9fc008412d
--- /dev/null
+++ b/recipes/grub/grub_0.93.bb
@@ -0,0 +1,15 @@
+DESCRIPTION = "GRUB is the GRand Unified Bootloader"
+HOMEPAGE = "http://www.gnu.org/software/grub"
+SECTION = "bootloaders"
+PRIORITY = "optional"
+
+SRC_URI = "ftp://alpha.gnu.org/gnu/grub/grub-${PV}.tar.gz; \
+ file://autohell.patch;patch=1 \
+ file://memcpy.patch;patch=1 \
+ file://reiserfs.patch;patch=1"
+
+inherit autotools
+
+COMPATIBLE_HOST = 'i.86.*-linux'
+
+FILES_${PN}-doc = "${datadir}"
diff --git a/recipes/grub/grub_0.97.bb b/recipes/grub/grub_0.97.bb
new file mode 100644
index 0000000000..ef37af19e0
--- /dev/null
+++ b/recipes/grub/grub_0.97.bb
@@ -0,0 +1,30 @@
+DESCRIPTION = "GRand Unified Bootloader"
+HOMEPAGE = "http://www.gnu.org/software/grub"
+SECTION = "bootloaders"
+PRIORITY = "optional"
+RDEPENDS = "diffutils"
+PR = "r4"
+
+SRC_URI = "ftp://alpha.gnu.org/gnu/grub/grub-${PV}.tar.gz \
+ file://automake-1.10.patch;patch=1 \
+ file://menu.lst"
+
+inherit autotools
+
+python __anonymous () {
+ import re
+ host = bb.data.getVar('HOST_SYS', d, 1)
+ if not re.match('i.86.*-linux', host):
+ raise bb.parse.SkipPackage("incompatible with host %s" % host)
+}
+
+do_install_append() {
+ install -d ${D}/boot/
+ ln -sf ../usr/lib/grub/i386${TARGET_VENDOR}/ ${D}/boot/grub
+
+ # TODO: better use grub-set-default script here?
+ install -m 0644 ${WORKDIR}/menu.lst ${D}/boot/grub
+}
+
+FILES_${PN}-doc = "${datadir}"
+FILES_${PN} = "/boot /usr"