Skip to content

Instantly share code, notes, and snippets.

@headius
Created August 16, 2011 02:27
Show Gist options
  • Save headius/1148321 to your computer and use it in GitHub Desktop.
Save headius/1148321 to your computer and use it in GitHub Desktop.
Building the Hotspot compiler team's Hotspot branch alone
#!/bin/sh
# This script is for building the hsx/hotspot-comp branch in isolation.
#
# Prerequisites:
# * appropriate build tools
# * a working Sun Java 6 build (i.e. JDK6) is available at:
# HOME/java/re/j2se/1.6.0/latest/binaries/linux-[i586/amd64]
# * a working Sun Java 7 build (i.e. JDK7) is available at:
# HOME/java/re/j2se/1.7.0/latest/binaries/linux-[i586/amd64]
# HOME/java/re/j2se/1.7.0/promoted/latest/binaries/linux-[i586/amd64]
# HOME/java/re/jdk/7/latest/binaries/linux-[i586/amd64]
# (symlinks are ok here)
# * Hotspot compiler team branch checked out:
# hg clone http://hg.openjdk.java.net/hsx/hotspot-comp/hotspot [dirname]
#
# Usage:
# (from within checked-out dir)
# sh ./build.sh help # for build help
# sh ./build.sh docs # run this once before create_jdk
# sh ./build.sh product # to build "product" hotspot
# sh ./build.sh create_jdk # to create a new jdk based on JDK7 and this build
# sh ./build.sh update_jdk # update already-assembled JDK with new hotspot build
# The _jdk targets will deposit a full JDK environment under:
# build/linux/jdk-linux-[i586/amd64]
export ALT_SLASH_JAVA=${HOME}/java
export HOTSPOT_BUILD_JOBS=2
export LANG=C
# this should be 32 or 64 depending on which arch you want
export ARCH_DATA_MODEL=64
make -C make $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment