xref: /titanic_44/usr/src/tools/env/developer.sh (revision a576ab5b6e08c47732b3dedca9eaa8a8cbb85720)
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 2008 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29#	Configuration variables for the runtime environment of the nightly
30# build script and other tools for construction and packaging of releases.
31# This script is sourced by 'nightly' and 'bldenv' to set up the environment
32# for the build. This example is suitable for building a developers workspace,
33# which will contain the resulting packages and archives. It is based off
34# the onnv release. It sets NIGHTLY_OPTIONS to make nightly do:
35#	creates cpio archives for bfu (-a)
36#	runs 'make check' (-C)
37#	DEBUG and non-DEBUG builds (-D)
38#	runs lint in usr/src (-l plus the LINTDIRS variable)
39#	sends mail on completion (-m and the MAILTO variable)
40#	creates packages for PIT/RE (-p)
41#	checks for changes in ELF runpaths (-r)
42#
43NIGHTLY_OPTIONS="-aCDlmpr";		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# This flag controls whether to build the closed source.  If
63# undefined, nightly(1) and bldenv(1) will set it according to whether
64# the closed source tree is present.  CLOSED_IS_PRESENT="no" means not
65# building the closed sources.
66# CLOSED_IS_PRESENT="yes";		export CLOSED_IS_PRESENT
67
68# The bringover, if any, is done as STAFFER.
69# Set STAFFER to your own login as gatekeeper or developer
70# The point is to use group "staff" and avoid referencing the parent
71# workspace as root.
72# Some scripts optionally send mail messages to MAILTO.
73#
74STAFFER=nobody;				export STAFFER
75MAILTO=$STAFFER;			export MAILTO
76
77# The project (see project(4)) under which to run this build.  If not
78# specified, the build is simply run in a new task in the current project.
79BUILD_PROJECT=;				export BUILD_PROJECT
80
81# You should not need to change the next four lines
82LOCKNAME="`basename $CODEMGR_WS`_nightly.lock"; export LOCKNAME
83ATLOG="$CODEMGR_WS/log";			export ATLOG
84LOGFILE="$ATLOG/nightly.log";			export LOGFILE
85MACH=`uname -p`;				export MACH
86
87# REF_PROTO_LIST - for comparing the list of stuff in your proto area
88# with. Generally this should be left alone, since you want to see differences
89# from your parent (the gate).
90#
91REF_PROTO_LIST=$PARENT_WS/usr/src/proto_list_${MACH}; export REF_PROTO_LIST
92
93# where cpio archives of the OS are placed. Usually this should be left
94# alone too.
95CPIODIR="${CODEMGR_WS}/archives/${MACH}/nightly";	export CPIODIR
96
97#
98#	build environment variables, including version info for mcs, motd,
99# motd, uname and boot messages. Mostly you shouldn't change this except
100# when the release slips (nah) or you move an environment file to a new
101# release
102#
103ROOT="$CODEMGR_WS/proto/root_${MACH}";	export ROOT
104SRC="$CODEMGR_WS/usr/src";         	export SRC
105VERSION="$GATE";			export VERSION
106
107#
108# the RELEASE and RELEASE_DATE variables are set in Makefile.master;
109# there might be special reasons to override them here, but that
110# should not be the case in general
111#
112# RELEASE="5.10.1";			export RELEASE
113# RELEASE_DATE="October 2007";		export RELEASE_DATE
114
115# proto area in parent for optionally depositing a copy of headers and
116# libraries corresponding to the protolibs target
117# not applicable given the NIGHTLY_OPTIONS
118#
119PARENT_ROOT=$PARENT_WS/proto/root_$MACH; export PARENT_ROOT
120
121#
122#       package creation variable. you probably shouldn't change this either.
123#
124PKGARCHIVE="${CODEMGR_WS}/packages/${MACH}/nightly";	export PKGARCHIVE
125
126# we want make to do as much as it can, just in case there's more than
127# one problem.
128MAKEFLAGS=k;	export MAKEFLAGS
129
130# Magic variable to prevent the devpro compilers/teamware from sending
131# mail back to devpro on every use.
132UT_NO_USAGE_TRACKING="1"; export UT_NO_USAGE_TRACKING
133
134# Build tools - don't set these unless you know what you're doing.  These
135# variables allows you to get the compilers and onbld files locally or
136# through cachefs.  Set BUILD_TOOLS to pull everything from one location.
137# Alternately, you can set ONBLD_TOOLS to where you keep the contents of
138# SUNWonbld and SPRO_ROOT to where you keep the compilers.
139#
140#BUILD_TOOLS=/opt;				export BUILD_TOOLS
141#ONBLD_TOOLS=/opt/onbld;			export ONBLD_TOOLS
142#SPRO_ROOT=/opt/SUNWspro;			export SPRO_ROOT
143
144# This goes along with lint - it is a series of the form "A [y|n]" which
145# means "go to directory A and run 'make lint'" Then mail me (y) the
146# difference in the lint output. 'y' should only be used if the area you're
147# linting is actually lint clean or you'll get lots of mail.
148# You shouldn't need to change this though.
149#LINTDIRS="$SRC y";	export LINTDIRS
150
151#
152# Reference to IA32 IHV workspace, proto area and packages
153#
154#IA32_IHV_WS=/ws/${GATE}-ihv;				export IA32_IHV_WS
155#IA32_IHV_ROOT=$IA32_IHV_WS/proto/root_i386;		export IA32_IHV_ROOT
156#IA32_IHV_PKGS=$IA32_IHV_WS/packages/i386/nightly;	export IA32_IHV_PKGS
157
158#
159# Reference to binary-only IA32 IHV packages
160#
161#IA32_IHV_BINARY_PKGS=/ws/${GATE}-ihv-bin
162#export IA32_IHV_BINARY_PKGS
163
164#
165# Destination for sparc realmode package SUNWrmodu
166#
167#SPARC_RM_PKGARCHIVE="${CODEMGR_WS}/packages/sparc_realmode/nightly"
168#export SPARC_RM_PKGARCHIVE
169
170# Set this flag to 'n' to disable the automatic validation of the dmake
171# version in use.  The default is to check it.
172#CHECK_DMAKE=y
173
174# Set this flag to 'n' to disable the use of 'checkpaths'.  The default,
175# if the 'N' option is not specified, is to run this test.
176#CHECK_PATHS=y
177
178# Set this flag to 'y' to enable the use of elfsigncmp to validate the
179# output of elfsign.  Doing so requires that 't' be set in NIGHTLY_OPTIONS.
180# The default is to not verify them.
181#VERIFY_ELFSIGN=n
182
183# BRINGOVER_FILES is the list of files nightly passes to bringover.
184# If not set the default is "usr", but it can be used for bringing
185# over deleted_files or other nifty directories.
186#BRINGOVER_FILES="usr deleted_files"
187
188# POST_NIGHTLY can be any command to be run at the end of nightly.  See
189# nightly(1) for interactions between environment variables and this command.
190#POST_NIGHTLY=
191