Print this page
4108 remove ON_CRYPTO_BINS from tools
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/tools/env/illumos.sh
+++ new/usr/src/tools/env/illumos.sh
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
22 22 # Copyright 2010, 2011 Nexenta Systems, Inc. All rights reserved.
23 23 # Copyright 2012 Joshua M. Clulow <josh@sysmgr.org>
24 24 #
25 25
26 26 # Configuration variables for the runtime environment of the nightly
27 27 # build script and other tools for construction and packaging of
28 28 # releases.
29 29 # This example is suitable for building an illumos workspace, which
30 30 # will contain the resulting archives. It is based off the onnv
31 31 # release. It sets NIGHTLY_OPTIONS to make nightly do:
32 32 # DEBUG build only (-D, -F)
33 33 # do not bringover from the parent (-n)
34 34 # runs 'make check' (-C)
35 35 # runs lint in usr/src (-l plus the LINTDIRS variable)
36 36 # sends mail on completion (-m and the MAILTO variable)
37 37 # creates packages for PIT/RE (-p)
38 38 # checks for changes in ELF runpaths (-r)
39 39 # build and use this workspace's tools in $SRC/tools (-t)
40 40 #
41 41 # - This file is sourced by "bldenv.sh" and "nightly.sh" and should not
42 42 # be executed directly.
43 43 # - This script is only interpreted by ksh93 and explicitly allows the
44 44 # use of ksh93 language extensions.
45 45 #
46 46 export NIGHTLY_OPTIONS='-FnCDlmprt'
47 47
48 48 #
49 49 # -- PLEASE READ THIS --
50 50 #
51 51 # The variables GATE and CODEMGR_WS must always be customised to
52 52 # match your workspace/gate location!!
53 53 #
54 54 # -- PLEASE READ THIS --
55 55 #
56 56
57 57 # This is a variable for the rest of the script - GATE doesn't matter to
58 58 # nightly itself
59 59 export GATE='testws'
60 60
61 61 # CODEMGR_WS - where is your workspace at (or what should nightly name it)
62 62 export CODEMGR_WS="$HOME/ws/$GATE"
63 63
64 64 # Maximum number of dmake jobs. The recommended number is 2 + NCPUS,
65 65 # where NCPUS is the number of logical CPUs on your build system.
66 66 function maxjobs
67 67 {
68 68 nameref maxjobs=$1
69 69 integer ncpu
70 70 integer -r min_mem_per_job=512 # minimum amount of memory for a job
71 71
72 72 ncpu=$(builtin getconf ; getconf 'NPROCESSORS_ONLN')
73 73 (( maxjobs=ncpu + 2 ))
74 74
75 75 # Throttle number of parallel jobs launched by dmake to a value which
76 76 # gurantees that all jobs have enough memory. This was added to avoid
77 77 # excessive paging/swapping in cases of virtual machine installations
78 78 # which have lots of CPUs but not enough memory assigned to handle
79 79 # that many parallel jobs
80 80 if [[ $(/usr/sbin/prtconf 2>'/dev/null') == ~(E)Memory\ size:\ ([[:digit:]]+)\ Megabytes ]] ; then
81 81 integer max_jobs_per_memory # parallel jobs which fit into physical memory
82 82 integer physical_memory # physical memory installed
83 83
84 84 # The array ".sh.match" contains the contents of capturing
85 85 # brackets in the last regex, .sh.match[1] will contain
86 86 # the value matched by ([[:digit:]]+), i.e. the amount of
87 87 # memory installed
88 88 physical_memory="10#${.sh.match[1]}"
89 89
90 90 ((
91 91 max_jobs_per_memory=round(physical_memory/min_mem_per_job) ,
92 92 maxjobs=fmax(2, fmin(maxjobs, max_jobs_per_memory))
93 93 ))
94 94 fi
95 95
96 96 return 0
97 97 }
98 98
99 99 maxjobs DMAKE_MAX_JOBS # "DMAKE_MAX_JOBS" passed as ksh(1) name reference
100 100 export DMAKE_MAX_JOBS
101 101
102 102 # path to onbld tool binaries
103 103 ONBLD_BIN='/opt/onbld/bin'
104 104
105 105 # PARENT_WS is used to determine the parent of this workspace. This is
106 106 # for the options that deal with the parent workspace (such as where the
107 107 # proto area will go).
108 108 export PARENT_WS=''
109 109
110 110 # CLONE_WS is the workspace nightly should do a bringover from.
111 111 export CLONE_WS='ssh://anonhg@hg.illumos.org/illumos-gate'
112 112
113 113 # The bringover, if any, is done as STAFFER.
114 114 # Set STAFFER to your own login as gatekeeper or developer
115 115 # The point is to use group "staff" and avoid referencing the parent
116 116 # workspace as root.
117 117 # Some scripts optionally send mail messages to MAILTO.
118 118 #
119 119 export STAFFER="$LOGNAME"
120 120 export MAILTO="$STAFFER"
121 121
122 122 # If you wish the mail messages to be From: an arbitrary address, export
123 123 # MAILFROM.
124 124 #export MAILFROM="user@example.com"
125 125
126 126 # The project (see project(4)) under which to run this build. If not
↓ open down ↓ |
126 lines elided |
↑ open up ↑ |
127 127 # specified, the build is simply run in a new task in the current project.
128 128 export BUILD_PROJECT=''
129 129
130 130 # You should not need to change the next four lines
131 131 export LOCKNAME="$(basename -- "$CODEMGR_WS")_nightly.lock"
132 132 export ATLOG="$CODEMGR_WS/log"
133 133 export LOGFILE="$ATLOG/nightly.log"
134 134 export MACH="$(uname -p)"
135 135
136 136 #
137 -# The following two macros are the closed/crypto binaries. Once
138 -# Illumos has totally freed itself, we can remove these references.
137 +# The following macro is the closed binaries. Once
138 +# Illumos has totally freed itself, we can remove this reference.
139 139 #
140 140 # Location of encumbered binaries.
141 141 export ON_CLOSED_BINS="$CODEMGR_WS/closed"
142 -# Location of signed cryptographic binaries.
143 -export ON_CRYPTO_BINS="$CODEMGR_WS/on-crypto.$MACH.tar.bz2"
144 142
145 143 # REF_PROTO_LIST - for comparing the list of stuff in your proto area
146 144 # with. Generally this should be left alone, since you want to see differences
147 145 # from your parent (the gate).
148 146 #
149 147 export REF_PROTO_LIST="$PARENT_WS/usr/src/proto_list_${MACH}"
150 148
151 149
152 150 export ROOT="$CODEMGR_WS/proto/root_${MACH}"
153 151 export SRC="$CODEMGR_WS/usr/src"
154 152 export MULTI_PROTO="no"
155 153
156 154 #
157 155 # build environment variables, including version info for mcs, motd,
158 156 # motd, uname and boot messages. Mostly you shouldn't change this except
159 157 # when the release slips (nah) or you move an environment file to a new
160 158 # release
161 159 #
162 160 export VERSION="$GATE"
163 161
164 162 #
165 163 # the RELEASE and RELEASE_DATE variables are set in Makefile.master;
166 164 # there might be special reasons to override them here, but that
167 165 # should not be the case in general
168 166 #
169 167 # export RELEASE='5.11'
170 168 # export RELEASE_DATE='October 2007'
171 169
172 170 # proto area in parent for optionally depositing a copy of headers and
173 171 # libraries corresponding to the protolibs target
174 172 # not applicable given the NIGHTLY_OPTIONS
175 173 #
176 174 export PARENT_ROOT="$PARENT_WS/proto/root_$MACH"
177 175 export PARENT_TOOLS_ROOT="$PARENT_WS/usr/src/tools/proto/root_$MACH-nd"
178 176
179 177 # Package creation variables. You probably shouldn't change these,
180 178 # either.
181 179 #
182 180 # PKGARCHIVE determines where the repository will be created.
183 181 #
184 182 # PKGPUBLISHER_REDIST controls the publisher setting for the repository.
185 183 #
186 184 export PKGARCHIVE="${CODEMGR_WS}/packages/${MACH}/nightly"
187 185 # export PKGPUBLISHER_REDIST='on-redist'
188 186
189 187 # Package manifest format version.
190 188 export PKGFMT_OUTPUT='v1'
191 189
192 190 # we want make to do as much as it can, just in case there's more than
193 191 # one problem.
194 192 export MAKEFLAGS='k'
195 193
196 194 # Magic variable to prevent the devpro compilers/teamware from sending
197 195 # mail back to devpro on every use.
198 196 export UT_NO_USAGE_TRACKING='1'
199 197
200 198 # Build tools - don't change these unless you know what you're doing. These
201 199 # variables allows you to get the compilers and onbld files locally or
202 200 # through cachefs. Set BUILD_TOOLS to pull everything from one location.
203 201 # Alternately, you can set ONBLD_TOOLS to where you keep the contents of
204 202 # SUNWonbld and SPRO_ROOT to where you keep the compilers. SPRO_VROOT
205 203 # exists to make it easier to test new versions of the compiler.
206 204 export BUILD_TOOLS='/opt'
207 205 #export ONBLD_TOOLS='/opt/onbld'
208 206 export SPRO_ROOT='/opt/SUNWspro'
209 207 export SPRO_VROOT="$SPRO_ROOT"
210 208
211 209 # This goes along with lint - it is a series of the form "A [y|n]" which
212 210 # means "go to directory A and run 'make lint'" Then mail me (y) the
213 211 # difference in the lint output. 'y' should only be used if the area you're
214 212 # linting is actually lint clean or you'll get lots of mail.
215 213 # You shouldn't need to change this though.
216 214 #export LINTDIRS="$SRC y"
217 215
218 216 # Set this flag to 'n' to disable the automatic validation of the dmake
219 217 # version in use. The default is to check it.
220 218 #CHECK_DMAKE='y'
221 219
222 220 # Set this flag to 'n' to disable the use of 'checkpaths'. The default,
223 221 # if the 'N' option is not specified, is to run this test.
224 222 #CHECK_PATHS='y'
225 223
226 224 # POST_NIGHTLY can be any command to be run at the end of nightly. See
227 225 # nightly(1) for interactions between environment variables and this command.
228 226 #POST_NIGHTLY=
229 227
230 228 # Uncomment this to disable support for SMB printing.
231 229 # export ENABLE_SMB_PRINTING='#'
↓ open down ↓ |
78 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX