Page MenuHomeFreeBSD

D48693.id150015.diff
No OneTemporary

D48693.id150015.diff

diff --git a/share/man/man7/development.7 b/share/man/man7/development.7
--- a/share/man/man7/development.7
+++ b/share/man/man7/development.7
@@ -128,6 +128,7 @@
Phabricator review tooling
.El
.Sh EXAMPLES
+.Ss Testing a development branch
Check out the CURRENT branch, build it, and install, overwriting the current
system:
.Bd -literal -offset indent
@@ -144,6 +145,30 @@
reboot
.Ed
.Pp
+.Ss Testing a custom kernel
+Create a custom kernel configuration by including an existing
+configuration and using
+.Cm device Ns / Ns Cm nodevice
+and
+.Cm options Ns / Ns Cm nooption
+to select and configure components:
+.Bd -literal -offset indent
+cd src
+cat >> EOF > sys/amd64/conf/MYKERNEL
+include GENERIC
+ident MYKERNEL
+nodevice sound
+EOF
+.Ed
+.Pp
+After creating the new kernel configuration, build it, and install,
+moving the old kernel to
+.Pa /boot/kernel.old/ :
+.Bd -literal -offset indent
+make -j8 kernel KERNCONF=$HOSTNAME
+reboot
+.Ed
+.Ss Testing a single piece of userspace
Rebuild and reinstall a single piece of userspace, in this
case
.Xr ls 1 :
@@ -152,6 +177,7 @@
make clean all install
.Ed
.Pp
+.Ss Testing a loadable kernel module
Rebuild and reinstall a single loadable kernel module, in this case
.Xr sound 4 :
.Bd -literal -offset indent
@@ -159,6 +185,7 @@
make all install clean cleandepend KMODDIR=/boot/kernel
.Ed
.Pp
+.Ss Quick kernel rebuild
Quickly rebuild and reinstall the kernel, only recompiling the files
changed since last build; note that this will only work if the full kernel
build has been completed in the past, not on a fresh source tree:
@@ -167,6 +194,7 @@
make -sj8 kernel KERNFAST=1
.Ed
.Pp
+.Ss Cross-compiling
To rebuild parts of
.Fx
for another CPU architecture,

File Metadata

Mime Type
text/plain
Expires
Thu, Jul 2, 4:45 PM (9 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34599461
Default Alt Text
D48693.id150015.diff (1 KB)

Event Timeline