hotspot/make/lib/CompileJvm.gmk
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File jdk9-arm3264 Sdiff hotspot/make/lib

hotspot/make/lib/CompileJvm.gmk

Print this page




  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 # Include support files that will setup compiler flags due to the selected
  27 # jvm feature set, and specific file overrides.
  28 include lib/JvmFeatures.gmk
  29 include lib/JvmOverrideFiles.gmk
  30 
  31 $(eval $(call IncludeCustomExtension, hotspot, lib/CompileJvm.gmk))
  32 
  33 ################################################################################
  34 # Setup compilation of the main Hotspot native library (libjvm).
  35 
  36 JVM_OUTPUTDIR := $(JVM_VARIANT_OUTPUTDIR)/libjvm
  37 JVM_MAPFILE := $(JVM_OUTPUTDIR)/mapfile
  38 
  39 ################################################################################
  40 # Platform independent setup
  41 
  42 # This variable may be added to by a custom extension
  43 JVM_SRC_ROOTS += $(HOTSPOT_TOPDIR)/src
  44 
  45 JVM_SRC_DIRS += $(call uniq, $(wildcard $(foreach d, $(JVM_SRC_ROOTS), \
  46         $d/share/vm \
  47         $d/os/$(HOTSPOT_TARGET_OS)/vm \
  48         $d/os/$(HOTSPOT_TARGET_OS_TYPE)/vm \
  49         $d/cpu/$(HOTSPOT_TARGET_CPU_ARCH)/vm \
  50         $d/os_cpu/$(HOTSPOT_TARGET_OS)_$(HOTSPOT_TARGET_CPU_ARCH)/vm \
  51     ))) \


 121 else
 122   OPENJDK_TARGET_CPU_VM_VERSION := $(OPENJDK_TARGET_CPU)
 123 endif
 124 
 125 CFLAGS_VM_VERSION := \
 126     $(VERSION_CFLAGS) \
 127     -DHOTSPOT_VERSION_STRING='"$(VERSION_STRING)"' \
 128     -DDEBUG_LEVEL='"$(DEBUG_LEVEL)"' \
 129     -DHOTSPOT_BUILD_USER='"$(USERNAME)"' \
 130     -DHOTSPOT_VM_DISTRO='"$(HOTSPOT_VM_DISTRO)"' \
 131     -DCPU='"$(OPENJDK_TARGET_CPU_VM_VERSION)"' \
 132     #
 133 
 134 # -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp.
 135 ifeq ($(USE_PRECOMPILED_HEADER), 0)
 136   JVM_CFLAGS += -DDONT_USE_PRECOMPILED_HEADER
 137 endif
 138 
 139 ################################################################################
 140 # Platform specific setup















 141 
 142 ifneq ($(filter $(OPENJDK_TARGET_OS), linux macosx windows), )
 143   JVM_PRECOMPILED_HEADER := $(HOTSPOT_TOPDIR)/src/share/vm/precompiled/precompiled.hpp
 144 endif
 145 
 146 ifneq ($(filter $(OPENJDK_TARGET_OS), macosx aix solaris), )
 147   # On macosx, aix and solaris we have to link with the C++ compiler
 148   JVM_TOOLCHAIN := TOOLCHAIN_LINK_CXX
 149 else
 150   JVM_TOOLCHAIN := TOOLCHAIN_DEFAULT
 151 endif
 152 
 153 ifeq ($(OPENJDK_TARGET_CPU), x86)
 154   JVM_EXCLUDE_PATTERNS += x86_64
 155 else ifeq ($(OPENJDK_TARGET_CPU), x86_64)
 156   JVM_EXCLUDE_PATTERNS += x86_32
 157 endif
 158 
 159 # Inline assembly for solaris
 160 ifeq ($(OPENJDK_TARGET_OS), solaris)




  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 # Include support files that will setup compiler flags due to the selected
  27 # jvm feature set, and specific file overrides.
  28 include lib/JvmFeatures.gmk
  29 include lib/JvmOverrideFiles.gmk
  30 

  31 
  32 ################################################################################
  33 # Setup compilation of the main Hotspot native library (libjvm).
  34 
  35 JVM_OUTPUTDIR := $(JVM_VARIANT_OUTPUTDIR)/libjvm
  36 JVM_MAPFILE := $(JVM_OUTPUTDIR)/mapfile
  37 
  38 ################################################################################
  39 # Platform independent setup
  40 
  41 # This variable may be added to by a custom extension
  42 JVM_SRC_ROOTS += $(HOTSPOT_TOPDIR)/src
  43 
  44 JVM_SRC_DIRS += $(call uniq, $(wildcard $(foreach d, $(JVM_SRC_ROOTS), \
  45         $d/share/vm \
  46         $d/os/$(HOTSPOT_TARGET_OS)/vm \
  47         $d/os/$(HOTSPOT_TARGET_OS_TYPE)/vm \
  48         $d/cpu/$(HOTSPOT_TARGET_CPU_ARCH)/vm \
  49         $d/os_cpu/$(HOTSPOT_TARGET_OS)_$(HOTSPOT_TARGET_CPU_ARCH)/vm \
  50     ))) \


 120 else
 121   OPENJDK_TARGET_CPU_VM_VERSION := $(OPENJDK_TARGET_CPU)
 122 endif
 123 
 124 CFLAGS_VM_VERSION := \
 125     $(VERSION_CFLAGS) \
 126     -DHOTSPOT_VERSION_STRING='"$(VERSION_STRING)"' \
 127     -DDEBUG_LEVEL='"$(DEBUG_LEVEL)"' \
 128     -DHOTSPOT_BUILD_USER='"$(USERNAME)"' \
 129     -DHOTSPOT_VM_DISTRO='"$(HOTSPOT_VM_DISTRO)"' \
 130     -DCPU='"$(OPENJDK_TARGET_CPU_VM_VERSION)"' \
 131     #
 132 
 133 # -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp.
 134 ifeq ($(USE_PRECOMPILED_HEADER), 0)
 135   JVM_CFLAGS += -DDONT_USE_PRECOMPILED_HEADER
 136 endif
 137 
 138 ################################################################################
 139 # Platform specific setup
 140 
 141 # ARM source selection
 142 # TODO - Need a better way of selecting open versus closed aarch64 sources
 143 
 144 ifeq ($(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU), linux-arm)
 145   JVM_EXCLUDE_PATTERNS += arm_64
 146 
 147 else ifeq ($(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU), linux-aarch64)
 148   # Open aarch64 port is named "aarch64", exclude it if the 
 149   # HOTSPOT_TARGET_CPU_ARCH is set to arm.  In this case we 
 150   # want the hybrid sources.
 151   ifeq ($(HOTSPOT_TARGET_CPU_ARCH), arm)
 152     JVM_EXCLUDE_PATTERNS += arm_32 aarch64
 153   endif
 154 endif
 155 
 156 ifneq ($(filter $(OPENJDK_TARGET_OS), linux macosx windows), )
 157   JVM_PRECOMPILED_HEADER := $(HOTSPOT_TOPDIR)/src/share/vm/precompiled/precompiled.hpp
 158 endif
 159 
 160 ifneq ($(filter $(OPENJDK_TARGET_OS), macosx aix solaris), )
 161   # On macosx, aix and solaris we have to link with the C++ compiler
 162   JVM_TOOLCHAIN := TOOLCHAIN_LINK_CXX
 163 else
 164   JVM_TOOLCHAIN := TOOLCHAIN_DEFAULT
 165 endif
 166 
 167 ifeq ($(OPENJDK_TARGET_CPU), x86)
 168   JVM_EXCLUDE_PATTERNS += x86_64
 169 else ifeq ($(OPENJDK_TARGET_CPU), x86_64)
 170   JVM_EXCLUDE_PATTERNS += x86_32
 171 endif
 172 
 173 # Inline assembly for solaris
 174 ifeq ($(OPENJDK_TARGET_OS), solaris)


hotspot/make/lib/CompileJvm.gmk
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File