diff options
author | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2017-05-11 08:39:55 +0000 |
---|---|---|
committer | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2017-05-11 08:39:55 +0000 |
commit | f472116578cc28514a70737bf640928671692d55 (patch) | |
tree | a4d8ae900ffad2161afd16bfb88707dbf5c57c20 | |
parent | 9596f60f169062efb8eda3c6b0afe682dedaf85f (diff) | |
download | src-f472116578cc28514a70737bf640928671692d55.tar.gz src-f472116578cc28514a70737bf640928671692d55.zip |
Improve build(7): add missing "buildkernel" and "installkernel"
to the example, change the architectures to something more common,
and improve description of defaults for TARGET.
Reviewed by: bdrewery, ngie, imp (older revisions)
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D10654
Notes
Notes:
svn path=/head/; revision=318182
-rw-r--r-- | share/man/man7/build.7 | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/share/man/man7/build.7 b/share/man/man7/build.7 index 7a26db0a90b0..d5036daf87b5 100644 --- a/share/man/man7/build.7 +++ b/share/man/man7/build.7 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd March 22, 2017 +.Dd May 11, 2017 .Dt BUILD 7 .Os .Sh NAME @@ -528,7 +528,10 @@ and .Va TARGET Ns = Ns Li arm64 . If not set, .Va TARGET -defaults to the current hardware platform. +defaults to the current hardware platform, unless +.Va TARGET_ARCH +is also set, in which case it defaults to the appropriate +value for that architecture. .It Va TARGET_ARCH The target machine processor architecture. This is analogous to the @@ -689,11 +692,11 @@ section in .Pa src/UPDATING . .Pp The following sequence of commands can be used to cross-build the -system for the sparc64 architecture on an i386 host: +system for the armv6 architecture on an amd64 host: .Bd -literal -offset indent cd /usr/src -make TARGET=sparc64 buildworld -make TARGET=sparc64 DESTDIR=/clients/sparc64 installworld +make TARGET_ARCH=armv6 buildworld buildkernel +make TARGET_ARCH=armv6 DESTDIR=/clients/arm64 installworld installkernel .Ed .Sh SEE ALSO .Xr cc 1 , @@ -702,6 +705,7 @@ make TARGET=sparc64 DESTDIR=/clients/sparc64 installworld .Xr svn 1 , .Xr make.conf 5 , .Xr src.conf 5 , +.Xr arch 7 , .Xr ports 7 , .Xr release 7 , .Xr tests 7 , |