xref: /titanic_44/usr/src/tools/env/gatekeeper.sh (revision e429788e241121c1f81089f762558027000ea25f)
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#ident	"%Z%%M%	%I%	%E% SMI"
23#
24# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
25# Use is subject to license terms.
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 gate,
31# which will contain the resulting packages and archives (builds of the gate
32# are done in children and then the resulting archives, packages, and proto
33# area are put into the parent for everyone to use). It is based off
34# the onnv release. It sets NIGHTLY_OPTIONS to make nightly do:
35#	DEBUG and non-DEBUG builds (-D)
36#	creates cpio archives for bfu (-a)
37#	creates packages for PIT/RE (-p)
38#	checks for new interfaces in libraries (-A)
39#	runs 'make check' (-C)
40#	runs lint in usr/src (-l plus the LINTDIRS variable)
41#	sends mail on completion (-m and the MAILTO variable)
42#	updates the protolist in the parent for children to compare with (-u)
43#	updates the proto area in the parent when done (-U)
44#	checks for changes in ELF runpaths (-r)
45#	checks for changes in unreferenced files (-f)
46#
47NIGHTLY_OPTIONS="-aADClmpuUrf";		export NIGHTLY_OPTIONS
48
49# This is a variable for the rest of the script - GATE doesn't matter to
50# nightly itself
51GATE=onnv-gate;					export GATE
52
53# CODEMGR_WS - where is your workspace at (or what should nightly name it)
54# there is only one definition here, which assumes all the gate build machines
55# (sparc and x86) are set up the same. But remember, this is a script, so
56# you _could_ look at $MACH or `uname -n` and set these variables differently.
57CODEMGR_WS="/builds/$GATE";			export CODEMGR_WS
58
59# PARENT_WS is used to determine the parent of this workspace. This is
60# for the options that deal with the parent workspace (such as where the
61# proto area will go).
62PARENT_WS="/ws/$GATE";				export PARENT_WS
63
64# CLONE_WS is the workspace nightly should do a bringover from. Since it's
65# going to bringover usr/src, this could take a while, so we use the
66# clone instead of the gate (see the gate's README).
67CLONE_WS="/ws/onnv-clone";			export CLONE_WS
68
69# This flag controls whether to build the closed source.  If
70# undefined, nightly(1) and bldenv(1) will set it according to whether
71# the closed tree is present.
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 integration engineer.
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# between todays build and yesterdays.
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. Here they don't go in the build workspace, but in the parent.
101# Since this is done as root, the build machine needs root acces to
102# the parent over NFS.
103CPIODIR="${PARENT_WS}/archives/${MACH}/nightly";	export CPIODIR
104
105#
106#	build environment variables, including version info for mcs, motd,
107# motd, uname and boot messages. Mostly you shouldn't change this except
108# when the release slips (nah) or when starting a new release.
109#
110ROOT="$CODEMGR_WS/proto/root_${MACH}";	export ROOT
111SRC="$CODEMGR_WS/usr/src";         	export SRC
112VERSION="$GATE";			export VERSION
113
114# the source product has no SCCS history, and is modified to remove source
115# that cannot be shipped. EXPORT_SRC is where the clear files are copied, then
116# modified with 'make EXPORT_SRC'.
117EXPORT_SRC="$CODEMGR_WS/export_src";    export EXPORT_SRC
118
119# CRYPT_SRC is similar to EXPORT_SRC, but after 'make CRYPT_SRC' the files in
120# xmod/cry_files are saved. They are dropped on the exportable source to create
121# the domestic build.
122CRYPT_SRC="$CODEMGR_WS/crypt_src";      export CRYPT_SRC
123
124#
125# the RELEASE and RELEASE_DATE variables are set in Makefile.master;
126# there might be special reasons to override them here, but that
127# should not be the case in general
128#
129# RELEASE="5.10.1";			export RELEASE
130# RELEASE_DATE="October 2007";		export RELEASE_DATE
131
132# proto area in parent for optionally depositing a copy of headers and
133# libraries corresponding to the protolibs target
134#
135PARENT_ROOT=$PARENT_WS/proto/root_$MACH; export PARENT_ROOT
136
137#
138#       package creation variable. This put the packages in the parent.
139#
140PKGARCHIVE="${PARENT_WS}/packages/${MACH}/nightly";	export PKGARCHIVE
141
142# we want make to do as much as it can, just in case there's more than
143# one problem. This is especially important with the gate, since multiple
144# unrelated broken things can be integrated.
145MAKEFLAGS=k;	export MAKEFLAGS
146
147# Magic variable to prevent the devpro compilers/teamware from sending
148# mail back to devpro on every use.
149UT_NO_USAGE_TRACKING="1"; export UT_NO_USAGE_TRACKING
150
151# Build tools - don't set these unless you know what you're doing.  These
152# variables allows you to get the compilers and onbld files locally or
153# through cachefs.  Set BUILD_TOOLS to pull everything from one location.
154# Alternately, you can set ONBLD_TOOLS to where you keep the contents of
155# SUNWonbld and SPRO_ROOT to where you keep the compilers.
156#
157#BUILD_TOOLS=/opt;				export BUILD_TOOLS
158#ONBLD_TOOLS=/opt/onbld;			export ONBLD_TOOLS
159#SPRO_ROOT=/opt/SUNspro;			export SPRO_ROOT
160
161# This goes along with lint - it is a series of the form "A [y|n]" which
162# means "go to directory A and run 'make lint'" Then mail me (y) the
163# difference in the lint output. 'y' should only be used if the area you're
164# linting is actually lint clean or you'll get lots of mail.
165# You shouldn't need to change this though.
166#LINTDIRS="$SRC y";	export LINTDIRS
167
168#
169# NT server for realmode builds
170#
171#NTSERVER=<hostname>;			export NTSERVER
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 (for boot floppy construction)
182#
183#IA32_IHV_BINARY_PKGS=/ws/${GATE}_ihv_bin
184#export IA32_IHV_BINARY_PKGS
185
186#
187# Boot floppy proto area
188#
189#DCB_ROOT="${CODEMGR_WS}/proto/root_dcb_${MACH}"
190#BOOTFLOPPY_ROOT="${CODEMGR_WS}/proto/root_BootFloppy_${MACH}"
191#export DCB_ROOT
192#export BOOTFLOPPY_ROOT
193
194#
195# Destination for sparc realmode package SUNWrmodu
196#
197#SPARC_RM_PKGARCHIVE="${CODEMGR_WS}/packages/sparc_realmode/nightly"
198#export SPARC_RM_PKGARCHIVE
199
200# REF_PROTO_LIST_DCB & REF_PROTO_LIST_BOOTFLOPPY
201# To compare the list of stuff in your DCB and BootFloppy proto areas
202# against. Generally this should be left alone, since you want to see
203# differences between todays build and yesterdays.
204#
205#REF_PROTO_LIST_DCB=$PARENT_WS/usr/src/realmode/proto_list_dcb_${MACH}
206#REF_PROTO_LIST_BOOTFLOPPY=$PARENT_WS/usr/src/realmode/proto_list_bootfloppy_${MACH}
207#export REF_PROTO_LIST_DCB
208#export REF_PROTO_LIST_BOOTFLOPPY
209
210# Set this flag to 'n' to disable the automatic validation of the dmake
211# version in use.  The default is to check it.
212#CHECK_DMAKE=y
213
214# Set this flag to 'n' to disable the use of 'checkpaths'.  The default,
215# if the 'N' option is not specified, is to run this test.
216#CHECK_PATHS=y
217
218# Set this flag to 'y' to enable the use of elfsigncmp to validate the
219# output of elfsign.  Doing so requires that 't' be set in NIGHTLY_OPTIONS.
220# The default is to not verify them.
221#VERIFY_ELFSIGN=n
222
223# BRINGOVER_FILES is the list of files nightly passes to bringover.
224# If not set the default is "usr", but it can be used for bringing
225# over deleted_files or other nifty directories.
226#BRINGOVER_FILES="usr deleted_files"
227