xref: /titanic_51/usr/src/tools/scripts/stdenv.sh (revision 694c35faa87b858ecdadfe4fc592615f4eefbb07)
11fe69678Skupfer#
21fe69678Skupfer# CDDL HEADER START
31fe69678Skupfer#
41fe69678Skupfer# The contents of this file are subject to the terms of the
51fe69678Skupfer# Common Development and Distribution License (the "License").
61fe69678Skupfer# You may not use this file except in compliance with the License.
71fe69678Skupfer#
81fe69678Skupfer# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
91fe69678Skupfer# or http://www.opensolaris.org/os/licensing.
101fe69678Skupfer# See the License for the specific language governing permissions
111fe69678Skupfer# and limitations under the License.
121fe69678Skupfer#
131fe69678Skupfer# When distributing Covered Code, include this CDDL HEADER in each
141fe69678Skupfer# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
151fe69678Skupfer# If applicable, add the following below this CDDL HEADER, with the
161fe69678Skupfer# fields enclosed by brackets "[]" replaced with your own identifying
171fe69678Skupfer# information: Portions Copyright [yyyy] [name of copyright owner]
181fe69678Skupfer#
191fe69678Skupfer# CDDL HEADER END
201fe69678Skupfer#
211fe69678Skupfer
221fe69678Skupfer#
23*4e5b757fSkupfer# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
241fe69678Skupfer# Use is subject to license terms.
251fe69678Skupfer#
261fe69678Skupfer
271fe69678Skupfer#
281fe69678Skupfer# Shell script fragment to set standard build environment variables,
291fe69678Skupfer# for use by bldenv(1) and nightly(1).  Can be overridden by the
301fe69678Skupfer# user's environment file.  Because bldenv and nightly are both ksh
311fe69678Skupfer# scripts, we can use ksh syntax here.
321fe69678Skupfer#
331fe69678Skupfer
341fe69678Skupfer#
351fe69678Skupfer# OPEN_SRCDIR is where we copy the open tree to so that we can be sure
361fe69678Skupfer# we don't have a hidden dependency on closed code.  The name ends in
371fe69678Skupfer# "DIR" to avoid confusion with the flags related to open source
381fe69678Skupfer# builds.
391fe69678Skupfer#
401fe69678Skupfer[ -n "$OPEN_SRCDIR" ] || export OPEN_SRCDIR="$CODEMGR_WS/open_src"
41*4e5b757fSkupfer
42*4e5b757fSkupfer#
43*4e5b757fSkupfer# Flag to enable creation of per-build-type proto areas.  If "yes",
44*4e5b757fSkupfer# more proto areas are created, which speeds up incremental builds but
45*4e5b757fSkupfer# increases storage consumption.  Will be forced to "yes" for
46*4e5b757fSkupfer# OpenSolaris deliveries.
47*4e5b757fSkupfer#
48*4e5b757fSkupfer[ -n "$MULTI_PROTO" ] || export MULTI_PROTO=no
49