Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161209248
D48693.id150015.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D48693.id150015.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D48693: build/development.7: System building examples
Attached
Detach File
Event Timeline
Log In to Comment