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 (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
24 #
25
26 # Configuration variables for the runtime environment of the nightly
27 # build script and other tools for construction and packaging of releases.
28 # This script is sourced by 'nightly' and 'bldenv' to set up the environment
29 # for the build. This example is suitable for building a developers workspace,
30 # which will contain the resulting packages and archives. It is based off
31 # the onnv release. It sets NIGHTLY_OPTIONS to make nightly do:
32 # check ELF ABI/versioning (-A)
33 # runs 'make check' (-C)
34 # DEBUG and non-DEBUG builds (-D)
35 # runs lint in usr/src (-l plus the LINTDIRS variable)
36 # sends mail on completion (-m and the MAILTO variable)
37 # creates packages for PIT/RE (-p)
38 # checks for changes in ELF runpaths (-r)
39 #
40 NIGHTLY_OPTIONS="-ACDlmpr"; export NIGHTLY_OPTIONS
41
42 # This is a variable for the rest of the script - GATE doesn't matter to
43 # nightly itself
44 GATE=onnv-bugfixes; export GATE
45
46 # CODEMGR_WS - where is your workspace at (or what should nightly name it)
47 CODEMGR_WS="/builds/$GATE"; export CODEMGR_WS
48
49 # PARENT_WS is used to determine the parent of this workspace. This is
50 # for the options that deal with the parent workspace (such as where the
51 # proto area will go).
52 #
53 # If you use this, it must be local (or nfs): nightly cannot copy
54 # over ssh or http.
55 PARENT_WS="/ws/onnv-gate"; export PARENT_WS
56
57 # CLONE_WS is the workspace nightly should do a bringover from.
58 CLONE_WS="ssh://anonhg@onnv.sfbay.sun.com//export/onnv-clone"; export CLONE_WS
59
60 # CLOSED_CLONE_WS is the workspace from which nightly should acquire
61 # the usr/closed tree.
62 CLOSED_CLONE_WS="${CLONE_WS}/usr/closed"; export CLOSED_CLONE_WS
63
64 # This flag controls whether to build the closed source. If
65 # undefined, nightly(1) and bldenv(1) will set it according to whether
66 # the closed source tree is present. CLOSED_IS_PRESENT="no" means not
67 # building the closed sources.
68 # CLOSED_IS_PRESENT="yes"; export CLOSED_IS_PRESENT
69
70 # The bringover, if any, is done as STAFFER.
71 # Set STAFFER to your own login as gatekeeper or developer
72 # The point is to use group "staff" and avoid referencing the parent
73 # workspace as root.
74 # Some scripts optionally send mail messages to MAILTO.
75 #
76 STAFFER=nobody; export STAFFER
77 MAILTO=$STAFFER; export MAILTO
78
79 # The project (see project(4)) under which to run this build. If not
80 # specified, the build is simply run in a new task in the current project.
81 BUILD_PROJECT=; export BUILD_PROJECT
82
83 # You should not need to change the next four lines
84 LOCKNAME="`basename $CODEMGR_WS`_nightly.lock"; export LOCKNAME
85 ATLOG="$CODEMGR_WS/log"; export ATLOG
86 LOGFILE="$ATLOG/nightly.log"; export LOGFILE
87 MACH=`uname -p`; export MACH
88
89 # When the -A flag is specified, and ELF_DATA_BASELINE_DIR is defined,
90 # the ELF interface description file resulting from the build is compared
91 # to that from the specified directory. This ensures that our object
92 # versioning evolves in a backward compatible manner.
93 #
94 # You should not need to change this unless you wish to use locally cached
95 # baseline files. If you use this, it must be local (or nfs): nightly cannot
96 # copy over ssh or http.
97 #
98 ELF_DATA_BASELINE_DIR="/ws/onnv-gate/usr/src/ELF-data-baseline.$MACH"; export ELF_DATA_BASELINE_DIR
99
100 # This is usually just needed if the closed tree is missing, or when
101 # building a project gate with the -O (cap oh) flag.
102 # ON_CRYPTO_BINS="$PARENT_WS/packages/$MACH/on-crypto.$MACH.tar.bz2"
103 # export ON_CRYPTO_BINS
104
105 # REF_PROTO_LIST - for comparing the list of stuff in your proto area
106 # with. Generally this should be left alone, since you want to see differences
107 # from your parent (the gate).
108 #
109 REF_PROTO_LIST=$PARENT_WS/usr/src/proto_list_${MACH}; export REF_PROTO_LIST
110
111 #
112 # build environment variables, including version info for mcs, motd,
113 # motd, uname and boot messages. Mostly you shouldn't change this except
114 # when the release slips (nah) or you move an environment file to a new
115 # release
116 #
117 ROOT="$CODEMGR_WS/proto/root_${MACH}"; export ROOT
118 SRC="$CODEMGR_WS/usr/src"; export SRC
119 VERSION="$GATE"; export VERSION
120
121 #
122 # the RELEASE and RELEASE_DATE variables are set in Makefile.master;
123 # there might be special reasons to override them here, but that
124 # should not be the case in general
125 #
126 # RELEASE="5.10.1"; export RELEASE
127 # RELEASE_DATE="October 2007"; export RELEASE_DATE
128
129 # proto area in parent for optionally depositing a copy of headers and
130 # libraries corresponding to the protolibs target
131 # not applicable given the NIGHTLY_OPTIONS
132 #
133 PARENT_ROOT=$PARENT_WS/proto/root_$MACH; export PARENT_ROOT
134 PARENT_TOOLS_ROOT=$PARENT_WS/usr/src/tools/proto/root_$MACH-nd; export PARENT_TOOLS_ROOT
135
136 #
137 # Package creation variables. You probably shouldn't change these,
138 # either.
139 #
140 # PKGARCHIVE determines where repositories will be created.
141 #
142 # PKGPUBLISHER* control the publisher settings for those repositories.
143 #
144 PKGARCHIVE="${CODEMGR_WS}/packages/${MACH}/nightly"; export PKGARCHIVE
145 # PKGPUBLISHER_REDIST="on-redist"; export PKGPUBLISHER_REDIST
146 # PKGPUBLISHER_NONREDIST="on-extra"; export PKGPUBLISHER_NONREDIST
147
148 # we want make to do as much as it can, just in case there's more than
149 # one problem.
150 MAKEFLAGS=k; export MAKEFLAGS
151
152 # Magic variable to prevent the devpro compilers/teamware from sending
153 # mail back to devpro on every use.
154 UT_NO_USAGE_TRACKING="1"; export UT_NO_USAGE_TRACKING
155
156 # Build tools - don't set these unless you know what you're doing. These
157 # variables allows you to get the compilers and onbld files locally or
158 # through cachefs. Set BUILD_TOOLS to pull everything from one location.
159 # Alternately, you can set ONBLD_TOOLS to where you keep the contents of
160 # SUNWonbld and SPRO_ROOT to where you keep the compilers.
161 #
162 #BUILD_TOOLS=/opt; export BUILD_TOOLS
163 #ONBLD_TOOLS=/opt/onbld; export ONBLD_TOOLS
164 #SPRO_ROOT=/opt/SUNWspro; export SPRO_ROOT
165
166 # This goes along with lint - it is a series of the form "A [y|n]" which
167 # means "go to directory A and run 'make lint'" Then mail me (y) the
168 # difference in the lint output. 'y' should only be used if the area you're
169 # linting is actually lint clean or you'll get lots of mail.
170 # You shouldn't need to change this though.
171 #LINTDIRS="$SRC y"; export LINTDIRS
172
173 #
174 # Reference to IA32 IHV workspace, proto area and packages
175 #
176 #IA32_IHV_WS=/ws/${GATE}-ihv; export IA32_IHV_WS
177 #IA32_IHV_ROOT=$IA32_IHV_WS/proto/root_i386; export IA32_IHV_ROOT
178 #IA32_IHV_PKGS=$IA32_IHV_WS/packages/i386/nightly; export IA32_IHV_PKGS
179
180 #
181 # Reference to binary-only IA32 IHV packages
182 #
183 #IA32_IHV_BINARY_PKGS=/ws/${GATE}-ihv-bin
184 #export IA32_IHV_BINARY_PKGS
185
186 # Set this flag to 'n' to disable the automatic validation of the dmake
187 # version in use. The default is to check it.
188 #CHECK_DMAKE=y
189
190 # Set this flag to 'n' to disable the use of 'checkpaths'. The default,
191 # if the 'N' option is not specified, is to run this test.
192 #CHECK_PATHS=y
193
194 # Set this flag to 'y' to enable the use of elfsigncmp to validate the
195 # output of elfsign. Doing so requires that 't' be set in NIGHTLY_OPTIONS.
196 # The default is to not verify them.
197 #VERIFY_ELFSIGN=n
198
199 # BRINGOVER_FILES is the list of files nightly passes to bringover.
200 # If not set the default is "usr", but it can be used for bringing
201 # over deleted_files or other nifty directories.
202 #BRINGOVER_FILES="usr deleted_files"
203
204 # POST_NIGHTLY can be any command to be run at the end of nightly. See
205 # nightly(1) for interactions between environment variables and this command.
206 #POST_NIGHTLY=