xref: /titanic_44/usr/src/tools/scripts/stdenv.sh (revision 4e5b757fbcf21077677360be274461dcd9064106)
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# ident	"%Z%%M%	%I%	%E% SMI"
271fe69678Skupfer#
281fe69678Skupfer
291fe69678Skupfer#
301fe69678Skupfer# Shell script fragment to set standard build environment variables,
311fe69678Skupfer# for use by bldenv(1) and nightly(1).  Can be overridden by the
321fe69678Skupfer# user's environment file.  Because bldenv and nightly are both ksh
331fe69678Skupfer# scripts, we can use ksh syntax here.
341fe69678Skupfer#
351fe69678Skupfer
361fe69678Skupfer#
371fe69678Skupfer# the source product has no SCCS history, and is modified to remove source
381fe69678Skupfer# that cannot be shipped. EXPORT_SRC is where the clear files are copied, then
391fe69678Skupfer# modified with 'make EXPORT_SRC'.
401fe69678Skupfer#
411fe69678Skupfer[ -n "$EXPORT_SRC" ] || export EXPORT_SRC="$CODEMGR_WS/export_src"
421fe69678Skupfer
431fe69678Skupfer#
441fe69678Skupfer# CRYPT_SRC is similar to EXPORT_SRC, but after 'make CRYPT_SRC' the files in
451fe69678Skupfer# xmod/cry_files are saved. They are dropped on the exportable source to create
461fe69678Skupfer# the domestic build.
471fe69678Skupfer#
481fe69678Skupfer[ -n "$CRYPT_SRC" ] || export CRYPT_SRC="$CODEMGR_WS/crypt_src"
491fe69678Skupfer
501fe69678Skupfer#
511fe69678Skupfer# OPEN_SRCDIR is where we copy the open tree to so that we can be sure
521fe69678Skupfer# we don't have a hidden dependency on closed code.  The name ends in
531fe69678Skupfer# "DIR" to avoid confusion with the flags related to open source
541fe69678Skupfer# builds.
551fe69678Skupfer#
561fe69678Skupfer[ -n "$OPEN_SRCDIR" ] || export OPEN_SRCDIR="$CODEMGR_WS/open_src"
57*4e5b757fSkupfer
58*4e5b757fSkupfer#
59*4e5b757fSkupfer# Flag to enable creation of per-build-type proto areas.  If "yes",
60*4e5b757fSkupfer# more proto areas are created, which speeds up incremental builds but
61*4e5b757fSkupfer# increases storage consumption.  Will be forced to "yes" for
62*4e5b757fSkupfer# OpenSolaris deliveries.
63*4e5b757fSkupfer#
64*4e5b757fSkupfer[ -n "$MULTI_PROTO" ] || export MULTI_PROTO=no
65