Building on Windows

Get the sources and patches just like on any other platform:

pull sources and patches
mkdir davinci
cd davinci
hg fclone http://hg.openjdk.java.net/jdk7/jdk7 sources
hg fclone http://hg.openjdk.java.net/mlvm/mlvm patches

The Junction tool can be used to create the filesystem links for the patches directories.

link patch repos into source repos
junction sources\hotspot\.hg\patches patches\hotspot
junction sources\jdk\.hg\patches patches\jdk

The patches in the patch repository are guarded so that only patches that satisfy certain conditions are applied. One of the guards is the most recent release tag from the source repository, it is the last entry in sources\.hgtags.

select patch guards
cd sources\jdk
hg qselect --reapply buildable testable jdk7-b25
cd ..\hotspot
hg qselect --reapply buildable testable jdk7-b25

You can look at the series files in the patches directories to see which guards are available.

After this is done patches can be applied like this:

cd sources\jdk
hg qpush

hg qpush -a can be used to apply all available patches.

  • No labels