1 #
   2 # Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 #
  27 # WARNING: This file is shared with other workspaces.
  28 #
  29 
  30 # This file needs these set: CC_VERSION, PLATFORM, ARCH_FAMILY, and ARCH_DATA_MODEL.
  31 
  32 ##########################################################################
  33 #
  34 # List of JDK official minimum, expected, or required versions:
  35 #
  36 # REQUIRED_ALSA_VERSION
  37 #   Linux only: The ALSA sound library version expected.
  38 #
  39 # REQUIRED_ANT_VER
  40 #   The minimum 'ant' version.
  41 #
  42 # REQUIRED_BOOT_VER
  43 #   The minimum boot jdk version.
  44 #
  45 # REQUIRED_CC_VER
  46 #   The primary C compiler version expected.
  47 #
  48 # REQUIRED_COMPILER_NAME
  49 #   The long descriptive name of the compiler we should use
  50 #
  51 # REQUIRED_COMPILER_VERSION
  52 #   The one word name that identifies the compilers being used.
  53 #
  54 # REQUIRED_CYGWIN_VER
  55 #   Windows only: If CYGWIN is used, the minimum CYGWIN version.
  56 #
  57 # REQUIRED_DXSDK_VER
  58 #   Windows only: The version of DirectX SDK expected.
  59 #
  60 # REQUIRED_FREE_SPACE
  61 #   The minimum disk space needed as determined by running 'du -sk' on a fully
  62 #   built workspace.
  63 #
  64 # REQUIRED_FREETYPE_VERSION
  65 #   If we are using freetype, the freetype version expected.
  66 #
  67 # REQUIRED_GCC_VER
  68 #   Solaris and Linux only. The required version of gcc/g++ for the plugin.
  69 #
  70 # REQUIRED_LINK_VER
  71 #   Windows only: The version of link.exe expected.
  72 #
  73 # REQUIRED_MAKE_VER
  74 #   The minimum version of GNU make.
  75 #
  76 # REQUIRED_MKS_VER
  77 #   Windows only: If MKS used instead of CYGWIN, the minimum version of MKS.
  78 #
  79 # REQUIRED_OS_VARIANT_NAME
  80 #   The OS variation name required.
  81 #     Solaris: Solaris or OpenSolaris
  82 #     Windows: Windows2000, WindowsXP, Windows2003, etc.
  83 #     Linux: Fedora, RedHat, SuSE, Ubuntu, etc.
  84 #
  85 # REQUIRED_OS_VARIANT_VERSION
  86 #   The version number associated with the above OS variant name.
  87 #     Solaris: output of uname -r
  88 #     Windows: 5.0 for Windows2000, 5.1 for WindowsXP, 5.2 for Windows2003, etc.
  89 #     Linux: number for the variant, e.g. 9 for Fedora 9
  90 #
  91 # REQUIRED_OS_VERSION
  92 #   The formal OS version number.
  93 #     Solaris & Windows: same as REQUIRED_OS_VARIANT_VERSION
  94 #     Linux: the kernel version, or output of uname -r
  95 #
  96 # REQUIRED_UNZIP_VER
  97 #   The minimum version of unzip.
  98 #
  99 # REQUIRED_ZIP_VER
 100 #   The minimum version of unzip.
 101 #
 102 ###########
 103 #
 104 # Differences in the build platform from these versions may trigger warnings
 105 #   messages during the sanity checking when building the JDK.
 106 #
 107 # When building the OpenJDK most of these required or expected  versions are 
 108 #  ignored or allowed to vary widely to accomodate the many build situations
 109 #  of the OpenJDK.
 110 #
 111 ##########################################################################
 112 
 113 # Solaris specific
 114 ifeq ($(PLATFORM), solaris)
 115   REQUIRED_OS_NAME            = SunOS
 116   REQUIRED_OS_VERSION         = 5.10
 117   REQUIRED_OS_VARIANT_NAME    = Solaris
 118   REQUIRED_OS_VARIANT_VERSION = $(REQUIRED_OS_VERSION)
 119   ifeq ($(ARCH_FAMILY), sparc)
 120     REQUIRED_FREE_SPACE       = 1300000
 121   else
 122     REQUIRED_FREE_SPACE       = 1040000
 123   endif
 124   REQUIRED_COMPILER_NAME      = Sun Studio 12 Update 1
 125   REQUIRED_COMPILER_VERSION   = SS12u1
 126   ifeq ($(CC_VERSION),sun)
 127     REQUIRED_CC_VER           = 5.10
 128   endif
 129   ifeq ($(CC_VERSION),gcc)
 130     REQUIRED_CC_VER           = 3.4.3
 131   endif
 132   REQUIRED_GCC_VER            = 2.95.2
 133 endif
 134 
 135 # Linux specific
 136 ifeq ($(PLATFORM), linux)
 137   REQUIRED_OS_NAME            = Linux
 138   REQUIRED_OS_VERSION         = 2.6
 139   REQUIRED_OS_VARIANT_NAME    = Fedora
 140   REQUIRED_OS_VARIANT_VERSION = 9
 141   REQUIRED_FREE_SPACE         = 1460000
 142   REQUIRED_ALSA_VERSION       = 0.9.1
 143   REQUIRED_COMPILER_NAME      = GCC4
 144   REQUIRED_COMPILER_VERSION   = GCC4
 145   REQUIRED_GCC_VER            = 2.95
 146   ifeq ($(CC_VERSION),gcc)
 147     REQUIRED_CC_VER           = 4.3.0
 148   endif
 149   ifeq ($(CC_VERSION),sun)
 150     REQUIRED_CC_VER           = 5.10
 151   endif
 152 endif
 153 
 154 # Windows specific
 155 ifeq ($(PLATFORM), windows)
 156   REQUIRED_OS_NAME            = Windows
 157   ifeq ($(ARCH_DATA_MODEL),64)
 158     REQUIRED_OS_VERSION       = 5.2
 159     REQUIRED_OS_VARIANT_NAME  = Windows2003
 160   else
 161     REQUIRED_OS_VERSION       = 5.1
 162     REQUIRED_OS_VARIANT_NAME  = WindowsXP
 163   endif
 164   REQUIRED_OS_VARIANT_VERSION = $(REQUIRED_OS_VERSION)
 165   REQUIRED_CYGWIN_VER         = 4.0
 166   REQUIRED_MKS_VER            = 6.1
 167   REQUIRED_FREE_SPACE         = 500000
 168   REQUIRED_DXSDK_VER          = 0x0900
 169   ifeq ($(CC_VERSION),msvc)
 170     ifeq ($(ARCH_DATA_MODEL), 32)
 171       REQUIRED_COMPILER_NAME    = Visual Studio 10
 172       REQUIRED_COMPILER_VERSION = VS2010
 173       REQUIRED_CC_VER           = 16.00.30319.01
 174       REQUIRED_LINK_VER         = 10.00.30319.01
 175     else
 176       ifeq ($(ARCH), ia64)
 177         REQUIRED_COMPILER_NAME    = Microsoft Platform SDK - November 2001 Edition
 178         REQUIRED_COMPILER_VERSION = VS2003
 179         REQUIRED_CC_VER           = 13.00.9337.7
 180         REQUIRED_LINK_VER         = 7.00.9337.7
 181       endif
 182       ifeq ($(ARCH), amd64)
 183         REQUIRED_COMPILER_NAME    = Visual Studio 10
 184         REQUIRED_COMPILER_VERSION = VS2010
 185         REQUIRED_CC_VER           = 16.00.30319.01
 186         REQUIRED_LINK_VER         = 10.00.30319.01
 187       endif
 188     endif
 189   endif
 190   ifeq ($(CC_VERSION),gcc)
 191     REQUIRED_CC_VER           = 3.4.3
 192   endif
 193 endif
 194 
 195 # Generic
 196 REQUIRED_ANT_VER          = 1.6.3
 197 REQUIRED_BOOT_VER         = 1.6
 198 REQUIRED_FREETYPE_VERSION = 2.3.0
 199 REQUIRED_MAKE_VER         = 3.78
 200 REQUIRED_UNZIP_VER        = 5.12
 201 REQUIRED_ZIP_VER          = 2.2
 202