summaryrefslogtreecommitdiff
path: root/share/man/man8
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-11-12 07:47:07 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-11-12 07:47:07 +0000
commit0f765c5ef20e4996dcca94cac38d85f469d40482 (patch)
treef3c110dfe9b8d76f430518d0da8e67a5fd3d3a1e /share/man/man8
parentb3d8f7f700bf39976c7a495407fa0a8fbc450b7f (diff)
describing building kernels
Diffstat (limited to 'share/man/man8')
-rw-r--r--share/man/man8/afterboot.833
1 files changed, 33 insertions, 0 deletions
diff --git a/share/man/man8/afterboot.8 b/share/man/man8/afterboot.8
index a88525b59f5..69b9dbeb1b1 100644
--- a/share/man/man8/afterboot.8
+++ b/share/man/man8/afterboot.8
@@ -229,6 +229,39 @@ to
You may wish to create a file
.Pa amd.home
in this directory, or alternatively supply your amd.home map via YP.
+\!\"--------------------------------------------------------------------------
+.Sh COMPILING A KERNEL
+To compile your own kernel off a CDROM do the following:
+.Bd -literal -offset indent
+# cd /somewhere
+# cp /usr/src/sys/arch/$ARCH/conf/SOMEFILE .
+# edit SOMEFILE (to make any changes you want)
+# config -s /usr/src/sys -b . SOMEFILE
+# make
+.Ed
+.Pp
+To compile a kernel inside a writable source tree, do the following:
+.Bd -literal -offset indent
+# cd /sys/arch/$ARCH/conf
+# edit SOMEFILE (to make any changes you want)
+# config SOMEFILE
+# cd ../compile/SOMEFILE
+# make
+.Ed
+.Pp
+$ARCH should be the architecture (e.g. i386). If you like, do a
+"make depend" too so you'll have your dependencies there next time
+you do a compile.
+.Pp
+After either of these two steps, you can place the new kernel (called
+.Pa bsd )
+in
+.Pa /
+and the system will boot it next time. Most people save their backup
+kernels as
+.Pa /bsd.1 ,
+.Pa /bsd.2 ...
+\!\"--------------------------------------------------------------------------
.Sh CHANGING /ETC FILES
The system should be usable now, but you may wish to do more customizing,
such as adding of users, etc. Many of the following sections may be skipped