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