Mercurial > hg > openjdk6-mips
changeset 26:82bf91673f25
Add information in README and env.sh; added a missing file to make the completed build.
author | Ao Qi <aoqi@loongson.cn> |
---|---|
date | Tue, 09 Nov 2010 13:21:20 +0800 |
parents | 8ef762f87d0e |
children | b7ec29b378c9 |
files | README env.sh env_debug.sh env_product.sh jdk/src/solaris/bin/mips64/jvm.cfg |
diffstat | 5 files changed, 91 insertions(+), 52 deletions(-) [+] |
line wrap: on
line diff
--- a/README Mon Nov 08 19:53:05 2010 +0800 +++ b/README Tue Nov 09 13:21:20 2010 +0800 @@ -6,21 +6,49 @@ "corba", "jaxws" and "jaxp". See http://openjdk.java.net/ for more information about the OpenJDK. + See http://icedtea.classpath.org/wiki/MIPSPort for more information about the OpenJDK MIPS Port. Simple Build Instructions: 1. Download and install a JDK 6 from http://java.sun.com/javase/downloads/index.jsp Set the environment variable ALT_BOOTDIR to the location of this JDK 6. + If using Debian: + apt-get install openjdk-6-jdk + export ALT_BOOTDIR=/usr/lib/jvm/java-6-openjdk - 2. Check the sanity of doing a build with the current machine: + 2. Download Binary Plugs, go to the OpenJDK site and select the "Bundles(6)" link and download + the binaryplugs. The file downloaded is a jar file that must be extracted by running the jar + file with: + java -jar jdk-6-ea-plug-bnn-os-arch-dd_month_year.jar + Set the environment variable ALT_BINARY_PLUGS_PATH to the root of this installation. + + 3. Set other environment variables. If using Debian: + source env.sh + Check the sanity of doing a build with the current machine: gnumake sanity See README-builds.html if you run into problems. - 3. Do a complete build of the jdk: + 4. Do a complete build of the jdk: gnumake all + When building jaxp, it seems a bug that jdk6-jaxp-2009_10_13.zip cannot be downloaded. + The workaround is to download it by "wget ", and set ALT_DROPS_DIR to the dir where the zip is: + export ALT_DROPS_DIR=~/zip_dir The resulting JDK image should be found in build/*/j2sdk-image + 5. By setting the environment variables below, components can be built separately. + For example: + export BUILD_HOTSPOT=true + export BUILD_LANGTOOLS=false + export BUILD_CORBA=false + export BUILD_JAXP=false + export BUILD_JAXWS=false + export BUILD_JDK=false + export BUILD_DEPLOY=false + + 6. The default hotspot-build is all_product. Set DEBUG_NAME would change the target: + export DEBUG_NAME=debug + where gnumake is GNU make 3.78.1 or newer, /usr/bin/make on Linux and /usr/sfw/bin/gmake or /opt/sfw/bin/gmake on Solaris.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/env.sh Tue Nov 09 13:21:20 2010 +0800 @@ -0,0 +1,23 @@ +export LANG=C +export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/jvm/java-6-openjdk/bin +export ALT_BOOTDIR=/usr/lib/jvm/java-6-openjdk +export ALT_BINARY_PLUGS_PATH=~/openjdk-binary-plugs +export ARCH_DATA_MODEL=32 + +unset CLASSPATH +unset JAVA_HOME + +#The default hotspot-build is all_product. Setting DEBUG_NAME would change the target. +#export DEBUG_NAME=debug + +# By setting the environment variables below, components can be built separately. +#export BUILD_LANGTOOLS=false +#export BUILD_CORBA=false +#export BUILD_JAXP=false +#export BUILD_JAXWS=false +#export BUILD_JDK=false +#export BUILD_DEPLOY=false + +# When building jaxp, it seems a bug that jdk6-jaxp-2009_10_13.zip cannot be downloaded. +# The workaround is to download it by "wget ", and set ALT_DROPS_DIR to the dir where the zip is. +#export ALT_DROPS_DIR=~/zip_dir
--- a/env_debug.sh Mon Nov 08 19:53:05 2010 +0800 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -export LANG=C -export LC_ALL=C -export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/jvm/java-6-openjdk/bin -export ALT_BOOTDIR=/usr/lib/jvm/java-6-openjdk -#export ALT_BOOTDIR=/home/loongson/java/j2sdk-gs2 -export ALT_BINARY_PLUGS_PATH=/opt/java/openjdk-binary-plugs -#export ALT_JDK_IMPORT_PATH=/usr/lib/jvm/java-6-openjdk -export ARCH_DATA_MODEL=32 - -#The default hotspot-build is all_product. Setting DEBUG_NAME would change the target. -export DEBUG_NAME=debug - -# If want to build entire JDK, set all envs below true. -export BUILD_LANGTOOLS=false -export BUILD_CORBA=false -export BUILD_JAXP=false -export BUILD_JAXWS=false -# When building jaxp, it seems a bug that jdk6-jaxp-2009_10_13.zip cannot be downloaded. -# The workaround is to download it by "wget ", and set ALT_DROPS_DIR to the dir where the zip is. -#export ALT_DROPS_DIR=~/zip_dir - -export BUILD_MOTIF=false -export BUILD_JDK=false -export BUILD_DEPLOY=false - -unset CLASSPATH -unset JAVA_HOME
--- a/env_product.sh Mon Nov 08 19:53:05 2010 +0800 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -export LC_ALL=C -export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/jvm/java-6-openjdk/bin -export ALT_BOOTDIR=/usr/lib/jvm/java-6-openjdk -export ALT_BINARY_PLUGS_PATH=/opt/java/openjdk-binary-plugs -export ARCH_DATA_MODEL=32 - -#The default hotspot-build is all_product. Setting DEBUG_NAME would change the target. - -# If want to build entire JDK, set all envs below true. -export BUILD_LANGTOOLS=false -export BUILD_CORBA=false -export BUILD_JAXP=false -export BUILD_JAXWS=false -# When building jaxp, it seems a bug that jdk6-jaxp-2009_10_13.zip cannot be downloaded. -# The workaround is to download it by "wget ", and set ALT_DROPS_DIR to the dir where the zip is. -#export ALT_DROPS_DIR=~/zip_dir - -export BUILD_MOTIF=false -export BUILD_JDK=false -export BUILD_DEPLOY=false - -unset CLASSPATH -unset JAVA_HOME
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jdk/src/solaris/bin/mips64/jvm.cfg Tue Nov 09 13:21:20 2010 +0800 @@ -0,0 +1,38 @@ +# Copyright 2001-2003 Sun Microsystems, Inc. All Rights Reserved. +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. +# +# This code is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License version 2 only, as +# published by the Free Software Foundation. Sun designates this +# particular file as subject to the "Classpath" exception as provided +# by Sun in the LICENSE file that accompanied this code. +# +# This code is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# version 2 for more details (a copy is included in the LICENSE file that +# accompanied this code). +# +# You should have received a copy of the GNU General Public License version +# 2 along with this work; if not, write to the Free Software Foundation, +# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. +# +# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, +# CA 95054 USA or visit www.sun.com if you need additional information or +# have any questions. +# +# List of JVMs that can be used as an option to java, javac, etc. +# Order is important -- first in this list is the default JVM. +# NOTE that this both this file and its format are UNSUPPORTED and +# WILL GO AWAY in a future release. +# +# You may also select a JVM in an arbitrary location with the +# "-XXaltjvm=<jvm_dir>" option, but that too is unsupported +# and may not be available in a future release. +# +-client IF_SERVER_CLASS -server +-server KNOWN +-hotspot ALIASED_TO -client +-classic WARN +-native ERROR +-green ERROR