comparison domake @ 1439:d0c8d3a2a7e8

Modified domake script to use (and require) JRE7 environment variable for find the base of a JRE 7 installation. This script no also ensures that $JRE7/lib/amd64/jvm.cfg has the right value for '-client'. Added c1x4hotspotsrc/hotspot/java as indirect launcher for $JRE7/bin/java that can be referenced from Eclipse launch configuration. Copied .checkstyle_checks.xml from C1X project to c1x4hotspotsrc/HotSpotVM so that it can be used by HotSpotVM project without hard coded path to C1X in another Eclipse workspace. Various other changes to reflect changes in CRI and C1X.
author Doug Simon <doug.simon@oracle.com>
date Fri, 29 Oct 2010 18:14:17 +0200
parents 20a3896518ac
children f8ab19e5acae
comparison
equal deleted inserted replaced
1438:a7a0ef3c6858 1439:d0c8d3a2a7e8
1 #!/bin/bash 1 #!/bin/bash
2 pushd make 2
3 test -n "$JRE7" || { echo "Need to set JRE7 environment variable to the base of a JRE 1.7"; exit 1; }
4
5 # Resolve location of this script
6 me="${BASH_SOURCE[0]}"
7 while [ -h "$me" ]; do
8 me=`readlink -e "$me"`
9 done
10
11 grep '-client KNOWN' $JRE7/lib/amd64/jvm.cfg >/dev/null
12 if [ $? -ne 0 ] ; then
13 echo "The setting for -client in $JRE7/lib/amd64/jvm.cfg must be:"
14 echo
15 echo " -client KNOWN"
16 echo
17 exit 1
18 fi
19
20 pushd $(dirname "$me")/make
3 ALT_BOOTDIR=/usr/lib/jvm/java-6-openjdk/ LANG=C ARCH_DATA_MODEL=64 HOTSPOT_BUILD_JOBS=2 make jvmg1 21 ALT_BOOTDIR=/usr/lib/jvm/java-6-openjdk/ LANG=C ARCH_DATA_MODEL=64 HOTSPOT_BUILD_JOBS=2 make jvmg1
4 cp ../build/linux/linux_amd64_compiler1/jvmg/libjvm.so ../../jre1.7.0/lib/amd64/client 22 cp ../build/linux/linux_amd64_compiler1/jvmg/libjvm.so $JRE7/lib/amd64/client
5 cp ../build/linux/linux_amd64_compiler1/jvmg/libjsig.so ../../jre1.7.0/lib/amd64/client 23 cp ../build/linux/linux_amd64_compiler1/jvmg/libjsig.so $JRE7/lib/amd64/client
6 popd 24 popd
7 25