Mercurial > illumos > onarm
annotate initenv.sh @ 6:66ca4e7dba9b
remove dependency on README.opensolaris in initenv.sh
author | Koji Uno <koji.uno@sun.com> |
---|---|
date | Thu, 15 Oct 2009 14:04:56 +0900 |
parents | 1a15d5aaf794 |
children |
rev | line source |
---|---|
0 | 1 #!/bin/ksh -p |
2 # | |
3 # CDDL HEADER START | |
4 # | |
5 # The contents of this file are subject to the terms of the | |
6 # Common Development and Distribution License (the "License"). | |
7 # You may not use this file except in compliance with the License. | |
8 # | |
9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE | |
10 # or http://www.opensolaris.org/os/licensing. | |
11 # See the License for the specific language governing permissions | |
12 # and limitations under the License. | |
13 # | |
14 # When distributing Covered Code, include this CDDL HEADER in each | |
15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. | |
16 # If applicable, add the following below this CDDL HEADER, with the | |
17 # fields enclosed by brackets "[]" replaced with your own identifying | |
18 # information: Portions Copyright [yyyy] [name of copyright owner] | |
19 # | |
20 # CDDL HEADER END | |
21 # | |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
22 # Copyright 2008 Sun Microsystems, Inc. All rights reserved. |
0 | 23 # Use is subject to license terms. |
24 # | |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
25 #ident "%Z%%M% %I% %E% SMI" |
0 | 26 # |
27 | |
28 # | |
29 # Copyright (c) 2006-2009 NEC Corporation | |
30 # | |
31 | |
32 ## | |
33 ## Create runtime configuration file of the build tools. | |
34 ## | |
35 | |
36 CAT=/bin/cat | |
37 PWD=/bin/pwd | |
38 WHO=/bin/who | |
39 UNAME=/bin/uname | |
40 BASENAME=/bin/basename | |
41 DIRNAME=/bin/dirname | |
42 AWK=/bin/awk | |
43 | |
44 arm_COMPILER_TARGET=${arm_COMPILER_TARGET:-arm-pc-solaris2.11} | |
45 arm_COMPILER_PREFIX=${arm_COMPILER_PREFIX:-/opt/arm-eabi} | |
46 arm_COMPILER_ROOT=${arm_COMPILER_ROOT:-${arm_COMPILER_PREFIX}/${arm_COMPILER_TARGET}} | |
47 arm_DEFAULT_SYSROOT=${arm_DEFAULT_SYSROOT:-${arm_COMPILER_PREFIX}/root} | |
48 | |
49 # Specify platform for ARM explicitly. | |
50 ARM_PLATFORM=${ARM_PLATFORM:-ne1} | |
51 | |
52 get_workspace_root() | |
53 { | |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
54 dir=`$PWD` |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
55 while [ ! -d $dir/usr -o ! -d $dir/usr/src -o \ |
6
66ca4e7dba9b
remove dependency on README.opensolaris in initenv.sh
Koji Uno <koji.uno@sun.com>
parents:
4
diff
changeset
|
56 ! -f $dir/usr/src/OPENSOLARIS.LICENSE ]; do |
0 | 57 if [ $dir = "/" ]; then |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
58 echo "Can't detect workspace path." >&2 |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
59 exit 1 |
0 | 60 fi |
61 dir=`$DIRNAME $dir` | |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
62 done |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
63 workspace=$dir |
0 | 64 } |
65 | |
66 | |
67 dump_config() | |
68 { | |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
69 ws=$1 |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
70 staffer=$2 |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
71 mach=$3 |
0 | 72 |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
73 gate=`$BASENAME $ws` |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
74 native_mach=`$UNAME -p` |
0 | 75 |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
76 cross=`eval echo '$'"${mach}"_COMPILER_ROOT` |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
77 target= |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
78 xtarget= |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
79 xprefix= |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
80 xtool_prefix= |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
81 xsysroot= |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
82 if [ "$cross" != "" ]; then |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
83 # Use cross compiler |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
84 cross="GNU_ROOT=${cross}; export GNU_ROOT" |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
85 prefix=`eval echo '$'"${mach}"_COMPILER_PREFIX` |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
86 xprefix="GNU_PREFIX=${prefix}; export GNU_PREFIX" |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
87 xld_prefix="LD_PREFIX=${prefix}; export LD_PREFIX" |
0 | 88 |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
89 target=`eval echo '$'"${mach}"_COMPILER_TARGET` |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
90 xtarget="GNU_TOOL_TARGET=${target}; export GNU_TOOL_TARGET" |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
91 xtool_prefix="GNU_TOOL_PREFIX=${target}-; export GNU_TOOL_PREFIX" |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
92 sysroot=`eval echo '$'"${mach}"_DEFAULT_SYSROOT` |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
93 xsysroot="DEFAULT_SYSROOT=${sysroot}; export DEFAULT_SYSROOT" |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
94 fi |
0 | 95 |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
96 fname="opensolaris-${mach}.sh" |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
97 $CAT > $fname <<EOF |
0 | 98 |
99 # | |
100 # Configuration variables for the runtime environment of the nightly | |
101 # build script and other tools for construction and packaging of releases. | |
102 # This script is sourced by 'nightly' and 'bldenv' to set up the environment | |
103 # for the build. This example is suitable for building an OpenSolaris | |
104 # workspace, which will contain the resulting archives. It is based | |
105 # off the onnv release. It sets NIGHTLY_OPTIONS to make nightly do: | |
106 # DEBUG build only (-D, -F) | |
107 # do not run protocmp or checkpaths (-N) | |
108 # do not bringover from the parent (-n) | |
109 # creates cpio archives for bfu (-a) | |
110 # runs 'make check' (-C) | |
111 # runs lint in usr/src (-l plus the LINTDIRS variable) | |
112 # sends mail on completion (-m and the MAILTO variable) | |
113 # checks for changes in ELF runpaths (-r) | |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
114 # build and use this workspace's tools in $SRC/tools (-t) |
0 | 115 # |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
116 NIGHTLY_OPTIONS="-FNnDt"; export NIGHTLY_OPTIONS |
0 | 117 |
118 # This is a variable for the rest of the script - GATE doesn't matter to | |
119 # nightly itself | |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
120 GATE=$gate; export GATE |
0 | 121 |
122 # CODEMGR_WS - where is your workspace at (or what should nightly name it) | |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
123 CODEMGR_WS="$ws"; export CODEMGR_WS |
0 | 124 |
125 # Location of encumbered binaries. | |
126 ON_CLOSED_BINS="\$CODEMGR_WS/closed"; export ON_CLOSED_BINS | |
127 | |
128 # This flag controls whether to build the closed source. If | |
129 # undefined, nightly(1) and bldenv(1) will set it according to whether | |
130 # the closed source tree is present. CLOSED_IS_PRESENT="no" means not | |
131 # building the closed sources. | |
132 # CLOSED_IS_PRESENT="no"; export CLOSED_IS_PRESENT | |
133 | |
134 # Maximum number of dmake jobs. The recommended number is 2 + (2 * | |
135 # NCPUS), where NCPUS is the number of CPUs on your build system. | |
136 maxjobs() { | |
137 ncpu=\`/usr/sbin/psrinfo -p\` | |
138 expr \$ncpu \* 2 + 2 | |
139 } | |
140 DMAKE_MAX_JOBS=\`maxjobs\`; export DMAKE_MAX_JOBS | |
141 | |
142 # path to onbld tool binaries | |
143 ONBLD_BIN="/opt/onbld/bin" | |
144 | |
145 # used by bfu. | |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
146 FASTFS=\$ONBLD_BIN/${mach}/fastfs; export FASTFS |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
147 BFULD=\$ONBLD_BIN/${mach}/bfuld; export BFULD |
0 | 148 GZIPBIN=/usr/bin/gzip; export GZIPBIN |
149 ACR=\$ONBLD_BIN/acr; export ACR | |
150 | |
151 # PARENT_WS is used to determine the parent of this workspace. This is | |
152 # for the options that deal with the parent workspace (such as where the | |
153 # proto area will go). | |
154 PARENT_WS=""; export PARENT_WS | |
155 | |
156 # CLONE_WS is the workspace nightly should do a bringover from. Since it's | |
157 # going to bringover usr/src, this could take a while, so we use the | |
158 # clone instead of the gate (see the gate's README). | |
159 CLONE_WS=""; export CLONE_WS | |
160 | |
161 # The bringover, if any, is done as STAFFER. | |
162 # Set STAFFER to your own login as gatekeeper or developer | |
163 # The point is to use group "staff" and avoid referencing the parent | |
164 # workspace as root. | |
165 # Some scripts optionally send mail messages to MAILTO. | |
166 # | |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
167 STAFFER=$staffer; export STAFFER |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
168 MAILTO=\$STAFFER; export MAILTO |
0 | 169 |
170 # The project (see project(4)) under which to run this build. If not | |
171 # specified, the build is simply run in a new task in the current project. | |
172 BUILD_PROJECT=; export BUILD_PROJECT | |
173 | |
174 # You should not need to change the next four lines | |
175 LOCKNAME="\`basename \$CODEMGR_WS\`_nightly.lock"; export LOCKNAME | |
176 ATLOG="\$CODEMGR_WS/log"; export ATLOG | |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
177 LOGFILE="\$ATLOG/nightly.log"; export LOGFILE |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
178 MACH=$mach; export MACH |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
179 NATIVE_MACH=$native_mach; export NATIVE_MACH |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
180 |
0 | 181 |
182 # REF_PROTO_LIST - for comparing the list of stuff in your proto area | |
183 # with. Generally this should be left alone, since you want to see differences | |
184 # from your parent (the gate). | |
185 # | |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
186 REF_PROTO_LIST=\$PARENT_WS/usr/src/proto_list_\${MACH}; export REF_PROTO_LIST |
0 | 187 |
188 # where cpio archives of the OS are placed. Usually this should be left | |
189 # alone too. | |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
190 CPIODIR="\${CODEMGR_WS}/archives/\${MACH}/nightly"; export CPIODIR |
0 | 191 |
192 # | |
193 # build environment variables, including version info for mcs, motd, | |
194 # motd, uname and boot messages. Mostly you shouldn't change this except | |
195 # when the release slips (nah) or you move an environment file to a new | |
196 # release | |
197 # | |
198 ROOT="\$CODEMGR_WS/proto/root_\${MACH}"; export ROOT | |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
199 SRC="\$CODEMGR_WS/usr/src"; export SRC |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
200 VERSION="$VERSION"; export VERSION |
0 | 201 |
202 # | |
203 # the RELEASE and RELEASE_DATE variables are set in Makefile.master; | |
204 # there might be special reasons to override them here, but that | |
205 # should not be the case in general | |
206 # | |
207 # RELEASE="5.11"; export RELEASE | |
208 # RELEASE_DATE="October 2007"; export RELEASE_DATE | |
209 | |
210 # proto area in parent for optionally depositing a copy of headers and | |
211 # libraries corresponding to the protolibs target | |
212 # not applicable given the NIGHTLY_OPTIONS | |
213 # | |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
214 PARENT_ROOT=\$PARENT_WS/proto/root_\$MACH; export PARENT_ROOT |
0 | 215 |
216 # | |
217 # package creation variable. you probably shouldn't change this either. | |
218 # | |
219 PKGARCHIVE="\${CODEMGR_WS}/packages/\${MACH}/nightly"; export PKGARCHIVE | |
220 | |
221 # we want make to do as much as it can, just in case there's more than | |
222 # one problem. | |
223 MAKEFLAGS=k; export MAKEFLAGS | |
224 | |
225 # Magic variable to prevent the devpro compilers/teamware from sending | |
226 # mail back to devpro on every use. | |
227 UT_NO_USAGE_TRACKING="1"; export UT_NO_USAGE_TRACKING | |
228 | |
229 # Build tools - don't change these unless you know what you're doing. These | |
230 # variables allows you to get the compilers and onbld files locally or | |
231 # through cachefs. Set BUILD_TOOLS to pull everything from one location. | |
232 # Alternately, you can set ONBLD_TOOLS to where you keep the contents of | |
233 # SUNWonbld and SPRO_ROOT to where you keep the compilers. SPRO_VROOT | |
234 # exists to make it easier to test new versions of the compiler. | |
235 BUILD_TOOLS=/opt; export BUILD_TOOLS | |
236 #ONBLD_TOOLS=/opt/onbld; export ONBLD_TOOLS | |
237 #SPRO_ROOT=/opt/SUNWspro; export SPRO_ROOT | |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
238 #SPRO_VROOT=$SPRO_ROOT; export SPRO_VROOT |
0 | 239 |
240 # This goes along with lint - it is a series of the form "A [y|n]" which | |
241 # means "go to directory A and run 'make lint'" Then mail me (y) the | |
242 # difference in the lint output. 'y' should only be used if the area you're | |
243 # linting is actually lint clean or you'll get lots of mail. | |
244 # You shouldn't need to change this though. | |
245 #LINTDIRS="\$SRC y"; export LINTDIRS | |
246 | |
247 # Set this flag to 'n' to disable the automatic validation of the dmake | |
248 # version in use. The default is to check it. | |
249 CHECK_DMAKE=n | |
250 | |
251 # Set this flag to 'n' to disable the use of 'checkpaths'. The default, | |
252 # if the 'N' option is not specified, is to run this test. | |
253 #CHECK_PATHS=y | |
254 | |
255 # BRINGOVER_FILES is the list of files nightly passes to bringover. | |
256 # If not set the default is "usr", but it can be used for bringing | |
257 # over deleted_files or other nifty directories. | |
258 #BRINGOVER_FILES="usr deleted_files" | |
259 | |
260 # POST_NIGHTLY can be any command to be run at the end of nightly. See | |
261 # nightly(1) for interactions between environment variables and this command. | |
262 #POST_NIGHTLY= | |
263 | |
264 # | |
265 # the source product has no SCCS history, and is modified to remove source | |
266 # that cannot be shipped. EXPORT_SRC is where the clear files are copied, then | |
267 # modified with 'make EXPORT_SRC'. | |
268 # | |
269 EXPORT_SRC="\$CODEMGR_WS/export_src"; export EXPORT_SRC | |
270 | |
271 # | |
272 # CRYPT_SRC is similar to EXPORT_SRC, but after 'make CRYPT_SRC' the files in | |
273 # xmod/cry_files are saved. They are dropped on the exportable source to create | |
274 # the domestic build. | |
275 # | |
276 | |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
277 CRYPT_SRC="\$CODEMGR_WS/crypt_src"; export CRYPT_SRC |
0 | 278 |
279 # | |
280 # OPEN_SRCDIR is where we copy the open tree to so that we can be sure | |
281 # we don't have a hidden dependency on closed code. The name ends in | |
282 # "DIR" to avoid confusion with the flags related to open source | |
283 # builds. | |
284 # | |
285 | |
286 OPEN_SRCDIR="\$CODEMGR_WS/open_src"; export OPEN_SRCDIR | |
287 | |
288 # | |
289 # Flag to enable creation of per-build-type proto areas. If "yes", | |
290 # more proto areas are created, which speeds up incremental builds but | |
291 # increases storage consumption. Will be forced to "yes" for | |
292 # OpenSolaris deliveries. | |
293 # | |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
294 MULTI_PROTO=no; export MULTI_PROTO |
0 | 295 |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
296 __GNUC=""; export __GNUC |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
297 CW_NO_SHADOW=1; export CW_NO_SHADOW |
0 | 298 $cross |
299 $xprefix | |
300 $xtarget | |
301 $xtool_prefix | |
302 $xsysroot | |
303 $xld_prefix | |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
304 __LINT=#; export __LINT |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
305 __ARLIB=#; export __ARLIB |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
306 __SOLIB=""; export __SOLIB |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
307 USE_WS_TOOLS=; export USE_WS_TOOLS |
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
308 USE_UTSTUNE=; export USE_UTSTUNE |
0 | 309 |
310 EOF | |
311 | |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
312 if [ "$mach" = "arm" ]; then |
0 | 313 $CAT >> $fname <<EOF |
314 | |
315 # Target ARM platform. | |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
316 ARM_PLATFORM=$ARM_PLATFORM; export ARM_PLATFORM |
0 | 317 |
318 # Comment out below line if you want to use GNU binutils linker | |
319 # to build OpenSolaris. | |
320 __GNU_LD=#; export __GNU_LD | |
321 | |
322 # ARM architecture doesn't support 64-bit build. | |
323 BUILD64=#; export BUILD64 | |
324 | |
325 # Use ARM EABI mode. | |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
326 GNUC_ARM_EABI=; export GNUC_ARM_EABI |
0 | 327 |
328 # Install all kernel modules under /usr directory. | |
329 # Set '#' if you don't want to. | |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
330 KMODS_INST_USR=; export KMODS_INST_USR |
0 | 331 |
332 # IPv4 only. | |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
333 USE_INET6=#; export USE_INET6 |
0 | 334 EOF |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
335 fi |
0 | 336 } |
337 | |
338 get_workspace_root | |
339 VERSION='$GATE' | |
340 staffer=`$WHO -m|$AWK '{print $1}'` | |
341 | |
342 for mach in arm i386; do | |
4
1a15d5aaf794
synchronized with onnv_86 (6202) in onnv-gate
Koji Uno <koji.uno@sun.com>
parents:
0
diff
changeset
|
343 dump_config "$workspace" "$staffer" "$mach" |
0 | 344 done |