author | ssadetsky |
Tue, 07 Jun 2016 11:40:28 +0300 | |
changeset 39033 | d61135c3795c |
parent 34606 | 83c270cae5e1 |
child 48909 | 54b423e1c4cf |
permissions | -rw-r--r-- |
34595
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
1 |
#!/bin/bash |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
2 |
# |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
3 |
# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
4 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
5 |
# |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
6 |
# This code is free software; you can redistribute it and/or modify it |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
7 |
# under the terms of the GNU General Public License version 2 only, as |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
8 |
# published by the Free Software Foundation. Oracle designates this |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
9 |
# particular file as subject to the "Classpath" exception as provided |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
10 |
# by Oracle in the LICENSE file that accompanied this code. |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
11 |
# |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
12 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
13 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
14 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
15 |
# version 2 for more details (a copy is included in the LICENSE file that |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
16 |
# accompanied this code). |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
17 |
# |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
18 |
# You should have received a copy of the GNU General Public License version |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
19 |
# 2 along with this work; if not, write to the Free Software Foundation, |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
20 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
21 |
# |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
22 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
23 |
# or visit www.oracle.com if you need additional information or have any |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
24 |
# questions. |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
25 |
# |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
26 |
|
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
27 |
# This script creates a devkit for building OpenJDK on Solaris by copying |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
28 |
# part of a Solaris Studio installation and cretaing a sysroot by installing |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
29 |
# a limited set of system packages. It is assumed that a suitable pkg |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
30 |
# publisher is configured for the system where the script is executed. |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
31 |
# |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
32 |
# The Solaris Studio installation must contain at least these packages: |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
33 |
# developer/solarisstudio-124/backend 12.4-1.0.6.0 i-- |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
34 |
# developer/solarisstudio-124/c++ 12.4-1.0.10.0 i-- |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
35 |
# developer/solarisstudio-124/cc 12.4-1.0.4.0 i-- |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
36 |
# developer/solarisstudio-124/library/c++-libs 12.4-1.0.10.0 i-- |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
37 |
# developer/solarisstudio-124/library/math-libs 12.4-1.0.0.1 i-- |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
38 |
# developer/solarisstudio-124/library/studio-gccrt 12.4-1.0.0.1 i-- |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
39 |
# developer/solarisstudio-124/studio-common 12.4-1.0.0.1 i-- |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
40 |
# developer/solarisstudio-124/studio-ja 12.4-1.0.0.1 i-- |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
41 |
# developer/solarisstudio-124/studio-legal 12.4-1.0.0.1 i-- |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
42 |
# developer/solarisstudio-124/studio-zhCN 12.4-1.0.0.1 i-- |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
43 |
# In particular backend 12.4-1.0.6.0 contains a critical patch for the sparc |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
44 |
# version. |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
45 |
# |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
46 |
# erik.joelsson@oracle.com |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
47 |
|
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
48 |
USAGE="$0 <Solaris Studio installation> <Path to gnu make binary>" |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
49 |
|
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
50 |
if [ "$1" = "" ] || [ "$2" = "" ]; then |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
51 |
echo $USAGE |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
52 |
exit 1 |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
53 |
fi |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
54 |
|
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
55 |
SOLARIS_STUDIO_VERSION=12u4 |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
56 |
SOLARIS_VERSION=11u1 |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
57 |
case `uname -p` in |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
58 |
i*) |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
59 |
ARCH=x86 |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
60 |
;; |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
61 |
sparc*) |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
62 |
ARCH=sparc |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
63 |
;; |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
64 |
esac |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
65 |
|
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
66 |
SOLARIS_STUDIO_SRC=$1 |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
67 |
GNU_MAKE=$2 |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
68 |
|
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
69 |
SCRIPT_DIR="$(cd "$(dirname $0)" > /dev/null && pwd)" |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
70 |
BUILD_DIR="${SCRIPT_DIR}/../../build/devkit" |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
71 |
|
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
72 |
DEVKIT_NAME=SS${SOLARIS_STUDIO_VERSION}-Solaris${SOLARIS_VERSION} |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
73 |
DEVKIT_ROOT=${BUILD_DIR}/${DEVKIT_NAME} |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
74 |
BUNDLE_NAME=${DEVKIT_NAME}.tar.gz |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
75 |
BUNDLE=${BUILD_DIR}/${BUNDLE_NAME} |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
76 |
INSTALL_ROOT=${BUILD_DIR}/install-root |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
77 |
SYSROOT=${DEVKIT_ROOT}/sysroot |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
78 |
SOLARIS_STUDIO_SUBDIR=SS${SOLARIS_STUDIO_VERSION} |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
79 |
SOLARIS_STUDIO_DIR=${DEVKIT_ROOT}/${SOLARIS_STUDIO_SUBDIR} |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
80 |
|
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
81 |
# Extract the publisher from the system |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
82 |
if [ -z "${PUBLISHER_URI}" ]; then |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
83 |
PUBLISHER_URI="$(pkg publisher solaris | grep URI | awk '{ print $3 }')" |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
84 |
fi |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
85 |
|
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
86 |
if [ ! -d $INSTALL_ROOT ]; then |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
87 |
echo "Creating $INSTALL_ROOT and installing packages" |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
88 |
pkg image-create $INSTALL_ROOT |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
89 |
pkg -R $INSTALL_ROOT set-publisher -P -g ${PUBLISHER_URI} solaris |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
90 |
pkg -R $INSTALL_ROOT install --accept $(cat solaris11.1-package-list.txt) |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
91 |
else |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
92 |
echo "Skipping installing packages" |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
93 |
fi |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
94 |
|
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
95 |
if [ ! -d $SYSROOT ]; then |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
96 |
echo "Copying from $INSTALL_ROOT to $SYSROOT" |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
97 |
mkdir -p $SYSROOT |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
98 |
cp -rH $INSTALL_ROOT/lib $SYSROOT/ |
34606 | 99 |
mkdir $SYSROOT/usr $DEVKIT_ROOT/gnu |
34595
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
100 |
# Some of the tools in sysroot are needed in the OpenJDK build but cannot be |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
101 |
# run from their current location due to relative runtime paths in the |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
102 |
# binaries. Move the sysroot/usr/bin directory to the outer bin and have them |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
103 |
# be runnable from there to force them to link to the system libraries |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
104 |
cp -rH $INSTALL_ROOT/usr/bin $DEVKIT_ROOT |
34606 | 105 |
cp -rH $INSTALL_ROOT/usr/gnu/bin $DEVKIT_ROOT/gnu/ |
34595
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
106 |
cp -rH $INSTALL_ROOT/usr/lib $SYSROOT/usr/ |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
107 |
cp -rH $INSTALL_ROOT/usr/include $SYSROOT/usr/ |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
108 |
pkg -R $INSTALL_ROOT list > $SYSROOT/pkg-list.txt |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
109 |
else |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
110 |
echo "Skipping copying to $SYSROOT" |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
111 |
fi |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
112 |
|
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
113 |
if [ ! -d $SOLARIS_STUDIO_DIR ]; then |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
114 |
echo "Copying Solaris Studio from $SOLARIS_STUDIO_SRC" |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
115 |
cp -rH $SOLARIS_STUDIO_SRC ${SOLARIS_STUDIO_DIR%/*} |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
116 |
mv ${SOLARIS_STUDIO_DIR%/*}/${SOLARIS_STUDIO_SRC##*/} $SOLARIS_STUDIO_DIR |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
117 |
# Solaris Studio 12.4 requires /lib/libmmheap.so.1 to run, but this lib is not |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
118 |
# installed by default on all Solaris systems. Sneak it in from the sysroot to |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
119 |
# make it run OOTB on more systems. |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
120 |
cp $SYSROOT/lib/libmmheap.so.1 $SOLARIS_STUDIO_DIR/lib/compilers/sys/ |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
121 |
else |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
122 |
echo "Skipping copying of Solaris Studio" |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
123 |
fi |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
124 |
|
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
125 |
echo "Copying gnu make to $DEVKIT_ROOT/bin" |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
126 |
mkdir -p $DEVKIT_ROOT/bin |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
127 |
cp $GNU_MAKE $DEVKIT_ROOT/bin/ |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
128 |
if [ ! -e $DEVKIT_ROOT/bin/gmake ]; then |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
129 |
ln -s make $DEVKIT_ROOT/bin/gmake |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
130 |
fi |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
131 |
|
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
132 |
# Create the devkit.info file |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
133 |
echo Creating devkit.info |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
134 |
INFO_FILE=$DEVKIT_ROOT/devkit.info |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
135 |
rm -f $INFO_FILE |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
136 |
echo "# This file describes to configure how to interpret the contents of this devkit" >> $INFO_FILE |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
137 |
echo "DEVKIT_NAME=\"Solaris Studio $SOLARIS_STUDIO_VERSION - Solaris $SOLARIS_VERSION - $ARCH\"" >> $INFO_FILE |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
138 |
echo "DEVKIT_TOOLCHAIN_PATH=\"\$DEVKIT_ROOT/$SOLARIS_STUDIO_SUBDIR/bin:\$DEVKIT_ROOT/bin\"" >> $INFO_FILE |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
139 |
echo "DEVKIT_EXTRA_PATH=\"\$DEVKIT_ROOT/bin\"" >> $INFO_FILE |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
140 |
echo "DEVKIT_SYSROOT=\"\$DEVKIT_ROOT/sysroot\"" >> $INFO_FILE |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
141 |
|
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
142 |
if [ ! -e $BUNDLE ]; then |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
143 |
echo "Creating $BUNDLE from $DEVKIT_ROOT" |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
144 |
cd $DEVKIT_ROOT/.. |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
145 |
tar zcf $BUNDLE $DEVKIT_NAME |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
146 |
else |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
147 |
echo "Skipping creation of $BUNDLE" |
09596fe63e2d
8145391: Updated jprt.properties, devtools, jib and readme with SS12u4
erikj
parents:
diff
changeset
|
148 |
fi |