2004-05-10 Robert Millan <robertmh@gnu.org>

* lib/device.c: Mangle __FreeBSD_* macro usage to support
        kFreeBSD-based non-FreeBSD systems (i.e. GNU/kFreeBSD).

        Implement runtime detection of version of kFreeBSD. Now if
        we build against kFreeBSD 5.x headers the GRUB shell will work on
        both 4.x and 5.x.

        Replace `u_int_t' types with portable `unsigned int' and old
        reference to `geometry' structure to new `geom' one.

        * docs/menu.lst: Split GNU/kFreeBSD and GNU/kNetBSD as separate
        options than FreeBSD and NetBSD, respectively. There are minor
        differences now (different paths).
This commit is contained in:
robertmh 2004-05-10 21:46:49 +00:00
parent 6355ac9d94
commit 7b676b85ea
3 changed files with 114 additions and 51 deletions

View file

@ -23,6 +23,16 @@ root (hd1,0)
kernel /vmlinuz root=/dev/hdb1
#initrd /initrd.img
# For booting GNU/kFreeBSD
title GNU/kFreeBSD
root (hd0,2,a)
kernel /boot/loader.gz
# For booting GNU/kNetBSD
title GNU/kNetBSD
root (hd0,2,a)
kernel --type=netbsd /boot/knetbsd.gz
# For booting Mach (getting kernel from floppy)
title Utah Mach4 multiboot
root (hd0,2)
@ -30,13 +40,13 @@ pause Insert the diskette now!!
kernel (fd0)/boot/kernel root=hd0s3
module (fd0)/boot/bootstrap
# For booting FreeBSD or GNU/KFreeBSD
title FreeBSD / GNU/KFreeBSD
# For booting FreeBSD
title FreeBSD
root (hd0,2,a)
kernel /boot/loader
# For booting NetBSD or GNU/KNetBSD
title NetBSD / GNU/KNetBSD
# For booting NetBSD
title NetBSD
root (hd0,2,a)
kernel --type=netbsd /netbsd