xref: /titanic_41/usr/src/tools/env/developer.sh (revision 1d4b38e0077763e7c9b20768eacb841957e787bc)
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 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# PARENT_WS is used to determine the parent of this workspace. This is
51# for the options that deal with the parent workspace (such as where the
52# proto area will go).
53PARENT_WS="/ws/onnv-gate";			export PARENT_WS
54
55# CLONE_WS is the workspace nightly should do a bringover from. Since it's
56# going to bringover usr/src, this could take a while, so we use the
57# clone instead of the gate (see the gate's README).
58CLONE_WS="/ws/onnv-clone";			export CLONE_WS
59
60# This flag controls whether to build the closed source.  If
61# undefined, nightly(1) and bldenv(1) will set it according to whether
62# the closed tree is present.
63# CLOSED_IS_PRESENT="yes";		export CLOSED_IS_PRESENT
64
65# The bringover, if any, is done as STAFFER.
66# Set STAFFER to your own login as gatekeeper or developer
67# The point is to use group "staff" and avoid referencing the parent
68# workspace as root.
69# Some scripts optionally send mail messages to MAILTO.
70#
71STAFFER=nobody;				export STAFFER
72MAILTO=$STAFFER;			export MAILTO
73
74# The project (see project(4)) under which to run this build.  If not
75# specified, the build is simply run in a new task in the current project.
76BUILD_PROJECT=;				export BUILD_PROJECT
77
78# You should not need to change the next four lines
79LOCKNAME="`basename $CODEMGR_WS`_nightly.lock"; export LOCKNAME
80ATLOG="$CODEMGR_WS/log";			export ATLOG
81LOGFILE="$ATLOG/nightly.log";			export LOGFILE
82MACH=`uname -p`;				export MACH
83
84# REF_PROTO_LIST - for comparing the list of stuff in your proto area
85# with. Generally this should be left alone, since you want to see differences
86# from your parent (the gate).
87#
88REF_PROTO_LIST=$PARENT_WS/usr/src/proto_list_${MACH}; export REF_PROTO_LIST
89
90# where cpio archives of the OS are placed. Usually this should be left
91# alone too.
92CPIODIR="${CODEMGR_WS}/archives/${MACH}/nightly";	export CPIODIR
93
94#
95#	build environment variables, including version info for mcs, motd,
96# motd, uname and boot messages. Mostly you shouldn't change this except
97# when the release slips (nah) or you move an environment file to a new
98# release
99#
100ROOT="$CODEMGR_WS/proto/root_${MACH}";	export ROOT
101SRC="$CODEMGR_WS/usr/src";         	export SRC
102VERSION="$GATE";			export VERSION
103
104# the source product has no SCCS history, and is modified to remove source
105# that cannot be shipped. EXPORT_SRC is where the clear files are copied, then
106# modified with 'make EXPORT_SRC'.
107EXPORT_SRC="$CODEMGR_WS/export_src";    export EXPORT_SRC
108
109# CRYPT_SRC is similar to EXPORT_SRC, but after 'make CRYPT_SRC' the files in
110# xmod/cry_files are saved. They are dropped on the exportable source to create
111# the domestic build.
112CRYPT_SRC="$CODEMGR_WS/crypt_src";      export CRYPT_SRC
113
114#
115# the RELEASE and RELEASE_DATE variables are set in Makefile.master;
116# there might be special reasons to override them here, but that
117# should not be the case in general
118#
119# RELEASE="5.10.1";			export RELEASE
120# RELEASE_DATE="October 2007";		export RELEASE_DATE
121
122# proto area in parent for optionally depositing a copy of headers and
123# libraries corresponding to the protolibs target
124# not applicable given the NIGHTLY_OPTIONS
125#
126PARENT_ROOT=$PARENT_WS/proto/root_$MACH; export PARENT_ROOT
127
128#
129#       package creation variable. you probably shouldn't change this either.
130#
131PKGARCHIVE="${CODEMGR_WS}/packages/${MACH}/nightly";	export PKGARCHIVE
132
133# we want make to do as much as it can, just in case there's more than
134# one problem.
135MAKEFLAGS=k;	export MAKEFLAGS
136
137# Magic variable to prevent the devpro compilers/teamware from sending
138# mail back to devpro on every use.
139UT_NO_USAGE_TRACKING="1"; export UT_NO_USAGE_TRACKING
140
141# Build tools - don't set these unless you know what you're doing.  These
142# variables allows you to get the compilers and onbld files locally or
143# through cachefs.  Set BUILD_TOOLS to pull everything from one location.
144# Alternately, you can set ONBLD_TOOLS to where you keep the contents of
145# SUNWonbld and SPRO_ROOT to where you keep the compilers.
146#
147#BUILD_TOOLS=/opt;				export BUILD_TOOLS
148#ONBLD_TOOLS=/opt/onbld;			export ONBLD_TOOLS
149#SPRO_ROOT=/opt/SUNspro;			export SPRO_ROOT
150
151# This goes along with lint - it is a series of the form "A [y|n]" which
152# means "go to directory A and run 'make lint'" Then mail me (y) the
153# difference in the lint output. 'y' should only be used if the area you're
154# linting is actually lint clean or you'll get lots of mail.
155# You shouldn't need to change this though.
156#LINTDIRS="$SRC y";	export LINTDIRS
157
158#
159# NT server for realmode builds
160#
161#NTSERVER=<hostname>;			export NTSERVER
162
163#
164# Reference to IA32 IHV workspace, proto area and packages
165#
166#IA32_IHV_WS=/ws/${GATE}-ihv;				export IA32_IHV_WS
167#IA32_IHV_ROOT=$IA32_IHV_WS/proto/root_i386;		export IA32_IHV_ROOT
168#IA32_IHV_PKGS=$IA32_IHV_WS/packages/i386/nightly;	export IA32_IHV_PKGS
169
170#
171# Reference to binary-only IA32 IHV packages (for boot floppy construction)
172#
173#IA32_IHV_BINARY_PKGS=/ws/${GATE}_ihv_bin
174#export IA32_IHV_BINARY_PKGS
175
176#
177# Boot floppy proto area
178#
179#DCB_ROOT="${CODEMGR_WS}/proto/root_dcb_${MACH}"
180#BOOTFLOPPY_ROOT="${CODEMGR_WS}/proto/root_BootFloppy_${MACH}"
181#export DCB_ROOT
182#export BOOTFLOPPY_ROOT
183
184#
185# Destination for sparc realmode package SUNWrmodu
186#
187#SPARC_RM_PKGARCHIVE="${CODEMGR_WS}/packages/sparc_realmode/nightly"
188#export SPARC_RM_PKGARCHIVE
189
190# REF_PROTO_LIST_DCB & REF_PROTO_LIST_BOOTFLOPPY
191# To compare the list of stuff in your DCB and BootFloppy proto areas
192# against. Generally this should be left alone, since you want to see
193# differences from your parent (the gate).
194#
195#REF_PROTO_LIST_DCB=$PARENT_WS/usr/src/realmode/proto_list_dcb_${MACH}
196#REF_PROTO_LIST_BOOTFLOPPY=$PARENT_WS/usr/src/realmode/proto_list_bootfloppy_${MACH}
197#export REF_PROTO_LIST_DCB
198#export REF_PROTO_LIST_BOOTFLOPPY
199
200# Set this flag to 'n' to disable the automatic validation of the dmake
201# version in use.  The default is to check it.
202#CHECK_DMAKE=y
203
204# Set this flag to 'n' to disable the use of 'checkpaths'.  The default,
205# if the 'N' option is not specified, is to run this test.
206#CHECK_PATHS=y
207
208# Set this flag to 'y' to enable the use of elfsigncmp to validate the
209# output of elfsign.  Doing so requires that 't' be set in NIGHTLY_OPTIONS.
210# The default is to not verify them.
211#VERIFY_ELFSIGN=n
212
213# BRINGOVER_FILES is the list of files nightly passes to bringover.
214# If not set the default is "usr", but it can be used for bringing
215# over deleted_files or other nifty directories.
216#BRINGOVER_FILES="usr deleted_files"
217