Print this page
4526 nightly contains a great deal of effectively dead code

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/scripts/nightly.1
          +++ new/usr/src/tools/scripts/nightly.1
↓ open down ↓ 138 lines elided ↑ open up ↑
 139  139  .B \-i
 140  140  Do an incremental build, suppressing the "make clobber" that by
 141  141  default removes all existing binaries and derived files.  From the
 142  142  command line, -i also suppresses the lint pass and the cstyle/hdrchk
 143  143  pass
 144  144  .TP
 145  145  .B \-n
 146  146  Suppress the bringover so that the build will start immediately with
 147  147  current source code
 148  148  .TP
 149      -.B \-o
 150      -Do an "old style" (pre-S10) build using root privileges to set OWNER
 151      -and GROUP from the Makefiles.
 152      -.TP
 153  149  .B \-p
 154  150  Create packages for regular install
 155  151  .TP
 156  152  .B \-U
 157  153  Update proto area in the parent workspace
 158  154  .TP
 159  155  .B \-u
 160  156  Update the parent workspace with files generated by the build, as follows.
 161  157  .RS
 162  158  .TP
↓ open down ↓ 39 lines elided ↑ open up ↑
 202  198  .B \-r
 203  199  Check the ELF runtime attributes of all dynamic objects
 204  200  .TP
 205  201  .B \-l
 206  202  Do "make lint" in $LINTDIRS (default: $SRC n)
 207  203  .TP
 208  204  .B \-N
 209  205  Do not run protocmp or checkpaths (note: this option is not
 210  206  recommended, especially in conjunction with the \-p option)
 211  207  .TP
 212      -.B \-W
 213      -Do not report warnings (for freeware gate ONLY)
 214      -.TP
 215  208  .B \-w
 216  209  Report which proto area objects differ between this and the last build.
 217  210  See wsdiff(1) for details. Note that the proto areas used for comparison
 218  211  are the last ones constructed as part of the build. As an example, if both
 219  212  a non-debug and debug build are performed (in that order), then the debug
 220  213  proto area will be used for comparison (which might not be what you want).
 221  214  .LP
 222  215  .B Groups of options
 223  216  .TP 10
 224  217  .B \-G
↓ open down ↓ 3 lines elided ↑ open up ↑
 228  221  Integration engineer default group of options (-mpu)
 229  222  .TP
 230  223  .B \-R
 231  224  Default group of options for building a release (-mp)
 232  225  
 233  226  .LP
 234  227  .B Miscellaneous options
 235  228  .TP 10
 236  229  .B \-V VERS
 237  230  set the build version string to VERS, overriding VERSION
 238      -.TP
 239      -.B \-X
 240      -Copies the proto area and packages from the IHV and IHV-bin gates into the
 241      -nightly proto and package areas.  This is only available on i386.  See
 242      -.B REALMODE ENVIRONMENT VARIABLES
 243      -and
 244      -.B BUILDING THE IHV WORKSPACE
 245      -below.
 246  231  
 247  232  .LP
 248  233  .SH ENVIRONMENT VARIABLES
 249  234  .LP
 250  235  Here is a list of prominent environment variables that 
 251  236  .I nightly
 252  237  references and the meaning of each variable.
 253  238  .LP
 254  239  .RE
 255  240  .B CODEMGR_WS
↓ open down ↓ 15 lines elided ↑ open up ↑
 271  256  .RE
 272  257  .LP
 273  258  .B BRINGOVER_WS
 274  259  .RS 5
 275  260  This is the workspace from which
 276  261  .I nightly
 277  262  will fetch sources to either populate or update your workspace;
 278  263  it defaults to $CLONE_WS.
 279  264  .RE
 280  265  .LP
 281      -.B CLOSED_BRINGOVER_WS
 282      -.RS 5
 283      -A full Mercurial workspace has two repositories: one for open source
 284      -and one for closed source.  If this variable is non-null, 
 285      -.I nightly
 286      -will pull from the repository that it names to get the closed source.
 287      -It defaults to $CLOSED_CLONE_WS.
 288      -.LP
 289      -If $CODEMGR_WS already exists and contains only the open repository,
 290      -.I nightly
 291      -will ignore this variable; you'll need to pull the closed repository
 292      -by hand if you want it.
 293      -.RE
 294      -.LP
 295  266  .B CLONE_WS
 296  267  .RS 5
 297  268  This is the workspace from which
 298  269  .I nightly
 299  270  will fetch sources by default.  This is
 300  271  often distinct from the parent, particularly if the parent is a gate.
 301  272  .RE
 302  273  .LP
 303      -.B CLOSED_CLONE_WS
 304      -.RS 5
 305      -This is the default closed-source Mercurial repository that 
 306      -.I nightly
 307      -might pull from (see
 308      -.B CLOSED_BRINGOVER_WS
 309      -for details).
 310      -.RE
 311      -.LP
 312  274  .B SRC
 313  275  .RS 5
 314  276  Root of OS-Net source code, referenced by the Makefiles.  It is
 315  277  the starting point of build activity.  It should be expressed
 316  278  in terms of $CODEMGR_WS.
 317  279  .RE
 318  280  .LP
 319  281  .B ROOT
 320  282  .RS 5
 321  283  Root of the proto area for the build.  The makefiles direct
