xref: /titanic_41/usr/src/tools/env/developer.sh (revision f33c1cdb6d38eb0715f03cf492f31c3d4d395c98)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21
22#
23# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26
27#	Configuration variables for the runtime environment of the nightly
28# build script and other tools for construction and packaging of releases.
29# This script is sourced by 'nightly' and 'bldenv' to set up the environment
30# for the build. This example is suitable for building a developers workspace,
31# which will contain the resulting packages and archives. It is based off
32# the onnv release. It sets NIGHTLY_OPTIONS to make nightly do:
33#	creates cpio archives for bfu (-a)
34#	runs 'make check' (-C)
35#	DEBUG and non-DEBUG builds (-D)
36#	runs lint in usr/src (-l plus the LINTDIRS variable)
37#	sends mail on completion (-m and the MAILTO variable)
38#	creates packages for PIT/RE (-p)
39#	checks for changes in ELF runpaths (-r)
40#
41NIGHTLY_OPTIONS="-aCDlmpr";		export NIGHTLY_OPTIONS
42
43# This is a variable for the rest of the script - GATE doesn't matter to
44# nightly itself
45GATE=onnv-bugfixes;			export GATE
46
47# CODEMGR_WS - where is your workspace at (or what should nightly name it)
48CODEMGR_WS="/builds/$GATE";			export CODEMGR_WS
49
50# G11N_PKGDIR - where does the globalization package live
51G11N_PKGDIR="$CODEMGR_WS/usr/src/pkgdefs/SUNW0on";	export G11N_PKGDIR
52
53# PARENT_WS is used to determine the parent of this workspace. This is
54# for the options that deal with the parent workspace (such as where the
55# proto area will go).
56#
57# If you use this, it must be local (or nfs): nightly cannot copy
58# over ssh or http.
59PARENT_WS="/ws/onnv-gate";			export PARENT_WS
60
61# CLONE_WS is the workspace nightly should do a bringover from.
62CLONE_WS="ssh://anonhg@onnv.sfbay.sun.com//export/onnv-clone";	export CLONE_WS
63
64# CLOSED_CLONE_WS is the workspace from which nightly should acquire
65# the usr/closed tree.
66CLOSED_CLONE_WS="${CLONE_WS}/usr/closed";	export CLOSED_CLONE_WS
67
68# This flag controls whether to build the closed source.  If
69# undefined, nightly(1) and bldenv(1) will set it according to whether
70# the closed source tree is present.  CLOSED_IS_PRESENT="no" means not
71# building the closed sources.
72# CLOSED_IS_PRESENT="yes";		export CLOSED_IS_PRESENT
73
74# The bringover, if any, is done as STAFFER.
75# Set STAFFER to your own login as gatekeeper or developer
76# The point is to use group "staff" and avoid referencing the parent
77# workspace as root.
78# Some scripts optionally send mail messages to MAILTO.
79#
80STAFFER=nobody;				export STAFFER
81MAILTO=$STAFFER;			export MAILTO
82
83# The project (see project(4)) under which to run this build.  If not
84# specified, the build is simply run in a new task in the current project.
85BUILD_PROJECT=;				export BUILD_PROJECT
86
87# You should not need to change the next four lines
88LOCKNAME="`basename $CODEMGR_WS`_nightly.lock"; export LOCKNAME
89ATLOG="$CODEMGR_WS/log";			export ATLOG
90LOGFILE="$ATLOG/nightly.log";			export LOGFILE
91MACH=`uname -p`;				export MACH
92
93# REF_PROTO_LIST - for comparing the list of stuff in your proto area
94# with. Generally this should be left alone, since you want to see differences
95# from your parent (the gate).
96#
97REF_PROTO_LIST=$PARENT_WS/usr/src/proto_list_${MACH}; export REF_PROTO_LIST
98
99# where cpio archives of the OS are placed. Usually this should be left
100# alone too.
101CPIODIR="${CODEMGR_WS}/archives/${MACH}/nightly";	export CPIODIR
102
103#
104#	build environment variables, including version info for mcs, motd,
105# motd, uname and boot messages. Mostly you shouldn't change this except
106# when the release slips (nah) or you move an environment file to a new
107# release
108#
109ROOT="$CODEMGR_WS/proto/root_${MACH}";	export ROOT
110SRC="$CODEMGR_WS/usr/src";         	export SRC
111VERSION="$GATE";			export VERSION
112
113#
114# the RELEASE and RELEASE_DATE variables are set in Makefile.master;
115# there might be special reasons to override them here, but that
116# should not be the case in general
117#
118# RELEASE="5.10.1";			export RELEASE
119# RELEASE_DATE="October 2007";		export RELEASE_DATE
120
121# proto area in parent for optionally depositing a copy of headers and
122# libraries corresponding to the protolibs target
123# not applicable given the NIGHTLY_OPTIONS
124#
125PARENT_ROOT=$PARENT_WS/proto/root_$MACH; export PARENT_ROOT
126
127#
128#       package creation variable. you probably shouldn't change this either.
129#
130PKGARCHIVE="${CODEMGR_WS}/packages/${MACH}/nightly";	export PKGARCHIVE
131
132# we want make to do as much as it can, just in case there's more than
133# one problem.
134MAKEFLAGS=k;	export MAKEFLAGS
135
136# Magic variable to prevent the devpro compilers/teamware from sending
137# mail back to devpro on every use.
138UT_NO_USAGE_TRACKING="1"; export UT_NO_USAGE_TRACKING
139
140# Build tools - don't set these unless you know what you're doing.  These
141# variables allows you to get the compilers and onbld files locally or
142# through cachefs.  Set BUILD_TOOLS to pull everything from one location.
143# Alternately, you can set ONBLD_TOOLS to where you keep the contents of
144# SUNWonbld and SPRO_ROOT to where you keep the compilers.
145#
146#BUILD_TOOLS=/opt;				export BUILD_TOOLS
147#ONBLD_TOOLS=/opt/onbld;			export ONBLD_TOOLS
148#SPRO_ROOT=/opt/SUNWspro;			export SPRO_ROOT
149
150# This goes along with lint - it is a series of the form "A [y|n]" which
151# means "go to directory A and run 'make lint'" Then mail me (y) the
152# difference in the lint output. 'y' should only be used if the area you're
153# linting is actually lint clean or you'll get lots of mail.
154# You shouldn't need to change this though.
155#LINTDIRS="$SRC y";	export LINTDIRS
156
157#
158# Reference to IA32 IHV workspace, proto area and packages
159#
160#IA32_IHV_WS=/ws/${GATE}-ihv;				export IA32_IHV_WS
161#IA32_IHV_ROOT=$IA32_IHV_WS/proto/root_i386;		export IA32_IHV_ROOT
162#IA32_IHV_PKGS=$IA32_IHV_WS/packages/i386/nightly;	export IA32_IHV_PKGS
163
164#
165# Reference to binary-only IA32 IHV packages
166#
167#IA32_IHV_BINARY_PKGS=/ws/${GATE}-ihv-bin
168#export IA32_IHV_BINARY_PKGS
169
170#
171# Destination for sparc realmode package SUNWrmodu
172#
173#SPARC_RM_PKGARCHIVE="${CODEMGR_WS}/packages/sparc_realmode/nightly"
174#export SPARC_RM_PKGARCHIVE
175
176# Set this flag to 'n' to disable the automatic validation of the dmake
177# version in use.  The default is to check it.
178#CHECK_DMAKE=y
179
180# Set this flag to 'n' to disable the use of 'checkpaths'.  The default,
181# if the 'N' option is not specified, is to run this test.
182#CHECK_PATHS=y
183
184# Set this flag to 'y' to enable the use of elfsigncmp to validate the
185# output of elfsign.  Doing so requires that 't' be set in NIGHTLY_OPTIONS.
186# The default is to not verify them.
187#VERIFY_ELFSIGN=n
188
189# BRINGOVER_FILES is the list of files nightly passes to bringover.
190# If not set the default is "usr", but it can be used for bringing
191# over deleted_files or other nifty directories.
192#BRINGOVER_FILES="usr deleted_files"
193
194# POST_NIGHTLY can be any command to be run at the end of nightly.  See
195# nightly(1) for interactions between environment variables and this command.
196#POST_NIGHTLY=
197