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 2010 Sun Microsystems, Inc. All rights reserved. 24 # Use is subject to license terms. 25 # 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 gate, 31 # which will contain the resulting packages and archives (builds of the gate 32 # are done in children and then the resulting archives, packages, and proto 33 # area are put into the parent for everyone to use). It is based off 34 # the onnv release. It sets NIGHTLY_OPTIONS to make nightly do: 35 # DEBUG and non-DEBUG builds (-D) 36 # creates a globalization package (-0) 37 # creates cpio archives for bfu (-a) 38 # creates packages for PIT/RE (-p) 39 # checks for new interfaces in libraries (-A) 40 # runs 'make check' (-C) 41 # runs lint in usr/src (-l plus the LINTDIRS variable) 42 # sends mail on completion (-m and the MAILTO variable) 43 # updates the protolist in the parent for children to compare with (-u) 44 # updates the proto area in the parent when done (-U) 45 # checks for changes in ELF runpaths (-r) 46 # checks for changes in unreferenced files (-f) 47 # 48 NIGHTLY_OPTIONS="-0aADClmpuUrf"; export NIGHTLY_OPTIONS 49 50 # This is a variable for the rest of the script - GATE doesn't matter to 51 # nightly itself 52 GATE=onnv-gate; export GATE 53 54 # CODEMGR_WS - where is your workspace at (or what should nightly name it) 55 # there is only one definition here, which assumes all the gate build machines 56 # (sparc and x86) are set up the same. But remember, this is a script, so 57 # you _could_ look at $MACH or `uname -n` and set these variables differently. 58 CODEMGR_WS="/builds/$GATE"; export CODEMGR_WS 59 60 # G11N_PKGDIR - where does the globalization package live 61 G11N_PKGDIR="$CODEMGR_WS/usr/src/pkgdefs/SUNW0on"; export G11N_PKGDIR 62 63 # PARENT_WS is used to determine the parent of this workspace. This is 64 # for the options that deal with the parent workspace (such as where the 65 # proto area will go). 66 # 67 # If you use this, it must be local (or nfs): nightly cannot copy 68 # over ssh or http. 69 PARENT_WS="/ws/$GATE"; export PARENT_WS 70 71 # CLONE_WS is the workspace nightly should do a bringover from. 72 CLONE_WS="ssh://anonhg (at] onnv.sfbay.sun.com//export/onnv-clone"; export CLONE_WS 73 74 # CLOSED_CLONE_WS is the workspace from which nightly will acquire the 75 # usr/closed tree. 76 CLOSED_CLONE_WS="${CLONE_WS}/usr/closed" 77 export CLOSED_CLONE_WS 78 79 # This flag controls whether to build the closed source. If 80 # undefined, nightly(1) and bldenv(1) will set it according to whether 81 # the closed source tree is present. CLOSED_IS_PRESENT="no" means not 82 # building the closed sources. 83 # CLOSED_IS_PRESENT="yes"; export CLOSED_IS_PRESENT 84 85 # The bringover, if any, is done as STAFFER. 86 # Set STAFFER to your own login as gatekeeper or integration engineer. 87 # The point is to use group "staff" and avoid referencing the parent 88 # workspace as root. 89 # Some scripts optionally send mail messages to MAILTO. 90 # 91 STAFFER=nobody; export STAFFER 92 MAILTO=$STAFFER; export MAILTO 93 94 # The project (see project(4)) under which to run this build. If not 95 # specified, the build is simply run in a new task in the current project. 96 BUILD_PROJECT=; export BUILD_PROJECT 97 98 # You should not need to change the next four lines 99 LOCKNAME="`basename $CODEMGR_WS`_nightly.lock"; export LOCKNAME 100 ATLOG="$CODEMGR_WS/log"; export ATLOG 101 LOGFILE="$ATLOG/nightly.log"; export LOGFILE 102 MACH=`uname -p`; export MACH 103 104 # This is usually just needed if the closed tree is missing, or when 105 # building a project gate with the -O (cap oh) flag. 106 # ON_CRYPTO_BINS="$PARENT_WS/packages/$MACH/on-crypto.$MACH.tar.bz2" 107 # export ON_CRYPTO_BINS 108 109 # REF_PROTO_LIST - for comparing the list of stuff in your proto area 110 # with. Generally this should be left alone, since you want to see differences 111 # between todays build and yesterdays. 112 # 113 REF_PROTO_LIST=$PARENT_WS/usr/src/proto_list_${MACH}; export REF_PROTO_LIST 114 115 # where cpio archives of the OS are placed. Usually this should be left 116 # alone too. Here they don't go in the build workspace, but in the parent. 117 # Since this is done as root, the build machine needs root acces to 118 # the parent over NFS. 119 CPIODIR="${PARENT_WS}/archives/${MACH}/nightly"; export CPIODIR 120 121 # 122 # build environment variables, including version info for mcs, motd, 123 # motd, uname and boot messages. Mostly you shouldn't change this except 124 # when the release slips (nah) or when starting a new release. 125 # 126 ROOT="$CODEMGR_WS/proto/root_${MACH}"; export ROOT 127 SRC="$CODEMGR_WS/usr/src"; export SRC 128 VERSION="$GATE"; export VERSION 129 130 # 131 # the RELEASE and RELEASE_DATE variables are set in Makefile.master; 132 # there might be special reasons to override them here, but that 133 # should not be the case in general 134 # 135 # RELEASE="5.10.1"; export RELEASE 136 # RELEASE_DATE="October 2007"; export RELEASE_DATE 137 138 # proto area in parent for optionally depositing a copy of headers and 139 # libraries corresponding to the protolibs target 140 # 141 PARENT_ROOT=$PARENT_WS/proto/root_$MACH; export PARENT_ROOT 142 143 # 144 # package creation variable. This put the packages in the parent. 145 # 146 PKGARCHIVE="${PARENT_WS}/packages/${MACH}/nightly"; export PKGARCHIVE 147 148 # we want make to do as much as it can, just in case there's more than 149 # one problem. This is especially important with the gate, since multiple 150 # unrelated broken things can be integrated. 151 MAKEFLAGS=k; export MAKEFLAGS 152 153 # Magic variable to prevent the devpro compilers/teamware from sending 154 # mail back to devpro on every use. 155 UT_NO_USAGE_TRACKING="1"; export UT_NO_USAGE_TRACKING 156 157 # Build tools - don't set these unless you know what you're doing. These 158 # variables allows you to get the compilers and onbld files locally or 159 # through cachefs. Set BUILD_TOOLS to pull everything from one location. 160 # Alternately, you can set ONBLD_TOOLS to where you keep the contents of 161 # SUNWonbld and SPRO_ROOT to where you keep the compilers. 162 # 163 #BUILD_TOOLS=/opt; export BUILD_TOOLS 164 #ONBLD_TOOLS=/opt/onbld; export ONBLD_TOOLS 165 #SPRO_ROOT=/opt/SUNspro; export SPRO_ROOT 166 167 # This goes along with lint - it is a series of the form "A [y|n]" which 168 # means "go to directory A and run 'make lint'" Then mail me (y) the 169 # difference in the lint output. 'y' should only be used if the area you're 170 # linting is actually lint clean or you'll get lots of mail. 171 # You shouldn't need to change this though. 172 #LINTDIRS="$SRC y"; export LINTDIRS 173 174 # 175 # Reference to IA32 IHV workspace, proto area and packages 176 # 177 #IA32_IHV_WS=/ws/${GATE}-ihv; export IA32_IHV_WS 178 #IA32_IHV_ROOT=$IA32_IHV_WS/proto/root_i386; export IA32_IHV_ROOT 179 #IA32_IHV_PKGS=$IA32_IHV_WS/packages/i386/nightly; export IA32_IHV_PKGS 180 181 # 182 # Reference to binary-only IA32 IHV packages 183 # 184 #IA32_IHV_BINARY_PKGS=/ws/${GATE}-ihv-bin 185 #export IA32_IHV_BINARY_PKGS 186 187 # 188 # Destination for sparc realmode package SUNWrmodu 189 # 190 #SPARC_RM_PKGARCHIVE="${CODEMGR_WS}/packages/sparc_realmode/nightly" 191 #export SPARC_RM_PKGARCHIVE 192 193 # Set this flag to 'n' to disable the automatic validation of the dmake 194 # version in use. The default is to check it. 195 #CHECK_DMAKE=y 196 197 # Set this flag to 'n' to disable the use of 'checkpaths'. The default, 198 # if the 'N' option is not specified, is to run this test. 199 #CHECK_PATHS=y 200 201 # Set this flag to 'y' to enable the use of elfsigncmp to validate the 202 # output of elfsign. Doing so requires that 't' be set in NIGHTLY_OPTIONS. 203 # The default is to not verify them. 204 #VERIFY_ELFSIGN=n 205 206 # BRINGOVER_FILES is the list of files nightly passes to bringover. 207 # If not set the default is "usr", but it can be used for bringing 208 # over deleted_files or other nifty directories. 209 #BRINGOVER_FILES="usr deleted_files" 210 211 # POST_NIGHTLY can be any command to be run at the end of nightly. See 212 # nightly(1) for interactions between environment variables and this command. 213 #POST_NIGHTLY= 214