svn commit: r341635 - head/share/man/man7
Edward Tomasz Napierala
trasz at FreeBSD.org
Thu Dec 6 13:52:03 UTC 2018
Author: trasz
Date: Thu Dec 6 13:52:02 2018
New Revision: 341635
URL: https://svnweb.freebsd.org/changeset/base/341635
Log:
Add examples for "make buildenv".
MFC after: 2 weeks
Sponsored by: DARPA, AFRL
Modified:
head/share/man/man7/development.7
Modified: head/share/man/man7/development.7
==============================================================================
--- head/share/man/man7/development.7 Thu Dec 6 13:46:18 2018 (r341634)
+++ head/share/man/man7/development.7 Thu Dec 6 13:52:02 2018 (r341635)
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd November 30, 2018
+.Dd December 6, 2018
.Dt DEVELOPMENT 7
.Os
.Sh NAME
@@ -134,6 +134,29 @@ build has been completed in the past, not on a fresh s
.Bd -literal -offset indent
cd src
make -sj8 kernel KERNFAST=1
+.Ed
+.Pp
+To rebuild parts of
+.Fx
+for another CPU architecture,
+first prepare your source tree by building the cross-toolchain:
+.Bd -literal -offset indent
+cd src
+make -sj8 toolchain TARGET_ARCH=armv6
+.Ed
+.Pp
+Afterwards, to build and install a single piece of userspace, use:
+.Bd -literal -offset indent
+cd src/bin/ls
+make buildenv TARGET_ARCH=armv6
+make clean all install DESTDIR=/clients/arm
+.Ed
+.Pp
+Likewise, to quickly rebuild and reinstall the kernel, use:
+.Bd -literal -offset indent
+cd src
+make buildenv TARGET_ARCH=armv6
+make -sj8 kernel KERNFAST=1 DESTDIR=/clients/arm
.Ed
.Sh SEE ALSO
.Xr svnlite 1 ,
More information about the svn-src-all
mailing list