#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "%Z%%M% %I% %E% SMI"
#
# Generate a proto area suitable for the current architecture ($(MACH))
# sufficient to support the sgs build.
#
# Currently, the following releases are supported:
# 5.11, 5.10, and 5.9.
#
echo "usage: CODEMGR_WS and MACH environment variables must be set"
exit 1
fi
RELEASE=$1
if [ "X$RELEASE" = "X" ] ; then
echo "usage: proto release"
exit 1;
fi
"5.11") break;;
"5.10") break;;
*)
echo "usage: unsupported release $RELEASE specified"
exit 1;;
esac
dirs=" $CODEMGR_WS/proto \
$CODEMGR_WS/proto/root_$MACH/lib \
$CODEMGR_WS/proto/root_$MACH/usr \
$CODEMGR_WS/proto/root_$MACH/usr/4lib \
$CODEMGR_WS/proto/root_$MACH/etc \
$CODEMGR_WS/proto/root_$MACH/opt \
#
# Add 64bit directories
#
MACH64=""
if [ $MACH = "sparc" ]; then
MACH64="sparcv9";
fi
if [ $MACH = "i386" ]; then
MACH64="amd64";
fi
if [ "${MACH64}x" != x ]; then
dirs="$dirs \
$CODEMGR_WS/proto/root_$MACH/lib/$MACH64 \
"
fi
do
if [ ! -d $dir ] ; then
echo $dir
fi
done
# We need a local copy of libc_pic.a (we should get this from the parent
# workspace, but as we can't be sure how the proto area is constructed there
# simply take it from a stashed copy on the linkers server. If
# LINKERS_EXPORT is defined, we use it. Failing that, we fall over
# to linkers.central.
if [ "$LINKERS_EXPORT" = "" ]; then
fi
if [ $MACH = "sparc" ]; then
PLATS="sparc sparcv9"
elif [ $MACH = "i386" ]; then
PLATS="i386 amd64"
else
echo "Unknown Mach: $MACH - no libc_pic.a provided!"
PLATS=""
fi
do
if [ ! -d $SRCLIBCDIR ]; then
mkdir -p $SRCLIBCDIR
fi
if [ ! -f $SRCLIBCDIR/libc_pic.a ]; then
fi
done
fi
#
# In addition create some 64 symlinks so that dependencies referenced
# from our test environment will map back to the appropriate libraries.
#
if [ ! -h $SYSLIB/64 ] ; then
fi
if [ ! -h $USRLIB/64 ] ; then
fi
fi
fi
#
#
#
if [ $IS_THIS_UNIFIED = 0 ] ; then
fi