Print this page
Nightly can use a different tempdir.


1254 #
1255 if [ "$X_FLAG" = "y" ]; then
1256         if [ "$IA32_IHV_ROOT" = "" ]; then
1257                 echo "IA32_IHV_ROOT: must be set for copying ihv proto"
1258                 args_ok=n
1259         fi
1260         if [ ! -d "$IA32_IHV_ROOT" ]; then
1261                 echo "$IA32_IHV_ROOT: not found"
1262                 args_ok=n
1263         fi
1264         if [ "$IA32_IHV_WS" = "" ]; then
1265                 echo "IA32_IHV_WS: must be set for copying ihv proto"
1266                 args_ok=n
1267         fi
1268         if [ ! -d "$IA32_IHV_WS" ]; then
1269                 echo "$IA32_IHV_WS: not found"
1270                 args_ok=n
1271         fi
1272 fi
1273 
1274 TMPDIR="/tmp/nightly.tmpdir.$$"



1275 export TMPDIR
1276 rm -rf ${TMPDIR}
1277 mkdir -p $TMPDIR || exit 1
1278 chmod 777 $TMPDIR
1279 
1280 #
1281 # Keep elfsign's use of pkcs11_softtoken from looking in the user home
1282 # directory, which doesn't always work.   Needed until all build machines
1283 # have the fix for 6271754
1284 #
1285 SOFTTOKEN_DIR=$TMPDIR
1286 export SOFTTOKEN_DIR
1287 
1288 #
1289 # Tools should only be built non-DEBUG.  Keep track of the tools proto
1290 # area path relative to $TOOLS, because the latter changes in an
1291 # export build.
1292 #
1293 # TOOLS_PROTO is included below for builds other than usr/src/tools
1294 # that look for this location.  For usr/src/tools, this will be




1254 #
1255 if [ "$X_FLAG" = "y" ]; then
1256         if [ "$IA32_IHV_ROOT" = "" ]; then
1257                 echo "IA32_IHV_ROOT: must be set for copying ihv proto"
1258                 args_ok=n
1259         fi
1260         if [ ! -d "$IA32_IHV_ROOT" ]; then
1261                 echo "$IA32_IHV_ROOT: not found"
1262                 args_ok=n
1263         fi
1264         if [ "$IA32_IHV_WS" = "" ]; then
1265                 echo "IA32_IHV_WS: must be set for copying ihv proto"
1266                 args_ok=n
1267         fi
1268         if [ ! -d "$IA32_IHV_WS" ]; then
1269                 echo "$IA32_IHV_WS: not found"
1270                 args_ok=n
1271         fi
1272 fi
1273 
1274 if [[ -z "$TMPDIR_ROOT" ]]; then
1275         TMPDIR_ROOT="/tmp"
1276 fi
1277 TMPDIR="${TMPDIR_ROOT}/nightly.tmpdir.$$"
1278 export TMPDIR
1279 rm -rf ${TMPDIR}
1280 mkdir -p $TMPDIR || exit 1
1281 chmod 777 $TMPDIR
1282 
1283 #
1284 # Keep elfsign's use of pkcs11_softtoken from looking in the user home
1285 # directory, which doesn't always work.   Needed until all build machines
1286 # have the fix for 6271754
1287 #
1288 SOFTTOKEN_DIR=$TMPDIR
1289 export SOFTTOKEN_DIR
1290 
1291 #
1292 # Tools should only be built non-DEBUG.  Keep track of the tools proto
1293 # area path relative to $TOOLS, because the latter changes in an
1294 # export build.
1295 #
1296 # TOOLS_PROTO is included below for builds other than usr/src/tools
1297 # that look for this location.  For usr/src/tools, this will be