Mercurial > hg > graal-jvmci-8
comparison domake @ 1476:1f81c0d18c75
Build also release version of VM. Fix towards making SpecJVM2008 run.
author | Thomas Wuerthinger <wuerthinger@ssw.jku.at> |
---|---|
date | Fri, 26 Nov 2010 12:12:35 +0100 |
parents | c0de7306803c |
children | 9aad24bf09ed |
comparison
equal
deleted
inserted
replaced
1472:7641338cfc92 | 1476:1f81c0d18c75 |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 test -n "$JRE7" || { echo "Need to set JRE7 environment variable to the base of a JRE 1.7"; exit 1; } | 3 test -n "$JDK7" || { echo "Need to set JDK7 environment variable to the base of a JDK 1.7"; exit 1; } |
4 test -n "$JDK7G" || { echo "Need to set JDK7G environment variable to the base of a JDK 1.7"; exit 1; } | |
4 | 5 |
5 # Resolve location of this script | 6 # Resolve location of this script |
6 me="${BASH_SOURCE[0]}" | 7 me="${BASH_SOURCE[0]}" |
7 while [ -h "$me" ]; do | 8 while [ -h "$me" ]; do |
8 me=`readlink -e "$me"` | 9 me=`readlink -e "$me"` |
9 done | 10 done |
10 graal_home=$(cd `dirname $me`; pwd) | 11 graal_home=$(cd `dirname $me`; pwd) |
11 | 12 |
12 grep '-client KNOWN' $JRE7/lib/amd64/jvm.cfg >/dev/null | 13 grep '-client KNOWN' $JDK7/jre/lib/amd64/jvm.cfg >/dev/null |
13 if [ $? -ne 0 ] ; then | 14 if [ $? -ne 0 ] ; then |
14 echo "The setting for -client in $JRE7/lib/amd64/jvm.cfg must be:" | 15 echo "The setting for -client in $JDK7/jre/lib/amd64/jvm.cfg must be:" |
16 echo | |
17 echo " -client KNOWN" | |
18 echo | |
19 exit 1 | |
20 fi | |
21 | |
22 grep '-client KNOWN' $JDK7G/jre/lib/amd64/jvm.cfg >/dev/null | |
23 if [ $? -ne 0 ] ; then | |
24 echo "The setting for -client in $JDK7G/jre/lib/amd64/jvm.cfg must be:" | |
15 echo | 25 echo |
16 echo " -client KNOWN" | 26 echo " -client KNOWN" |
17 echo | 27 echo |
18 exit 1 | 28 exit 1 |
19 fi | 29 fi |
20 | 30 |
21 java_link="$graal_home/c1x4hotspotsrc/hotspot/java" | 31 java_link="$graal_home/c1x4hotspotsrc/hotspot/java" |
22 if [ ! -e $java_link ]; then | 32 if [ ! -e $java_link ]; then |
23 echo "Creating link: $java_link -> $JRE7/bin/java" | 33 echo "Creating link: $java_link -> $JDK7/jre/bin/java" |
24 ln -s $JRE7/bin/java $java_link | 34 ln -s $JDK7/jre/bin/java $java_link |
25 fi | 35 fi |
26 | 36 |
27 pushd $graal_home/make | 37 pushd $graal_home/make |
28 ALT_BOOTDIR=/usr/lib/jvm/java-6-openjdk/ LANG=C ARCH_DATA_MODEL=64 HOTSPOT_BUILD_JOBS=2 make jvmg1 | 38 |
29 echo "Copying binaries to JRE7 directory $JRE7" | 39 ARCH_DATA_MODEL=64 LANG=C HOTSPOT_BUILD_JOBS=4 ALT_BOOTDIR=$JDK7G INSTALL=$JDK7G/jre make jvmg1 |
30 cp ../build/linux/linux_amd64_compiler1/jvmg/libjvm.so $JRE7/lib/amd64/client | 40 ARCH_DATA_MODEL=64 LANG=C HOTSPOT_BUILD_JOBS=4 ALT_BOOTDIR=$JDK7 INSTALL=$JDK7/jre make product1 |
31 cp ../build/linux/linux_amd64_compiler1/jvmg/libjsig.so $JRE7/lib/amd64/client | 41 |
32 popd | 42 popd |
33 | 43 |