view README @ 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 51fd9f58216a
children f4c60f770c45
line wrap: on
line source

README:
  This file should be located at the top of the OpenJDK Mercurial repository
  forest. This top or enclosing repository will include a "make" directory,
  and a Makefile at the very top of the repository.
  It should also include the 6 repositories: "jdk", "hotspot", "langtools",
  "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. 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.
  
  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.