xref: /titanic_53/usr/src/tools/README.tools (revision 87ab362234f761757d96ff1a758ab5c3bd85ed83)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
534c98957Smeem# Common Development and Distribution License (the "License").
634c98957Smeem# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
217c478bd9Sstevel@tonic-gate#
22*87ab3622SRichard Lowe# Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
2375ce41a5SAli Bahrami
247c478bd9Sstevel@tonic-gate
257c478bd9Sstevel@tonic-gateThis directory contains the tools used to do a full build of the
267c478bd9Sstevel@tonic-gateOS/Net workspace.  They usually live in the /opt/onbld directory on build
277c478bd9Sstevel@tonic-gatemachines. From here, 'make install' will build and install the tools
287c478bd9Sstevel@tonic-gatein $ROOT/opt/onbld. If you like, 'make pkg' will build the SUNWonbld
297c478bd9Sstevel@tonic-gatepackage in $(PKGARCHIVE). Installing that package will populate the
307c478bd9Sstevel@tonic-gate/opt/onbld directory, and create a root account for building called 'gk',
317c478bd9Sstevel@tonic-gatewhich uses csh and has a home directory of /opt/onbld/gk. You can
327c478bd9Sstevel@tonic-gateuse this account to do full builds with 'nightly'. You don't have to,
33b84bdc30Smeembut the 'gk' account has the path setup properly, has a .make.machines
34b84bdc30Smeemfile for dmake, and has a .login that sets up for dmake.
357c478bd9Sstevel@tonic-gate
367c478bd9Sstevel@tonic-gateLayout of /opt/onbld
377c478bd9Sstevel@tonic-gate--------------------
387c478bd9Sstevel@tonic-gate
397c478bd9Sstevel@tonic-gate/opt/onbld/etc/abi
407c478bd9Sstevel@tonic-gate	contains Solaris ABI database (ABI_*.db) and exceptions
4175ce41a5SAli Bahrami	for ABI Auditing tool (interface_check, interface_cmp).
427c478bd9Sstevel@tonic-gate
437c478bd9Sstevel@tonic-gate/opt/onbld/gk
447c478bd9Sstevel@tonic-gate	gk account's home directory.
457c478bd9Sstevel@tonic-gate
467c478bd9Sstevel@tonic-gate/opt/onbld/bin
477c478bd9Sstevel@tonic-gate	basic bin directory - contains scripts.
487c478bd9Sstevel@tonic-gate
497c478bd9Sstevel@tonic-gate/opt/onbld/bin/${MACH}
507c478bd9Sstevel@tonic-gate	architecture-specific bin directory for binaries.
517c478bd9Sstevel@tonic-gate
527c478bd9Sstevel@tonic-gate/opt/onbld/env
537c478bd9Sstevel@tonic-gate	build environment files.
547c478bd9Sstevel@tonic-gate
55cdf0c1d5Smjnelson/opt/onbld/lib
56cdf0c1d5Smjnelson	libraries used by the build tools.
57cdf0c1d5Smjnelson
58*87ab3622SRichard Lowe/opt/onbld/lib/python<version>/
59cdf0c1d5Smjnelson	python modules used by the build tools.
60cdf0c1d5Smjnelson
61*87ab3622SRichard Lowe/opt/onbld/lib/python<version>/onbld/hgext
62cdf0c1d5Smjnelson	Mercurial extensions.
63cdf0c1d5Smjnelson
64*87ab3622SRichard Lowe/opt/onbld/lib/python/
65*87ab3622SRichard Lowe        symlink to the modules directory of the currently preferred
66*87ab3622SRichard Lowe        python version.  This exists to retain compatibility both for
67*87ab3622SRichard Lowe        tools expecting only one supported version of python, and for
68*87ab3622SRichard Lowe        user .hgrc files that expect to find cdm.py in
69*87ab3622SRichard Lowe        /opt/onbld/lib/python/onbld/hgext.
70*87ab3622SRichard Lowe
717c478bd9Sstevel@tonic-gate/opt/onbld/man
727c478bd9Sstevel@tonic-gate	rudimentary man pages for some of the tools.
737c478bd9Sstevel@tonic-gate
747c478bd9Sstevel@tonic-gate
757c478bd9Sstevel@tonic-gateTool Summary
767c478bd9Sstevel@tonic-gate------------
777c478bd9Sstevel@tonic-gate
787c478bd9Sstevel@tonic-gatebfu
797c478bd9Sstevel@tonic-gate	bonwick/faulkner upgrade. Loads a set of cpio archives created
807c478bd9Sstevel@tonic-gate	by 'mkbfu' onto a machine, either live or on alternate root
817c478bd9Sstevel@tonic-gate	and /usr filesystems. Attempts to preserve important files,
827c478bd9Sstevel@tonic-gate	but may require manual intervention before reboot to resolve
837c478bd9Sstevel@tonic-gate	changes to preserved files.
847c478bd9Sstevel@tonic-gate
857c478bd9Sstevel@tonic-gatebfuld
867c478bd9Sstevel@tonic-gate	Used by bfu to survive getting a new runtime linker when extracting
877c478bd9Sstevel@tonic-gate	new cpio archives onto a live system. Patches binaries to use
887c478bd9Sstevel@tonic-gate	a saved runtime linker in /tmp during the bfu process.
897c478bd9Sstevel@tonic-gate	Not run by anything but bfu.
907c478bd9Sstevel@tonic-gate
917c478bd9Sstevel@tonic-gatebldenv
927c478bd9Sstevel@tonic-gate	companion to 'nightly.' Takes the same environment file you
937c478bd9Sstevel@tonic-gate	used with 'nightly,' and starts a shell with the environment
947c478bd9Sstevel@tonic-gate	set up the same way as 'nightly' set it up. This is useful
957c478bd9Sstevel@tonic-gate	if you're trying to quickly rebuild portions of a workspace
967c478bd9Sstevel@tonic-gate	built by 'nightly'. 'ws' should not be used for this since it
977c478bd9Sstevel@tonic-gate	sets the environment up differently and may cause everything
987c478bd9Sstevel@tonic-gate	to rebuild (because of different -I or -L paths).
997c478bd9Sstevel@tonic-gate
1007c478bd9Sstevel@tonic-gatebuild_cscope
1017c478bd9Sstevel@tonic-gate	builds cscope databases in the uts, the platform subdirectories
1027c478bd9Sstevel@tonic-gate	of uts, and in usr/src. Uses cscope-fast.
1037c478bd9Sstevel@tonic-gate
104cdf0c1d5Smjnelsoncdm
105cdf0c1d5Smjnelson	A Mercurial extension providing various commands useful for ON
106cdf0c1d5Smjnelson	development
107cdf0c1d5Smjnelson
1087c478bd9Sstevel@tonic-gatecheck_rtime
1097c478bd9Sstevel@tonic-gate	checks ELF attributes used by ELF dynamic objects in the proto area.
1107c478bd9Sstevel@tonic-gate	Used by 'nightly's -r option, to check a number of ELF runtime
1117c478bd9Sstevel@tonic-gate	attributes for consistency with common build rules.  nightly uses
1127c478bd9Sstevel@tonic-gate	the -o option to simplify the output for diffing with previous
1137c478bd9Sstevel@tonic-gate	build results.  It also uses the -i option to obtain NEEDED and RUNPATH
1147c478bd9Sstevel@tonic-gate	entries, which help detect changes in software dependencies and makes
1157c478bd9Sstevel@tonic-gate	sure objects don't have any strange runpaths like /opt/SUNWspro/lib.
1167c478bd9Sstevel@tonic-gate
1177c478bd9Sstevel@tonic-gatecheckproto
1187c478bd9Sstevel@tonic-gate	Runs protocmp and protolist on a workspace (or uses the environment
1197c478bd9Sstevel@tonic-gate	variable CODEMGR_WS to determine the workspace). Checks the proto area
1207c478bd9Sstevel@tonic-gate	against the packages.
1217c478bd9Sstevel@tonic-gate
1227c478bd9Sstevel@tonic-gatecodereview
1237c478bd9Sstevel@tonic-gate	Given two filenames, creates a postscript file with the file
1247c478bd9Sstevel@tonic-gate	differences highlighted.
1257c478bd9Sstevel@tonic-gate
12623259b79Srotondocodesign
12723259b79Srotondo	Tools for signing cryptographic modules using the official
12823259b79Srotondo	Sun release keys stored on a remote signing server. This
12923259b79Srotondo	directory contains signit, a client program for signing
13023259b79Srotondo	files with the signing server; signproto, a shell script
13123259b79Srotondo	that finds crypto modules in $ROOT and signs them using
13223259b79Srotondo	signit; and codesign_server.pl, the code that runs on the
13323259b79Srotondo	server. The codesign_server code is not used on an ON
13423259b79Srotondo	build machine but is kept here for source control purposes.
13523259b79Srotondo
136cdf0c1d5Smjnelsoncopyrightchk
137cdf0c1d5Smjnelson	Checks that files have appropriate SMI copyright notices.
138cdf0c1d5Smjnelson	Primarily used by wx
139cdf0c1d5Smjnelson
1407c478bd9Sstevel@tonic-gatecscope-fast
1417c478bd9Sstevel@tonic-gate	The fast version of cscope that we use internally. Seems to work,
1427c478bd9Sstevel@tonic-gate	but may need more testing before it's placed in the gate. The source
1437c478bd9Sstevel@tonic-gate	just really needs to be here.
1447c478bd9Sstevel@tonic-gate
1457c478bd9Sstevel@tonic-gatecstyle
1467c478bd9Sstevel@tonic-gate	checks C source for compliance with OS/Net guidelines.
1477c478bd9Sstevel@tonic-gate
1487c478bd9Sstevel@tonic-gatectfconvert
1497c478bd9Sstevel@tonic-gate	Convert symbolic debugging information in an object file to the Compact
1507c478bd9Sstevel@tonic-gate	ANSI-C Type Format (CTF).
1517c478bd9Sstevel@tonic-gate
1527c478bd9Sstevel@tonic-gatectfdump
1537c478bd9Sstevel@tonic-gate	Decode and display CTF data stored in a raw file or in an ELF file.
1547c478bd9Sstevel@tonic-gate
1557c478bd9Sstevel@tonic-gatectfmerge
1567c478bd9Sstevel@tonic-gate	Merge the CTF data from one or more object files.
1577c478bd9Sstevel@tonic-gate
1587c478bd9Sstevel@tonic-gatedepcheck
1597c478bd9Sstevel@tonic-gate	A tool to try an assess the dependencies of executables.  This tool
1607c478bd9Sstevel@tonic-gate	is not a definitive dependency check, but it does use "strings" and
1617c478bd9Sstevel@tonic-gate	"ldd" to gather as much information as it can.  The dependency check
1627c478bd9Sstevel@tonic-gate	tool can handle filenames and pkgnames.  Before using the dependency
1637c478bd9Sstevel@tonic-gate	checker you must build a database which reflects the properties and
1647c478bd9Sstevel@tonic-gate	files in your system.
1657c478bd9Sstevel@tonic-gate
1667c478bd9Sstevel@tonic-gateelfcmp
1677c478bd9Sstevel@tonic-gate	Compares two ELF modules (e.g. .o files, executables) section by
1687c478bd9Sstevel@tonic-gate	section.  Useful for determining whether "trivial" changes -
1697c478bd9Sstevel@tonic-gate	cstyle, lint, etc - actually changed the code.  The -S option
1707c478bd9Sstevel@tonic-gate	is used to test whether two binaries are the same except for
1717c478bd9Sstevel@tonic-gate	the elfsign signature.
1727c478bd9Sstevel@tonic-gate
1737c478bd9Sstevel@tonic-gateelfsign
1747c478bd9Sstevel@tonic-gate	Built from the same sources as the shipped elfsign(1), this
1757c478bd9Sstevel@tonic-gate	version is used in nightly -t builds to assure that the signing
1767c478bd9Sstevel@tonic-gate	process and format is the same as will be used on the target
1777c478bd9Sstevel@tonic-gate	system.
1787c478bd9Sstevel@tonic-gate
1797c478bd9Sstevel@tonic-gateelfsigncmp
1807c478bd9Sstevel@tonic-gate	This script can be used in lieu of elfsign during a build.
1817c478bd9Sstevel@tonic-gate	It uses elfsign to sign a copy of the object and elfcmp -S to
1827c478bd9Sstevel@tonic-gate	verify that the signing caused no damage before updating
1837c478bd9Sstevel@tonic-gate	the object to be signed.
1847c478bd9Sstevel@tonic-gate
18575ce41a5SAli Bahramifind_elf
18675ce41a5SAli Bahrami	Search a directory tree for ELF objects, and produce one line of
18775ce41a5SAli Bahrami	output per object. Used by check_rtime and interface_check to locate
18875ce41a5SAli Bahrami	the objects to examine.
18975ce41a5SAli Bahrami
1907c478bd9Sstevel@tonic-gatefindunref
1917c478bd9Sstevel@tonic-gate	Finds all files in a source tree that have access times older than a
1927c478bd9Sstevel@tonic-gate	certain time and are not in a specified list of exceptions.  Since
1937c478bd9Sstevel@tonic-gate	'nightly' timestamps the start of the build, and findunref uses its
1947c478bd9Sstevel@tonic-gate	timestamp (by default), this can be used to find all files that were
1957c478bd9Sstevel@tonic-gate	unreferenced during a nightly build).  Since some files are only used
1967c478bd9Sstevel@tonic-gate	during a SPARC or Intel build, 'findunref' needs to be run on
1977c478bd9Sstevel@tonic-gate	workspaces from both architectures and the results need to be merged.
1987c478bd9Sstevel@tonic-gate	For instance, if $INTELSRC and $SPARCSRC are set to the usr/src
1997c478bd9Sstevel@tonic-gate	directories of your Intel and SPARC nightly workspaces, then you
2007c478bd9Sstevel@tonic-gate	can merge the results like so:
2017c478bd9Sstevel@tonic-gate
2027c478bd9Sstevel@tonic-gate	$ findunref $INTELSRC $INTELSRC/tools/findunref/exception_list | \
2037c478bd9Sstevel@tonic-gate	  sort > ~/unref-i386.out
2047c478bd9Sstevel@tonic-gate	$ findunref $SPARCSRC $SPARCSRC/tools/findunref/exception_list | \
2057c478bd9Sstevel@tonic-gate	  sort > ~/unref-sparc.out
2067c478bd9Sstevel@tonic-gate	$ comm -12 ~/unref-i386.out ~/unref-sparc.out > ~/unref.out
2077c478bd9Sstevel@tonic-gate
2087c478bd9Sstevel@tonic-gatehdrchk
2097c478bd9Sstevel@tonic-gate	checks headers for compliance with OS/Net standards (form, includes,
2107c478bd9Sstevel@tonic-gate	C++ guards).
2117c478bd9Sstevel@tonic-gate
212cdf0c1d5Smjnelsonhgsetup
213cdf0c1d5Smjnelson	creates a basic Mercurial configuration for the user.
214cdf0c1d5Smjnelson
215cdf0c1d5Smjnelsonhg-active
216cdf0c1d5Smjnelson	helper used by webrev to generate file lists for Mercurial
217cdf0c1d5Smjnelson	workspaces.
218cdf0c1d5Smjnelson
2197c478bd9Sstevel@tonic-gateinstall.bin
2207c478bd9Sstevel@tonic-gate	binary version of /usr/sbin/install. Used to be vastly faster
2217c478bd9Sstevel@tonic-gate	(since /usr/sbin/install is a shell script), but may only be a bit
2227c478bd9Sstevel@tonic-gate	faster now. One speedup includes avoiding the name service for the
2237c478bd9Sstevel@tonic-gate	well-known, never-changing password entries like 'root' and 'sys.'
2247c478bd9Sstevel@tonic-gate
22575ce41a5SAli Bahramiinterface_check
22675ce41a5SAli Bahrami	detects and reports invalid versioning in ELF objects.
22775ce41a5SAli Bahrami	Optionally generates an interface description file for
22875ce41a5SAli Bahrami	the workspace.
22975ce41a5SAli Bahrami
23075ce41a5SAli Bahramiinterface_cmp
23175ce41a5SAli Bahrami	Compares two interface description files, as produced by
23275ce41a5SAli Bahrami	interface_check, and flags invalid deviations in ELF object
23375ce41a5SAli Bahrami	versioning between them. interface_cmp can be used between Solaris
23475ce41a5SAli Bahrami	gates to ensure that older releases remain compatible with the
23575ce41a5SAli Bahrami	development gate. It can also be used to validate new changes to
23675ce41a5SAli Bahrami	the development gate before they are integrated.
2377c478bd9Sstevel@tonic-gate
23834c98957Smeemlintdump
23934c98957Smeem	dumps the contents of one or more lint libraries; see lintdump(1)
24034c98957Smeem
2417c478bd9Sstevel@tonic-gatekeywords
2427c478bd9Sstevel@tonic-gate	checks files for proper SCCS keywords.
2437c478bd9Sstevel@tonic-gate
2447c478bd9Sstevel@tonic-gatemakebfu
2457c478bd9Sstevel@tonic-gate	simple wrapper around 'mkbfu' for use outside nightly (when in a build
2467c478bd9Sstevel@tonic-gate	shell from 'ws' or 'bldenv').
2477c478bd9Sstevel@tonic-gate
2487c478bd9Sstevel@tonic-gatemkbfu
2497c478bd9Sstevel@tonic-gate	makes cpio archives out of the proto area suitable for bfu'ing.
2507c478bd9Sstevel@tonic-gate	Used by 'nightly' and 'makebfu'.
2517c478bd9Sstevel@tonic-gate
252d0e51869Samwndrgen
253d0e51869Samw	Network Data Language (NDL) RPC protocol compiler to support DCE
254d0e51869Samw	RPC/MSRPC and SMB/CIFS.  ndrgen takes an input protocol definition
255d0e51869Samw	file (say, proto.ndl) and generates an output C source file
256d0e51869Samw	(proto_ndr.c) containing the Network Data Representation (NDR)
257d0e51869Samw	marshalling routines to implement the RPC protocol.
258d0e51869Samw
2597c478bd9Sstevel@tonic-gatenightly
2607c478bd9Sstevel@tonic-gate	nightly build script. Takes an environment (or 'env') file describing
2617c478bd9Sstevel@tonic-gate	such things as the workspace, the parent, and what to build. See
2627c478bd9Sstevel@tonic-gate	env/developer and env/gatekeeper for sample, hopefully well-commented
2637c478bd9Sstevel@tonic-gate	env files.
2647c478bd9Sstevel@tonic-gate
2657c478bd9Sstevel@tonic-gatepmodes
2667c478bd9Sstevel@tonic-gate	enforces proper file ownership and permissions in pkgmap and package
2677c478bd9Sstevel@tonic-gate	prototype* files.  converts files if necessary
2687c478bd9Sstevel@tonic-gate
2697c478bd9Sstevel@tonic-gateprotocmp
2707c478bd9Sstevel@tonic-gate	compares proto lists and the package definitions. Used by nightly
2717c478bd9Sstevel@tonic-gate	to determine if the proto area matches the packages, and to detect
2727c478bd9Sstevel@tonic-gate	differences between a childs proto area and a parents.
2737c478bd9Sstevel@tonic-gate
2747c478bd9Sstevel@tonic-gateprotocmp.terse
2757c478bd9Sstevel@tonic-gate	transforms the output of protocmp into something a bit more friendly
2767c478bd9Sstevel@tonic-gate
2777c478bd9Sstevel@tonic-gateprotolist
2787c478bd9Sstevel@tonic-gate	create a list of what's in the proto area, to feed to protocmp.
2797c478bd9Sstevel@tonic-gate
280cdf0c1d5Smjnelsonrtichk
281cdf0c1d5Smjnelson	checks that a set of CRs have approved RTIs.  Primarily used
282cdf0c1d5Smjnelson	by wx
283cdf0c1d5Smjnelson
2847c478bd9Sstevel@tonic-gatesccscp
2857c478bd9Sstevel@tonic-gate	copy a file under SCCS control to another location in a workspace.
2867c478bd9Sstevel@tonic-gate	also updates teamware's nametable.
2877c478bd9Sstevel@tonic-gate
2887c478bd9Sstevel@tonic-gatesccshist
2897c478bd9Sstevel@tonic-gate	Display the history, comments and diffs, of a file under SCCS
2907c478bd9Sstevel@tonic-gate	control.
2917c478bd9Sstevel@tonic-gate
2927c478bd9Sstevel@tonic-gatesccsmv
2937c478bd9Sstevel@tonic-gate	rename a file under SCCS control to another location in a workspace.
2947c478bd9Sstevel@tonic-gate	also updates teamware's nametable.
2957c478bd9Sstevel@tonic-gate
2967c478bd9Sstevel@tonic-gatesccsrm
2977c478bd9Sstevel@tonic-gate	delete a file under SCCS control workspace. also updates teamware's
2987c478bd9Sstevel@tonic-gate	nametable. Actually renames it to .del-<file>-`date` so that others
2997c478bd9Sstevel@tonic-gate	will see it move when it is brought over (in case they were working
3007c478bd9Sstevel@tonic-gate	on it).
3017c478bd9Sstevel@tonic-gate
3027c478bd9Sstevel@tonic-gatews
3037c478bd9Sstevel@tonic-gate	creates a shell with the environment set up to build in the given
3047c478bd9Sstevel@tonic-gate	workspace. Used mostly for non-full-build workspaces, so it sets up
3057c478bd9Sstevel@tonic-gate	to pull headers and libraries from the proto area of the parent if
3067c478bd9Sstevel@tonic-gate	they aren't in the childs proto area.
3077c478bd9Sstevel@tonic-gate
3087c478bd9Sstevel@tonic-gatewx
3097c478bd9Sstevel@tonic-gate	A great workspace tool by bonwick. See wx.README for information
3107c478bd9Sstevel@tonic-gate	and warnings.
3117c478bd9Sstevel@tonic-gate
312cdf0c1d5Smjnelsonwx2hg
313cdf0c1d5Smjnelson	Converts a TeamWare workspace under the control of wx to a
314cdf0c1d5Smjnelson	Mercurial workspace, discarding intermediate deltas.
315cdf0c1d5Smjnelson
3167c478bd9Sstevel@tonic-gatetokenize
3177c478bd9Sstevel@tonic-gate	Used to build the sun4u boot block.
3187c478bd9Sstevel@tonic-gate
3197c478bd9Sstevel@tonic-gatewebrev
3207c478bd9Sstevel@tonic-gate	Generates a set of HTML pages that show side-by-side diffs of
3217c478bd9Sstevel@tonic-gate	changes in your workspace, for easy communication of code
3227c478bd9Sstevel@tonic-gate	review materials.  Can automagically find edited files or use a
3237c478bd9Sstevel@tonic-gate	manually-generated list; knows how to use wx's active file for
3247c478bd9Sstevel@tonic-gate	lists of checked-out files and proposed SCCS comments.
3257c478bd9Sstevel@tonic-gate
326cdf0c1d5Smjnelsonwhich_scm
327cdf0c1d5Smjnelson	Reports the current Source Code Management (SCM) system in use
328cdf0c1d5Smjnelson	and the top-level directory of the workspace.
329cdf0c1d5Smjnelson
33096ccc8cbSesaxewsdiff
33196ccc8cbSesaxe	Detect object differences between two ON proto areas. Used by
33296ccc8cbSesaxe	nightly(1) to determine what changed between two builds. Handy
33396ccc8cbSesaxe	for identifying the set of built objects impacted by a given
33496ccc8cbSesaxe	source change. This information is needed for patch construction.
33596ccc8cbSesaxe
33696ccc8cbSesaxe
3377c478bd9Sstevel@tonic-gateHow to do a full build
3387c478bd9Sstevel@tonic-gate----------------------
3397c478bd9Sstevel@tonic-gate
3407c478bd9Sstevel@tonic-gate1. Find an environment file that might do what you want to do. If you're just
3417c478bd9Sstevel@tonic-gate   a developer wanting to do a full build in a child of the gate, copy the
3427c478bd9Sstevel@tonic-gate   'developer' environment file to a new name (private to you and/or the
3437c478bd9Sstevel@tonic-gate   work being done in this workspace, to avoid collisions with others). Then
3447c478bd9Sstevel@tonic-gate   edit the file and tailor it to your workspace. Remember that this file
3457c478bd9Sstevel@tonic-gate   is a shell script, so it can do more than set environment variables.
3467c478bd9Sstevel@tonic-gate
347b84bdc30Smeem2. Login as 'gk' (or root, but your PATH and .make.machines for dmake will
3487c478bd9Sstevel@tonic-gate   not be right). Run 'nightly' and give it your environment file as an
3497c478bd9Sstevel@tonic-gate   option. 'nightly' will first look for your environment file in
3507c478bd9Sstevel@tonic-gate   /opt/onbld/env, and if it's not there then it will look for it as an
3517c478bd9Sstevel@tonic-gate   absolute or relative path. Some people put their environment files in
3527c478bd9Sstevel@tonic-gate   their workspace to keep them close.
3537c478bd9Sstevel@tonic-gate
3547c478bd9Sstevel@tonic-gate3. When 'nightly' is complete, it will send a summary of what happened to
3557c478bd9Sstevel@tonic-gate   $MAILTO. Usually, the less info in the mail the better. If you have failures,
3567c478bd9Sstevel@tonic-gate   you can go look at the full log of what happened, generally in
3577c478bd9Sstevel@tonic-gate   $CODEMGR_WS/log/log.<date>/nightly.log (the mail_msg it sent and the proto
3587c478bd9Sstevel@tonic-gate   list are there too). You can also find the individual build logs, like
3597c478bd9Sstevel@tonic-gate   'make clobber' and 'make install' output in $SRC, under names like
3607c478bd9Sstevel@tonic-gate   clobber-${MACH}.out and install-${MACH}.out (for a DEBUG build). These
3617c478bd9Sstevel@tonic-gate   will be smaller than nightly.log, and maybe more searchable.
3627c478bd9Sstevel@tonic-gate
3637c478bd9Sstevel@tonic-gateFiles you have to update to add a tool
3647c478bd9Sstevel@tonic-gate--------------------------------------
3657c478bd9Sstevel@tonic-gate
3667c478bd9Sstevel@tonic-gate1.  Add the tool in its appropriate place.
3677c478bd9Sstevel@tonic-gate2.  Update the Makefile as required.
3687c478bd9Sstevel@tonic-gate3.  Update usr/src/tools/SUNWonbld/prototype_*.
36934c98957Smeem4.  Update usr/src/tools/README.tools (this file).
37034c98957Smeem5.  Repeat 1-4 for any man pages.
371