Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Build and install bootxx_ext2fs, primary boot for ext2fs.



details:   https://anonhg.NetBSD.org/src/rev/50c80f1a78aa
branches:  trunk
changeset: 757674:50c80f1a78aa
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Sep 11 13:06:36 2010 +0000

description:
Build and install bootxx_ext2fs, primary boot for ext2fs.

Ext2fs doesn't have enough free space (it has only 1KB)
to store this primary loader, but we can put it into
an independent small 'boot' partition as NetBSD/hp300 does
if it's really necessary.

It could be a fun project to add smaller pre-primary loader
that loads ~8KB primary loader for ext2fs, but probably it's unlikely
because there is a functional wheel named GRUB for ext2fs.

diffstat:

 distrib/sets/lists/base/md.amd64                  |  3 ++-
 distrib/sets/lists/base/md.i386                   |  3 ++-
 sys/arch/i386/stand/bootxx/Makefile               |  7 ++++++-
 sys/arch/i386/stand/bootxx/bootxx_ext2fs/Makefile |  5 +++++
 4 files changed, 15 insertions(+), 3 deletions(-)

diffs (61 lines):

diff -r b46649c6add9 -r 50c80f1a78aa distrib/sets/lists/base/md.amd64
--- a/distrib/sets/lists/base/md.amd64  Sat Sep 11 12:43:54 2010 +0000
+++ b/distrib/sets/lists/base/md.amd64  Sat Sep 11 13:06:36 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: md.amd64,v 1.93 2010/08/07 05:30:58 agc Exp $
+# $NetBSD: md.amd64,v 1.94 2010/09/11 13:06:36 tsutsui Exp $
 ./dev/lms0                                     base-obsolete           obsolete
 ./dev/mms0                                     base-obsolete           obsolete
 ./libexec/ld.elf_so-i386                       base-sys-shlib          compat,pic
@@ -263,6 +263,7 @@
 ./usr/mdec/boot                                        base-sysutil-bin
 ./usr/mdec/bootxx_cd9660                       base-sysutil-bin
 ./usr/mdec/bootxx_dosfs                                base-obsolete           obsolete
+./usr/mdec/bootxx_ext2fs                       base-sysutil-bin
 ./usr/mdec/bootxx_fat16                                base-sysutil-bin
 ./usr/mdec/bootxx_ffsv1                                base-sysutil-bin
 ./usr/mdec/bootxx_ffsv2                                base-sysutil-bin
diff -r b46649c6add9 -r 50c80f1a78aa distrib/sets/lists/base/md.i386
--- a/distrib/sets/lists/base/md.i386   Sat Sep 11 12:43:54 2010 +0000
+++ b/distrib/sets/lists/base/md.i386   Sat Sep 11 13:06:36 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: md.i386,v 1.136 2009/08/18 23:43:31 jmcneill Exp $
+# $NetBSD: md.i386,v 1.137 2010/09/11 13:06:36 tsutsui Exp $
 ./dev/lms0                                     base-obsolete           obsolete
 ./dev/mms0                                     base-obsolete           obsolete
 ./dev/pms0                                     base-obsolete           obsolete
@@ -62,6 +62,7 @@
 ./usr/mdec/bootwd                              base-obsolete           obsolete
 ./usr/mdec/bootxx_cd9660                       base-sysutil-bin
 ./usr/mdec/bootxx_dosfs                                base-obsolete           obsolete
+./usr/mdec/bootxx_ext2fs                       base-sysutil-bin
 ./usr/mdec/bootxx_fat16                                base-sysutil-bin
 ./usr/mdec/bootxx_ffsv1                                base-sysutil-bin
 ./usr/mdec/bootxx_ffsv2                                base-sysutil-bin
diff -r b46649c6add9 -r 50c80f1a78aa sys/arch/i386/stand/bootxx/Makefile
--- a/sys/arch/i386/stand/bootxx/Makefile       Sat Sep 11 12:43:54 2010 +0000
+++ b/sys/arch/i386/stand/bootxx/Makefile       Sat Sep 11 13:06:36 2010 +0000
@@ -1,8 +1,13 @@
-# $NetBSD: Makefile,v 1.12 2010/05/27 06:58:14 dholland Exp $
+# $NetBSD: Makefile,v 1.13 2010/09/11 13:06:37 tsutsui Exp $
 
 SUBDIR=        bootxx_cd9660 bootxx_ffsv1 .WAIT bootxx_ffsv2 bootxx_lfsv1 bootxx_lfsv2
 SUBDIR+=bootxx_msdos bootxx_ustarfs
 
+# Ext2fs doesn't have enough free space (it has only 1KB)
+# to store this primary bootloader, but we can put it into
+# an independent small 'boot' partition as NetBSD/hp300 does.
+SUBDIR+=bootxx_ext2fs
+
 LIBOBJ= ${.OBJDIR}
 .MAKEOVERRIDES+= LIBOBJ
 
diff -r b46649c6add9 -r 50c80f1a78aa sys/arch/i386/stand/bootxx/bootxx_ext2fs/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/i386/stand/bootxx/bootxx_ext2fs/Makefile Sat Sep 11 13:06:36 2010 +0000
@@ -0,0 +1,5 @@
+# $NetBSD: Makefile,v 1.1 2010/09/11 13:06:37 tsutsui Exp $
+
+FS=ext2fs
+
+.include <../Makefile.bootxx>



Home | Main Index | Thread Index | Old Index