xref: /titanic_41/usr/src/tools/env/gatekeeper.sh (revision b823d4c7196446cdc012453fe0775037298d56cb)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23#ident	"%Z%%M%	%I%	%E% SMI"
24#
25# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
26# Use is subject to license terms.
27#
28#	Configuration variables for the runtime environment of the nightly
29# build script and other tools for construction and packaging of releases.
30# This script is sourced by 'nightly' and 'bldenv' to set up the environment
31# for the build. This example is suitable for building a gate,
32# which will contain the resulting packages and archives (builds of the gate
33# are done in children and then the resulting archives, packages, and proto
34# area are put into the parent for everyone to use). It is based off
35# the onnv release. It sets NIGHTLY_OPTIONS to make nightly do:
36#	DEBUG and non-DEBUG builds (-D)
37#	creates cpio archives for bfu (-a)
38#	creates packages for PIT/RE (-p)
39#	checks for new interfaces in libraries (-A)
40#	runs 'make check' (-C)
41#	runs lint in usr/src (-l plus the LINTDIRS variable)
42#	sends mail on completion (-m and the MAILTO variable)
43#	updates the protolist in the parent for children to compare with (-u)
44#	updates the proto area in the parent when done (-U)
45#	checks for changes in ELF runpaths (-r)
46#	checks for changes in unreferenced files (-f)
47#	use dmake instead of pmake (-d)
48#
49NIGHTLY_OPTIONS="-aADClmpuUrfd";		export NIGHTLY_OPTIONS
50
51# This is a variable for the rest of the script - GATE doesn't matter to
52# nightly itself
53GATE=onnv-gate;					export GATE
54
55# CODEMGR_WS - where is your workspace at (or what should nightly name it)
56# there is only one definition here, which assumes all the gate build machines
57# (sparc and x86) are set up the same. But remember, this is a script, so
58# you _could_ look at $MACH or `uname -n` and set these variables differently.
59CODEMGR_WS="/builds/$GATE";			export CODEMGR_WS
60
61# PARENT_WS is used to determine the parent of this workspace. This is
62# for the options that deal with the parent workspace (such as where the
63# proto area will go).
64PARENT_WS="/ws/$GATE";				export PARENT_WS
65
66# CLONE_WS is the workspace nightly should do a bringover from. Since it's
67# going to bringover usr/src, this could take a while, so we use the
68# clone instead of the gate (see the gate's README).
69CLONE_WS="/ws/onnv-clone";			export CLONE_WS
70
71# The bringover, if any, is done as STAFFER.
72# Set STAFFER to your own login as gatekeeper or integration engineer.
73# The point is to use group "staff" and avoid referencing the parent
74# workspace as root.
75# Some scripts optionally send mail messages to MAILTO.
76#
77STAFFER=nobody;				export STAFFER
78MAILTO=$STAFFER;			export MAILTO
79
80# The project (see project(4)) under which to run this build.  If not
81# specified, the build is simply run in a new task in the current project.
82BUILD_PROJECT=;				export BUILD_PROJECT
83
84# You should not need to change the next four lines
85LOCKNAME="`basename $CODEMGR_WS`_nightly.lock"; export LOCKNAME
86ATLOG="$CODEMGR_WS/log";			export ATLOG
87LOGFILE="$ATLOG/nightly.log";			export LOGFILE
88MACH=`uname -p`;				export MACH
89
90# REF_PROTO_LIST - for comparing the list of stuff in your proto area
91# with. Generally this should be left alone, since you want to see differences
92# between todays build and yesterdays.
93#
94REF_PROTO_LIST=$PARENT_WS/usr/src/proto_list_${MACH}; export REF_PROTO_LIST
95
96# where cpio archives of the OS are placed. Usually this should be left
97# alone too. Here they don't go in the build workspace, but in the parent.
98# Since this is done as root, the build machine needs root acces to
99# the parent over NFS.
100CPIODIR="${PARENT_WS}/archives/${MACH}/nightly";	export CPIODIR
101
102#
103#	build environment variables, including version info for mcs, motd,
104# motd, uname and boot messages. Mostly you shouldn't change this except
105# when the release slips (nah) or when starting a new release.
106#
107ROOT="$CODEMGR_WS/proto/root_${MACH}";	export ROOT
108SRC="$CODEMGR_WS/usr/src";         	export SRC
109VERSION="$GATE";			export VERSION
110
111# the source product has no SCCS history, and is modified to remove source
112# that cannot be shipped. EXPORT_SRC is where the clear files are copied, then
113# modified with 'make EXPORT_SRC'.
114EXPORT_SRC="$CODEMGR_WS/export_src";    export EXPORT_SRC
115
116# CRYPT_SRC is similar to EXPORT_SRC, but after 'make CRYPT_SRC' the files in
117# xmod/cry_files are saved. They are dropped on the exportable source to create
118# the domestic build.
119CRYPT_SRC="$CODEMGR_WS/crypt_src";      export CRYPT_SRC
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#
132PARENT_ROOT=$PARENT_WS/proto/root_$MACH; export PARENT_ROOT
133
134#
135#       package creation variable. This put the packages in the parent.
136#
137PKGARCHIVE="${PARENT_WS}/packages/${MACH}/nightly";	export PKGARCHIVE
138
139# we want make to do as much as it can, just in case there's more than
140# one problem. This is especially important with the gate, since multiple
141# unrelated broken things can be integrated.
142MAKEFLAGS=k;	export MAKEFLAGS
143
144# Magic variable to prevent the devpro compilers/teamware from sending
145# mail back to devpro on every use.
146UT_NO_USAGE_TRACKING="1"; export UT_NO_USAGE_TRACKING
147
148# Build tools - don't set these unless you know what you're doing.  These
149# variables allows you to get the compilers and onbld files locally or
150# through cachefs.  Set BUILD_TOOLS to pull everything from one location.
151# Alternately, you can set ONBLD_TOOLS to where you keep the contents of
152# SUNWonbld and SPRO_ROOT to where you keep the compilers.
153#
154#BUILD_TOOLS=/opt;				export BUILD_TOOLS
155#ONBLD_TOOLS=/opt/onbld;			export ONBLD_TOOLS
156#SPRO_ROOT=/opt/SUNspro;			export SPRO_ROOT
157
158# This goes along with lint - it is a series of the form "A [y|n]" which
159# means "go to directory A and run 'make lint'" Then mail me (y) the
160# difference in the lint output. 'y' should only be used if the area you're
161# linting is actually lint clean or you'll get lots of mail.
162# You shouldn't need to change this though.
163#LINTDIRS="$SRC y";	export LINTDIRS
164
165#
166# NT server for realmode builds
167#
168#NTSERVER=<hostname>;			export NTSERVER
169
170#
171# Reference to IA32 IHV workspace, proto area and packages
172#
173#IA32_IHV_WS=/ws/${GATE}-ihv;				export IA32_IHV_WS
174#IA32_IHV_ROOT=$IA32_IHV_WS/proto/root_i386;		export IA32_IHV_ROOT
175#IA32_IHV_PKGS=$IA32_IHV_WS/packages/i386/nightly;	export IA32_IHV_PKGS
176
177#
178# Reference to binary-only IA32 IHV packages (for boot floppy construction)
179#
180#IA32_IHV_BINARY_PKGS=/ws/${GATE}_ihv_bin
181#export IA32_IHV_BINARY_PKGS
182
183#
184# Boot floppy proto area
185#
186#DCB_ROOT="${CODEMGR_WS}/proto/root_dcb_${MACH}"
187#BOOTFLOPPY_ROOT="${CODEMGR_WS}/proto/root_BootFloppy_${MACH}"
188#export DCB_ROOT
189#export BOOTFLOPPY_ROOT
190
191#
192# Destination for sparc realmode package SUNWrmodu
193#
194#SPARC_RM_PKGARCHIVE="${CODEMGR_WS}/packages/sparc_realmode/nightly"
195#export SPARC_RM_PKGARCHIVE
196
197# REF_PROTO_LIST_DCB & REF_PROTO_LIST_BOOTFLOPPY
198# To compare the list of stuff in your DCB and BootFloppy proto areas
199# against. Generally this should be left alone, since you want to see
200# differences between todays build and yesterdays.
201#
202#REF_PROTO_LIST_DCB=$PARENT_WS/usr/src/realmode/proto_list_dcb_${MACH}
203#REF_PROTO_LIST_BOOTFLOPPY=$PARENT_WS/usr/src/realmode/proto_list_bootfloppy_${MACH}
204#export REF_PROTO_LIST_DCB
205#export REF_PROTO_LIST_BOOTFLOPPY
206
207# Set this flag to 'n' to disable the automatic validation of the dmake
208# version in use.  The default is to check it.
209#CHECK_DMAKE=y
210
211# Set this flag to 'n' to disable the use of 'checkpaths'.  The default,
212# if the 'N' option is not specified, is to run this test.
213#CHECK_PATHS=y
214
215# Set this flag to 'y' to enable the use of elfsigncmp to validate the
216# output of elfsign.  Doing so requires that 't' be set in NIGHTLY_OPTIONS.
217# The default is to not verify them.
218#VERIFY_ELFSIGN=n
219
220# BRINGOVER_FILES is the list of files nightly passes to bringover.
221# If not set the default is "usr/src", but it can be used for bringing
222# over deleted_files or other nifty directories.
223#BRINGOVER_FILES="usr/src deleted_files"
224