↓ open down ↓ 175 lines elided ↑ open up ↑
 497  459  .RE
 498  460  .LP
 499  461  .B ON_CLOSED_BINS
 500  462  .RS 5
 501  463  OpenSolaris builds do not contain the closed source tree.  Instead,
 502  464  the developer downloads a closed binaries tree and unpacks it.  
 503  465  .B ON_CLOSED_BINS
 504  466  tells nightly
 505  467  where to find these closed binaries, so that it can add them into the
 506  468  build.
 507      -.LP
 508  469  .RE
 509      -.B ON_CRYPTO_BINS
 510      -.RS 5
 511      -This is the path to a compressed tarball that contains debug
 512      -cryptographic binaries that have been signed to allow execution
 513      -outside of Sun, e.g., $PARENT_WS/packages/$MACH/on-crypto.$MACH.bz2.
 514      -.I nightly
 515      -will automatically adjust the path for non-debug builds.  This tarball
 516      -is needed if the closed-source tree is not present.  Also, it is
 517      -usually needed when generating OpenSolaris deliverables from a project
 518      -workspace.  This is because most projects do not have access to the
 519      -necessary key and certificate that would let them sign their own
 520      -cryptographic binaries.
 521  470  .LP
 522      -.RE
 523  471  .B CHECK_PATHS
 524  472  .RS 5
 525  473  Normally, nightly runs the 'checkpaths' script to check for
 526  474  discrepancies among the files that list paths to other files, such as
 527  475  exception lists and req.flg.  Set this flag to 'n' to disable this
 528  476  check, which appears in the nightly output as "Check lists of files."
 529  477  .RE
 530  478  .LP
 531  479  .B CHECK_DMAKE
 532  480  .RS 5
↓ open down ↓ 47 lines elided ↑ open up ↑
 580  528  of "Completed", "Interrupted", or "Failed" - available in the
 581  529  environment variable NIGHTLY_STATUS.
 582  530  .RE
 583  531  .LP
 584  532  .B SYS_POST_NIGHTLY
 585  533  .RS 5
 586  534  This is reserved for per-build-machine customizations, and runs
 587  535  immedately after POST_NIGHTLY.
 588  536  .RE
 589  537  .LP
 590      -.SH REALMODE ENVIRONMENT VARIABLES
 591      -.LP
 592      -The following environment variables referenced by
 593      -.I nightly
 594      -are only required when the -X option is used.
 595      -.LP
 596      -.RE
 597      -.B IA32_IHV_WS
 598      -.RS 5
 599      -Reference to the IHV workspace containing IHV driver binaries.
 600      -The IHV workspace must be fully built before starting the ON realmode build.
 601      -.LP
 602      -.RE
 603      -.B IA32_IHV_ROOT
 604      -.RS 5
 605      -Reference to the IHV workspace proto area.
 606      -The IHV workspace must be fully built before starting the ON realmode build.
 607      -.LP
 608      -.RE
 609      -.B IA32_IHV_PKGS
 610      -.RS 5
 611      -Reference to the IHV workspace packages.  If this is empty or the directory
 612      -is non-existent, then nightly will skip copying the packages.
 613      -.LP
 614      -.RE
 615      -.B IA32_IHV_BINARY_PKGS
 616      -.RS 5
 617      -Reference to binary-only IHV packages.  If this is empty or the directory
 618      -is non-existent, then nightly will skip copying the packages.
 619      -.LP
 620      -.RE
 621      -.B SPARC_RM_PKGARCHIVE
 622      -.RS 5
 623      -Destination for sparc realmode package SUNWrmodu.
 624      -Yes, this sparc package really is built on x86.
 625  538  .SH FILES
 626  539  .LP
 627  540  .RS 5
 628  541  /etc/nightly.conf
 629  542  .RE
 630  543  .LP
 631  544  If present, nightly executes this file just prior to executing the
 632  545  .I env
 633  546  file.  
 634      -.SH BUILDING THE IHV WORKSPACE
 635      -.LP
 636      -The IHV workspace can be built with
 637      -.I nightly.
 638      -The recommended options are:
 639      -.LP
 640      -.RS 5
 641      -NIGHTLY_OPTIONS="-pmWN"
 642      -.RE
 643      -.LP
 644      -None of the realmode environment variables needed for ON realmode builds
 645      -are required to build the IHV workspace.
 646  547  .SH EXAMPLES
 647  548  .LP
 648  549  Start with the example file in usr/src/tools/env/developer.sh
 649  550  (or gatekeeper.sh), copy to myenv and make your changes.
 650  551  .LP
 651  552  .PD 0
 652  553  # grep NIGHTLY_OPTIONS myenv
 653  554  .LP
 654  555  NIGHTLY_OPTIONS="-ACrlapDm"
 655  556  .LP
 656  557  export NIGHTLY_OPTIONS
 657  558  .LP
 658  559  # /opt/onbld/bin/nightly -i myenv
 659  560  .PD
 660  561  .LP
 661  562  .SH SEE ALSO
 662  563  .BR bldenv (1)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX