Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153029226
D56217.id174745.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
D56217.id174745.diff
View Options
diff --git a/share/man/man7/build.7 b/share/man/man7/build.7
--- a/share/man/man7/build.7
+++ b/share/man/man7/build.7
@@ -25,7 +25,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd December 4, 2025
+.Dd April 1, 2026
.Dt BUILD 7
.Os
.Sh NAME
@@ -1030,7 +1030,7 @@
depend on them, delete old files and libraries:
.Pp
.Dl make delete-old delete-old-libs
-.Ss Example 2: Build and upgrade a custom kernel in place
+.Ss Example 2: Build and upgrade a custom kernel
Create a custom kernel configuration,
.Va MYKERNEL ,
by including an existing configuration and using
@@ -1048,7 +1048,7 @@
.Ed
.Pp
After creating the new kernel configuration, build a fresh toolchain,
-build the kernel, and install it, moving the old kernel to
+build the kernel, and install it directly, moving the old kernel to
.Pa /boot/kernel.old/ :
.Bd -literal -offset indent
make kernel-toolchain
@@ -1057,7 +1057,17 @@
shutdown -r now
.Ed
.Pp
-To build the kernel to an alternate location, use the
+To package the kernel into a
+.Xr freebsd-base 7
+package instead of installing it directly, use
+.Cm update-packages
+instead of
+.Cm installkernel :
+.Bd -literal -offset indent
+make buildkernel KERNCONF=MYKERNEL update-packages
+.Ed
+.Pp
+To install the kernel directly to an alternate location, use the
.Va INSTKERNNAME
variable and boot it once to test via
.Xr nextboot 8 :
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 19, 5:45 PM (15 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30728458
Default Alt Text
D56217.id174745.diff (1 KB)
Attached To
Mode
D56217: build.7: Explain packaging a custom kernel
Attached
Detach File
Event Timeline
Log In to Comment