1 0 stevel # 2 0 stevel # CDDL HEADER START 3 0 stevel # 4 0 stevel # The contents of this file are subject to the terms of the 5 2294 meem # Common Development and Distribution License (the "License"). 6 2294 meem # You may not use this file except in compliance with the License. 7 0 stevel # 8 0 stevel # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 0 stevel # or http://www.opensolaris.org/os/licensing. 10 0 stevel # See the License for the specific language governing permissions 11 0 stevel # and limitations under the License. 12 0 stevel # 13 0 stevel # When distributing Covered Code, include this CDDL HEADER in each 14 0 stevel # file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 0 stevel # If applicable, add the following below this CDDL HEADER, with the 16 0 stevel # fields enclosed by brackets "[]" replaced with your own identifying 17 0 stevel # information: Portions Copyright [yyyy] [name of copyright owner] 18 0 stevel # 19 0 stevel # CDDL HEADER END 20 0 stevel # 21 2868 dduvall 22 0 stevel # 23 8788 Mark # Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24 0 stevel # Use is subject to license terms. 25 2868 dduvall # 26 2868 dduvall 27 0 stevel # Configuration variables for the runtime environment of the nightly 28 0 stevel # build script and other tools for construction and packaging of releases. 29 0 stevel # This script is sourced by 'nightly' and 'bldenv' to set up the environment 30 0 stevel # for the build. This example is suitable for building a developers workspace, 31 0 stevel # which will contain the resulting packages and archives. It is based off 32 0 stevel # the onnv release. It sets NIGHTLY_OPTIONS to make nightly do: 33 0 stevel # creates cpio archives for bfu (-a) 34 0 stevel # runs 'make check' (-C) 35 0 stevel # DEBUG and non-DEBUG builds (-D) 36 0 stevel # runs lint in usr/src (-l plus the LINTDIRS variable) 37 0 stevel # sends mail on completion (-m and the MAILTO variable) 38 0 stevel # creates packages for PIT/RE (-p) 39 0 stevel # checks for changes in ELF runpaths (-r) 40 0 stevel # 41 2294 meem NIGHTLY_OPTIONS="-aCDlmpr"; export NIGHTLY_OPTIONS 42 0 stevel 43 0 stevel # This is a variable for the rest of the script - GATE doesn't matter to 44 0 stevel # nightly itself 45 0 stevel GATE=onnv-bugfixes; export GATE 46 0 stevel 47 0 stevel # CODEMGR_WS - where is your workspace at (or what should nightly name it) 48 0 stevel CODEMGR_WS="/builds/$GATE"; export CODEMGR_WS 49 10517 Mark 50 10517 Mark # G11N_PKGDIR - where does the globalization package live 51 10517 Mark G11N_PKGDIR="$CODEMGR_WS/usr/src/pkgdefs/SUNW0on"; export G11N_PKGDIR 52 0 stevel 53 0 stevel # PARENT_WS is used to determine the parent of this workspace. This is 54 0 stevel # for the options that deal with the parent workspace (such as where the 55 0 stevel # proto area will go). 56 7298 Mark # 57 7298 Mark # If you use this, it must be local (or nfs): nightly cannot copy 58 7298 Mark # over ssh or http. 59 0 stevel PARENT_WS="/ws/onnv-gate"; export PARENT_WS 60 0 stevel 61 7298 Mark # CLONE_WS is the workspace nightly should do a bringover from. 62 8788 Mark CLONE_WS="ssh://anonhg (at] onnv.sfbay.sun.com//export/onnv-clone"; export CLONE_WS 63 7298 Mark 64 7298 Mark # CLOSED_CLONE_WS is the workspace from which nightly should acquire 65 7298 Mark # the usr/closed tree. 66 7298 Mark CLOSED_CLONE_WS="${CLONE_WS}/usr/closed"; export CLOSED_CLONE_WS 67 1167 kupfer 68 1167 kupfer # This flag controls whether to build the closed source. If 69 1167 kupfer # undefined, nightly(1) and bldenv(1) will set it according to whether 70 5986 kupfer # the closed source tree is present. CLOSED_IS_PRESENT="no" means not 71 5986 kupfer # building the closed sources. 72 1167 kupfer # CLOSED_IS_PRESENT="yes"; export CLOSED_IS_PRESENT 73 0 stevel 74 0 stevel # The bringover, if any, is done as STAFFER. 75 0 stevel # Set STAFFER to your own login as gatekeeper or developer 76 0 stevel # The point is to use group "staff" and avoid referencing the parent 77 0 stevel # workspace as root. 78 0 stevel # Some scripts optionally send mail messages to MAILTO. 79 0 stevel # 80 0 stevel STAFFER=nobody; export STAFFER 81 0 stevel MAILTO=$STAFFER; export MAILTO 82 0 stevel 83 0 stevel # The project (see project(4)) under which to run this build. If not 84 0 stevel # specified, the build is simply run in a new task in the current project. 85 0 stevel BUILD_PROJECT=; export BUILD_PROJECT 86 0 stevel 87 0 stevel # You should not need to change the next four lines 88 0 stevel LOCKNAME="`basename $CODEMGR_WS`_nightly.lock"; export LOCKNAME 89 0 stevel ATLOG="$CODEMGR_WS/log"; export ATLOG 90 0 stevel LOGFILE="$ATLOG/nightly.log"; export LOGFILE 91 0 stevel MACH=`uname -p`; export MACH 92 0 stevel 93 0 stevel # REF_PROTO_LIST - for comparing the list of stuff in your proto area 94 0 stevel # with. Generally this should be left alone, since you want to see differences 95 0 stevel # from your parent (the gate). 96 0 stevel # 97 0 stevel REF_PROTO_LIST=$PARENT_WS/usr/src/proto_list_${MACH}; export REF_PROTO_LIST 98 0 stevel 99 0 stevel # where cpio archives of the OS are placed. Usually this should be left 100 0 stevel # alone too. 101 0 stevel CPIODIR="${CODEMGR_WS}/archives/${MACH}/nightly"; export CPIODIR 102 0 stevel 103 0 stevel # 104 0 stevel # build environment variables, including version info for mcs, motd, 105 0 stevel # motd, uname and boot messages. Mostly you shouldn't change this except 106 0 stevel # when the release slips (nah) or you move an environment file to a new 107 0 stevel # release 108 0 stevel # 109 0 stevel ROOT="$CODEMGR_WS/proto/root_${MACH}"; export ROOT 110 0 stevel SRC="$CODEMGR_WS/usr/src"; export SRC 111 0 stevel VERSION="$GATE"; export VERSION 112 0 stevel 113 0 stevel # 114 0 stevel # the RELEASE and RELEASE_DATE variables are set in Makefile.master; 115 0 stevel # there might be special reasons to override them here, but that 116 0 stevel # should not be the case in general 117 0 stevel # 118 0 stevel # RELEASE="5.10.1"; export RELEASE 119 0 stevel # RELEASE_DATE="October 2007"; export RELEASE_DATE 120 0 stevel 121 0 stevel # proto area in parent for optionally depositing a copy of headers and 122 0 stevel # libraries corresponding to the protolibs target 123 0 stevel # not applicable given the NIGHTLY_OPTIONS 124 0 stevel # 125 0 stevel PARENT_ROOT=$PARENT_WS/proto/root_$MACH; export PARENT_ROOT 126 0 stevel 127 0 stevel # 128 0 stevel # package creation variable. you probably shouldn't change this either. 129 0 stevel # 130 0 stevel PKGARCHIVE="${CODEMGR_WS}/packages/${MACH}/nightly"; export PKGARCHIVE 131 0 stevel 132 0 stevel # we want make to do as much as it can, just in case there's more than 133 0 stevel # one problem. 134 0 stevel MAKEFLAGS=k; export MAKEFLAGS 135 0 stevel 136 0 stevel # Magic variable to prevent the devpro compilers/teamware from sending 137 0 stevel # mail back to devpro on every use. 138 0 stevel UT_NO_USAGE_TRACKING="1"; export UT_NO_USAGE_TRACKING 139 0 stevel 140 0 stevel # Build tools - don't set these unless you know what you're doing. These 141 0 stevel # variables allows you to get the compilers and onbld files locally or 142 0 stevel # through cachefs. Set BUILD_TOOLS to pull everything from one location. 143 0 stevel # Alternately, you can set ONBLD_TOOLS to where you keep the contents of 144 0 stevel # SUNWonbld and SPRO_ROOT to where you keep the compilers. 145 0 stevel # 146 0 stevel #BUILD_TOOLS=/opt; export BUILD_TOOLS 147 0 stevel #ONBLD_TOOLS=/opt/onbld; export ONBLD_TOOLS 148 4458 dh155122 #SPRO_ROOT=/opt/SUNWspro; export SPRO_ROOT 149 0 stevel 150 0 stevel # This goes along with lint - it is a series of the form "A [y|n]" which 151 0 stevel # means "go to directory A and run 'make lint'" Then mail me (y) the 152 0 stevel # difference in the lint output. 'y' should only be used if the area you're 153 0 stevel # linting is actually lint clean or you'll get lots of mail. 154 0 stevel # You shouldn't need to change this though. 155 0 stevel #LINTDIRS="$SRC y"; export LINTDIRS 156 0 stevel 157 0 stevel # 158 0 stevel # Reference to IA32 IHV workspace, proto area and packages 159 0 stevel # 160 0 stevel #IA32_IHV_WS=/ws/${GATE}-ihv; export IA32_IHV_WS 161 0 stevel #IA32_IHV_ROOT=$IA32_IHV_WS/proto/root_i386; export IA32_IHV_ROOT 162 0 stevel #IA32_IHV_PKGS=$IA32_IHV_WS/packages/i386/nightly; export IA32_IHV_PKGS 163 0 stevel 164 0 stevel # 165 2868 dduvall # Reference to binary-only IA32 IHV packages 166 0 stevel # 167 2868 dduvall #IA32_IHV_BINARY_PKGS=/ws/${GATE}-ihv-bin 168 0 stevel #export IA32_IHV_BINARY_PKGS 169 0 stevel 170 0 stevel # 171 0 stevel # Destination for sparc realmode package SUNWrmodu 172 0 stevel # 173 0 stevel #SPARC_RM_PKGARCHIVE="${CODEMGR_WS}/packages/sparc_realmode/nightly" 174 0 stevel #export SPARC_RM_PKGARCHIVE 175 0 stevel 176 0 stevel # Set this flag to 'n' to disable the automatic validation of the dmake 177 0 stevel # version in use. The default is to check it. 178 0 stevel #CHECK_DMAKE=y 179 0 stevel 180 0 stevel # Set this flag to 'n' to disable the use of 'checkpaths'. The default, 181 0 stevel # if the 'N' option is not specified, is to run this test. 182 0 stevel #CHECK_PATHS=y 183 0 stevel 184 0 stevel # Set this flag to 'y' to enable the use of elfsigncmp to validate the 185 0 stevel # output of elfsign. Doing so requires that 't' be set in NIGHTLY_OPTIONS. 186 0 stevel # The default is to not verify them. 187 0 stevel #VERIFY_ELFSIGN=n 188 458 mike_s 189 458 mike_s # BRINGOVER_FILES is the list of files nightly passes to bringover. 190 1167 kupfer # If not set the default is "usr", but it can be used for bringing 191 458 mike_s # over deleted_files or other nifty directories. 192 1167 kupfer #BRINGOVER_FILES="usr deleted_files" 193 2405 rscott 194 2456 rscott # POST_NIGHTLY can be any command to be run at the end of nightly. See 195 2456 rscott # nightly(1) for interactions between environment variables and this command. 196 2405 rscott #POST_NIGHTLY= 197