[BACK]Return to BUILDING CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/BUILDING between version 1.116 and 1.125

version 1.116, 2014/11/16 05:45:43 version 1.125, 2017/04/20 09:29:10
Line 1 
Line 1 
 BUILDING(8)                 System Manager's Manual                BUILDING(8)  BUILDING(8)                 System Manager's Manual                BUILDING(8)
   
 NAME  NAME
      BUILDING -- Procedure for building NetBSD from source code.       BUILDING - Procedure for building NetBSD from source code.
   
 REQUIREMENTS  REQUIREMENTS
      NetBSD is designed to be buildable on most POSIX-compliant host systems.       NetBSD is designed to be buildable on most POSIX-compliant host systems.
Line 77  FILES
Line 77  FILES
                     any of these directories are missing, they will be skipped                      any of these directories are missing, they will be skipped
                     during the build.                      during the build.
   
      x11/           ``Reachover'' build structure for X11R6; the source is in       external/mit/xorg/
                     X11SRCDIR.                      ``Reachover'' build structure for modular Xorg; the source
                       is in X11SRCDIR.
   
      extsrc/        ``Reachover'' build structure for externally added       extsrc/        ``Reachover'' build structure for externally added
                     programs and libraries; the source is in EXTSRCSRCDIR.                      programs and libraries; the source is in EXTSRCSRCDIR.
Line 348  CONFIGURATION
Line 349  CONFIGURATION
                  statically linked.                   statically linked.
   
                  Default: Platform dependent.  As of this writing, all                   Default: Platform dependent.  As of this writing, all
                  platforms except sh3 default to ``yes''.                   platforms except m68000 default to ``yes''.
   
      MKPICINSTALL       MKPICINSTALL
                  Can be set to ``yes'' or ``no''.  Indicates whether the ar(1)                   Can be set to ``yes'' or ``no''.  Indicates whether the ar(1)
Line 365  CONFIGURATION
Line 366  CONFIGURATION
                  by default at times due to toolchain problems with profiled                   by default at times due to toolchain problems with profiled
                  code.                   code.
   
      MKREPRO     Can be set to ``yes'' or ``no''.  Create reproducable builds.       MKREPRO     Can be set to ``yes'' or ``no''.  Create reproducible builds.
                  This enables different switches to make two builds from the                   This enables different switches to make two builds from the
                  same source tree result in the same build results.                   same source tree result in the same build results.
   
                  Default: ``no''                   Default: ``no'' This may be set to ``yes'' by giving build.sh
                    the -P option.
   
        MKREPRO_TIMESTAMP
                    Unix timestamp.  When MKREPRO is set, the timestamp of all
                    files in the sets will be set to this value.
   
                    Default: Unset.  This may be set automatically to the latest
                    source tree timestamp using cvslatest(1) by giving build.sh
                    the -P option.
   
      MKSHARE     Can be set to ``yes'' or ``no''.  Indicates whether files       MKSHARE     Can be set to ``yes'' or ``no''.  Indicates whether files
                  destined to reside in DESTDIR/usr/share will be built and                   destined to reside in DESTDIR/usr/share will be built and
Line 386  CONFIGURATION
Line 396  CONFIGURATION
   
                  Default: ``no''                   Default: ``no''
   
        MKSTRIPSYM  Can be set to ``yes'' or ``no''.  Indicates whether all local
                    symbols should be stripped from shared libraries.  If ``yes'',
                    strip all local symbols from shared libraries; the affect is
                    equivalent to -x option of ld(1). If ``no'', strip only
                    temporary local symbols; the affect is equivalent to -X
                    option of ld(1). Keeping non-temporary local symbols such as
                    static function names is useful on using DTrace for userland
                    libraries and getting a backtrace from a rump kernel loading
                    shared libraries.
   
                    Default: ``yes''
   
      MKUNPRIVED  Can be set to ``yes'' or ``no''.  Indicates whether an       MKUNPRIVED  Can be set to ``yes'' or ``no''.  Indicates whether an
                  unprivileged install will occur.  The user, group,                   unprivileged install will occur.  The user, group,
                  permissions, and file flags, will not be set on the installed                   permissions, and file flags, will not be set on the installed
Line 442  CONFIGURATION
Line 464  CONFIGURATION
                  USETOOLS is also set to ``no'' when using <bsd.*.mk> outside                   USETOOLS is also set to ``no'' when using <bsd.*.mk> outside
                  the NetBSD source tree.                   the NetBSD source tree.
   
      X11SRCDIR   Directory containing the X11R6 source.  If specified, must be       X11SRCDIR   Directory containing the modular Xorg source.  If specified,
                  an absolute path.  The main X11R6 source is found in                   must be an absolute path.  The main modular Xorg source is
                  X11SRCDIR/xfree/xc.                   found in X11SRCDIR/external/mit.
   
                  Default: NETBSDRCDIR/../xsrc, if that exists; otherwise                   Default: NETBSDRCDIR/../xsrc, if that exists; otherwise
                  /usr/xsrc.                   /usr/xsrc.
   
      X11FLAVOUR  The style of X11 cross-built, set to either ``Xorg'' or  
                  ``XFree86''.  
   
                  Default: ``Xorg'' on amd64, i386, macppc, shark and sparc64  
                  platforms, ``XFree86'' on everything else.  
   
    "make" variables for full builds     "make" variables for full builds
      These variables only affect the top level ``Makefile'' and do not affect       These variables only affect the top level ``Makefile'' and do not affect
      manually building subtrees of the NetBSD source code.       manually building subtrees of the NetBSD source code.
Line 721  BUILDING
Line 737  BUILDING
                    must have been performed with MKUNPRIVED=yes because ``make                     must have been performed with MKUNPRIVED=yes because ``make
                    install-image'' relies on information in DESTDIR/METALOG.                     install-image'' relies on information in DESTDIR/METALOG.
   
      live-image    Create NetBSD live images in the       live-image    Create NetBSD live images in the RELEASEDIR/images
                    RELEASEDIR/RELEASEMACHINEDIR/installation/liveimage  
                    directory.  The live image contains all necessary files to                     directory.  The live image contains all necessary files to
                    boot NetBSD up to multi-user mode, including all files                     boot NetBSD up to multi-user mode, including all files
                    which should be extracted during installation, NetBSD                     which should be extracted during installation, NetBSD
Line 835  BUILDING
Line 850  BUILDING
                    symbol table and can be used for debugging (for example                     symbol table and can be used for debugging (for example
                    with a cross-gdb built by MKCROSSGDB).                     with a cross-gdb built by MKCROSSGDB).
   
      mkernel=kconf  
                    Build a new kernel in modular build.  Similar to the above  
                    kernel=kconf operation, but creates intermediate per-module  
                    relocatable objects and link them to the final kernel.  
   
      kernels       This command will build all kernels defined in port       kernels       This command will build all kernels defined in port
                    specific release build procedure.                     specific release build procedure.
   
Line 1113  CAVEATS
Line 1123  CAVEATS
      files in object directories.  Instead, one may have to manually remove       files in object directories.  Instead, one may have to manually remove
      the files.  Consult the UPDATING file for notices concerning this.       the files.  Consult the UPDATING file for notices concerning this.
   
 NetBSD                          August 7, 2014                          NetBSD  NetBSD                         February 20, 2017                        NetBSD

Legend:
Removed from v.1.116  
changed lines
  Added in v.1.125

CVSweb <webmaster@jp.NetBSD.org>